USN
ANJUMAN INSTITUTE OF TECHNOLOGY AND MANAGEMENT, BHAKTAL
(Affiliated to VTU, Belagavi)
II Sem B.E. D section (CSE) Continuous Internal Evaluation - I, Date: 10/05/2025(AN)
BPLCK205B – INTRODUCTION TO PYTHON PROGRAMMING
Duration: 1 Hour Max. Marks: 25
Note: Answer any One full question from each Part.
PART-A Marks BT* CO* PO*
1. a) Demonstrate with example print (), input and string replication. 06 L2 2 1,2
b) What are user defined functions? How can we pass parameters in 6.5 L3 2 1,2
user defined functions? Explain with suitable examples
OR
2. a) Develop a program to read the name and year of birth of a person. 06 L1 1 1,2
Display whether the person is a senior citizen or not.
b) Explain elif, for, while statements in python with examples for each. 6.5 L2 2 1,2
PART-B
3. a) What is List? Explain append (), insert () and remove () methods 6.5 L2 2 1,2
with examples.
b) How is a tuple different from a list and what function is used to 06 L3 2 1,2
convert list to tuple?
OR
4. a) Explain the following methods with example: i) keys () ii) values () 06 L2 2 1,2
iii) items
b) Explain pretty printing with example 6.5 L2 2 1,2
Name of the Faculty: [Link]