1 G C C S
GHOUSIA COLLEGE OF ENGINEERING, RAMANAGARAM – 562159
Department of Computer Science and Engineering
TEST –II
Subject : Introduction to Python Programming Date: 21– 01– 2025
Semester: I Sem D & E Section Time: 02:30pm – 03:30pm
Sub. Code: BPLCK105B Max. Marks: 25
Note:Answer any TWO full questions choosing ONE from each Module.
Que.
Questions Marks COs RBT
No
MODULE–3
Explain Python string handling methods with examples:
CO2 L1
1(a) 6.5
split(),endswith(), ljust(), center(), lstrip() CO3 L2
Develop a Python program to read and print the contents of a text file CO2 L1
1(b) 6
CO3 L2
OR
Explain Python string handling methods with examples: join(),
CO3 L2
2(a) startswith(),rjust(),strip(),rstrip() 6
CO4 L3
Explain with suitable Python program segments: (i) [Link](path)
CO2
2(b) 6.5 L2
(ii) [Link](path) (iii) [Link](path) CO3
MODULE – 4
Explain permanent delete and safe delete with a suitable Python
CO3 L1
3(a) 6.5
programming example to each. CO4 L2
L1
Explain compressing of file using Zipfile module. CO3
3(b) 6 L2
CO4
L3
OR
Explain the functions with examples: (i) [Link]()
CO3
4(a) 6.5 L5
(ii) [Link]() (iii) [Link](). CO4
Explain Assertions with a suitable program. CO3 L1
4(b) 6
CO4 L3
L1 – Remembering, L2 – Understanding, L3 – Applying,L4 – Analysing, L5 – Evaluating. RBT – Revised Blooms Taxonomy
Staff Incharge:
Irfan Khan HOD,CSE