Question Paper Code: 235487
Register No:
PANIMALAR ENGINEERING COLLEGE
An Autonomous Institution, Affiliated to Anna University
CHENNAI - 600 123
B.E/B.TECH.DEGREE END SEMESTER EXAMINATIONS APRIL / MAY 2024
Second Semester
Common to all Branches
(Except B.E- Mechanical Engineering &
B.Tech. – Computer Science and Business Systems)
23ES1201 – PYTHON PROGRAMMING
(Regulation 2023)
Maximum Marks: 100 Duration: 3 hours
Course Outcome:
CO1: Develop and execute simple Python programs using conditionals and loops for solving problems.
CO2: Express proficiency in the handling of strings and functions.
CO3: Represent compound data using Python lists, tuples, dictionaries, sets etc.
CO4: Read and write data from/to files and handle exceptions in Python programs.
CO5: Implement python packages in data analysis and design GUI.
CO6: Examine various problem solving concepts in python to develop real time applications.
Bloom’s Level: 1 - Remembering, 2 - Understanding, 3 - Applying, 4 - Analyzing, 5 - Evaluating 6 - Creating.
Answer All the Questions
Bloom’s Course Marks
PART A (10 x 2 = 20 Marks) Level Outcome Allotted
1. Differentiate between interactive mode and script mode in Python. [BL3] [CO1] [2]
2. Write a Python function to find the minimum value in a given list. [BL3] [CO1] [2]
3. Write a Python program to calculate area of a circle using functions. [BL3] [CO2] [2]
4. What is lambda function in Python? Give example. [BL1] [CO2] [2]
5. Compare lists and tuples. [BL2] [CO3] [2]
6. What will be the output of the following Python code? [BL1] [CO3] [2]
a={1:5,2:3,3:4}
a.pop(3)
print(a)
7. How to open a file in Python? [BL3] [CO4] [2]
8. Distinguish errors and exceptions in python. [BL3] [CO4] [2]
9. What is Tkinter and what is its role in Python GUI programming? [BL1] [CO5] [2]
10. List the different types of charts supported by matplotlib. [BL1] [CO5] [2]
PART B (5 x 13 = 65 Marks)
11.a Develop a python program to illustrate the use of various operators [BL3] [CO1] [13]
and explain its types?
Question Paper Code: 235487
OR
11.b Explain in detail about control flow statements with examples. [BL2] [CO1] [13]
12.a Explain recursion with suitable examples. [BL2] [CO2] [13]
OR
12.b Explain in detail about the operations and methods of strings with [BL2] [CO2] [13]
example.
13.a Outline in detail about lists, list operations and list slices. [BL2] [CO3] [13]
OR
13.b Show how dictionaries are used in python programs. Also discuss [BL3] [CO3] [13]
various operations on dictionaries.
14.a Develop a python program to read and write from a text file. [BL3] [CO4] [13]
OR
14.b Discuss how user-defined exceptions are used in python. Write a [BL3] [CO4] [13]
python program for a banking application to implement a user-defined
exception called ‘InsufficientFundsError’, raised whenever a
withdrawal operation is attempted with insufficient funds in the
account.
15. Analyze the various Tkinter widgets available for creating interactive [BL3] [CO5] [13]
a GUIs in Python, comparing their features and functionalities.
OR
15.b Implement a GUI program using Tkinter to create a mark sheet [BL3] [CO6] [13]
application where users can input student marks and view the
average score.
PART C (1 x 15 = 15 Marks)
16.a Compare the advantages and limitations of lists, tuples, dictionaries, [BL5] [CO3] [15]
and sets.
OR
16.b Write a Python program that reads a sales dataset from a file using [BL5] [CO6] [15]
pandas, performs basic data cleaning and manipulation tasks using
numpy and pandas functions.
**********