Sub code: R25ES09 R25
AVANTHI INSTITUTE OF ENGINEERING AND TECHNOLOGY
(UGC - Autonomous)
(Approved by AICTE, Recg. by Govt. of T.G & Affiliated to JNTU, Hyderabad) NAAC “A” Accredited Institute
BTech I Year II Semester PRE-FINAL Examinations, JUNE-2026
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
(Common to: CSE-ALL)
Subject Name: Python Programming
Time: 3hours Date: Max. Marks: 60
Note: This question paper contains two parts: Part A and Part B.
1. Part A (Compulsory): Answer all questions; total 10 marks.
2. Part B: Ten questions from five units; answer one full question per unit.
Each question carries 10 marks and may include sub-questions (a, b).
PART-A (10 Marks)
Questions BT Level Marks
1. a Define Python and list its main features. L1 2M
b Write two string methods and explain one. L1 2M
c Define a function and give one example. L1 2M
d What is an exception? Give one example. L1 2M
e What is Http? L1 2M
PART-B
[Link] Sub-Q Question BT Level Marks
2 A Explain data types in Python with examples. L3 5M
B Explain decision-making statements in Python with example programs. L3 5M
OR
3 A Explain looping statements in Python. L3 5M
B Program to find prime numbers. L3 5M
4 A Explain lists and their methods. L2 5M
B Explain list comprehension with examples. L4 5M
OR
5 A Explain string operations and methods. L1 5M
B Compare lists, tuples, sets, and dictionaries. L3 5M
6 A Explain types of arguments with examples. L3 5M
B Recursive function to find factorial. L4 5M
OR
7 A Explain generators and yield. L5 5M
B Explain file operations with examples. L4 5M
8 A Explain types of errors with examples. L2 5M
B Explain exception handling keywords. L3 5M
OR
9 A Program to handle divide-by-zero exception. L3 5M
B Program to validate email ID using regex. L3 5M
10 A Explain GUI programming using Tkinter. L3 5M
B Program to create a GUI calculator. L3 5M
OR
11 A Explain SQLite3 connection and table creation. L3 5M
B Program for insert, update, delete in SQLite3. L3 5M