USN
ANJUMAN INSTITUTE OF TECHNOLOGY AND MANAGEMENT
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
SECOND INTERNAL ASSESSMENT TEST, JUNE-2025
BPLCK205B- INTRODUCTION TO PYTHON PROGRAMMING
(SCHEME 2022)
Semester: II (ECE, EEE, ROBOTICS,CIV), SEC: D
Max. Marks: 25
Date & Session: 23/06/2025 (FN) Time: 01 Hour
Note: 1. Answer any one full question from both parts.
2. M: Marks, L: Bloom’s level, C: Course outcomes.
PART-A M L CO*
Q.1 a. Explain the following methods with suitable examples. a)upper() 06 2 3
b)lower() c) is_upper()
b. Explain how to save variables with shelve module with example code 6.5 2 3
OR
Q.2 a. Develop a program to print 10 most frequently appearing words in a 06 3 3
text file.
b. Illustrate with examples reading the content of the files with read() 6.5 2 3
and writing to files with write()
PART-B
Q.3 a. Explain send2trash Module to delete files and folders 06 2 4
b. What are assertion? Write the contents of an assert statement. Explain 6.5 2 4
them with example.
OR
Q.4 a. With suitable code, explain Backing up a folder into zip file 6.5 3 4
b. Define Debugging. Explain the five buttons used in debugging 06 2 4
Bloom’s Taxonomy (L*):
L1: Remember L2: Understand L3: Apply
L4: Analyze L5: Evaluate L6: Create