PANIMALAR ENGINEERING COLLEGE
An Autonomous Institution, Affiliated to Anna University, Chennai
CHENNAI -600 123
B.E./ [Link]. / M.E. / M.B.A DEGREE END SEMESTER EXAMINATIONS
II – Semester
23ES1215 –PROGRAMMING IN PYTHON LAB
(Regulations R2023)
Time : Three hours Maximum : 100 Marks
SET B
LIST OF QUESTIONS
1. (i) Write a Python program to accept three numbers and display the smallest among
them.
(ii) Write a Python program to reverse a given string and display the output
2. (i) Write a Python program to append data into an existing file.
(ii) Write a Python program to demonstrate nested if statements with suitable example.
3. (i) Write a Python program to perform subtraction of two matrices.
(ii) Write a Python program to demonstrate the use of lambda function.
4. (i) Write a Python program to check whether a given number is a palindrome or not
(ii) Write a Python program to demonstrate type casting between different data types
5. (i) Write a Python program to generate Fibonacci series using recursion.
(ii) Write a program to demonstrate the concept of various built in exception handling
functions like (i) File not found (ii) Type Error (iii) Index Error
6. (i) Write a Python program to handle Zero Division Error using exception handling.
(ii) Write a Python program to check whether one set is a subset of another.
7. (i) Write a Python program to print a triangle pattern using loops.
(ii) Write a Python program to delete elements from a dictionary.
8. (i) Write a Python program to demonstrate the use of else block with try-except.
(ii) Write a Python program to access tuple elements using indexing.
9. (i) Write a Python program to sort elements in a list..
(ii) Write a Python program to design a GUI using Tkinter with label and entry widgets
Signature of Internal Examiner Signature of External Examiner
with Name & Designation with Name & Designation
PANIMALAR ENGINEERING COLLEGE
An Autonomous Institution, Affiliated to Anna University, Chennai
CHENNAI -600 123
B.E./ [Link]. / M.E. / M.B.A DEGREE END SEMESTER EXAMINATIONS
II – Semester
23ES1215 –PROGRAMMING IN PYTHON LAB
(Regulations R2023)
Time : Three hours Maximum : 100 Marks
10 (i) Write a Python program to perform arithmetic operations using menu-driven
approach.
(ii) Write a Python program to compute distance between two points using functions.
11. (i) Write a Python program to demonstrate the use of continue statement in loops.
(ii) Write a Python program to print numbers using range() function.
12. (i) Write a Python program to demonstrate functions with default arguments.
(ii) Write a Python program to read a file line by line and display it.
13 (i) Write a Python program to check whether a number is positive or negative.
(ii) Write a Python program to demonstrate string formatting techniques.
14 (i) Write a Python program to handle ValueError using exception handling..
(ii) Write a Python program using NumPy to perform array operations
15 (i) Write a Python program to find factorial of a number using for loop..
(ii) Write a Python program to demonstrate function composition
16 (i) Write a Python program to calculate the circumference of a circle.
(ii) Write a Python program to design a simple calculator using Tkinter.
17 (i) Write a Python program to demonstrate int, float, and complex data types.
(ii) Write a Python program to add elements into a dictionary
18 (i) Write a Python program to perform set difference operation.
(ii) Write a Python program to find the sum of even numbers in a given range.
19 (i) Write a Python program to display a matrix..
(ii) Write a Python program to access tuple elements using index values
Signature of Internal Examiner Signature of External Examiner
with Name & Designation with Name & Designation
PANIMALAR ENGINEERING COLLEGE
An Autonomous Institution, Affiliated to Anna University, Chennai
CHENNAI -600 123
B.E./ [Link]. / M.E. / M.B.A DEGREE END SEMESTER EXAMINATIONS
II – Semester
23ES1215 –PROGRAMMING IN PYTHON LAB
(Regulations R2023)
Time : Three hours Maximum : 100 Marks
20 (i) Write a Python program to demonstrate elif ladder..
(ii) Write a Python program using Pandas to create and manipulate a DataFrame
Signature of Internal Examiner Signature of External Examiner
with Name & Designation with Name & Designation
PANIMALAR ENGINEERING COLLEGE
An Autonomous Institution, Affiliated to Anna University, Chennai
CHENNAI -600 123
B.E./ [Link]. / M.E. / M.B.A DEGREE END SEMESTER EXAMINATIONS
II – Semester
23ES1215 –PROGRAMMING IN PYTHON LAB
(Regulations R2023)
Time : Three hours Maximum : 100 Marks
Allocation of Marks
(Shall be common for all Questions or may vary accordingly)
S. Allocation Marks
No
Aim &Algorithm 10(2+8)
Program-1 & Program-2 70(35+35)
Output& Result 10(5+5)
Viva voce 10
Total Marks 100
**********
Signature of Internal Examiner Signature of External Examiner
with Name & Designation with Name & Designation