235487-23es1201 – Python Programming
235487-23es1201 – Python Programming
Register No:
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.
**********