4 A I
ADICHUNCHANAGIRI INSTITUE OFTECHNOLOGY,
SECOND INTERNALASSESSMENT
DepartmentofComputerScience&Engineering
Introduction to Python Prgramming-BPLCK205B
[Link] Question COs RBT Marks
Level
Discuss list and dictionary data structure with example
1 CO2 L1 5
for each.
OR
2 Tuples are immutable. Explain with Python programming
CO2 L2 5
example.
Explain with a programming example to each:
3 (i) get() CO2 L2 5
(ii) setdefault()
OR
4 Explain keys, values and items methods in a dictionary with
suitable programming example. CO2 L2 5
5 Explain Python string handling methods with examples:
split(),endswith(), CO3 L2 5
ljust(), center(), lstrip()
OR
6 Discuss different paths of file system.
CO3 L2 5
7 Explain how to read and Write into a file? illustrate with
python program CO3 L2 5
OR
8 Develop a Python program find the total size of all the files in the
CO3 L3 5
given directory.
9 Read a multi-digit number (as chars) from the console. Develop a
program to print the frequency of each digit with suitable message. CO3 L3 5
OR
10