No.
of Copies:110
PSGR Krishnammal College for Women
College of Excellence
An autonomous College - Affiliated to Bharathiar University
Accredited with ‘A++’ Grade by NAAC, An ISO 9001 : 2015 Certified Institution,
Peelamedu, Coimbatore – 641 004
B COM (CA) Degree Examination– 2025, MODEL
Semester: IV
BP24C07-PROGRAMMNG WITH PYTHON
Time: 3 Hours Maximum: 75 Marks
Answer all questions
Q. No. Questions Marks /
CLO Level/
What is the purpose of the input() function in Python? Give an 2 Marks/
1(a)
example. CLO1
1(b) Explain the use of different data types in Python with appropriate
examples.
5 Marks/
OR
CLO2
Discuss various types of operators in Python and their significance in
1(c)
expressions.
1(d)
Employ Python loops for handling repetitive tasks.
OR 8 Marks/
CLO3
Describe working nested loops with an example program.
1(e)
2(a) What is a variable in Python? 2 Marks/
CLO1
2(b) Interpret any five string functions and explain them.
5 Marks/
OR
CLO3
Discuss how a lambda function are defined and used in Python.
2(c)
2(d) Compare recursion and loops with suitable examples.
OR 8 Marks/
Examine the use of different data structures to store and retrieve student CLO4
2(e) details efficiently.
3(a) What is the purpose of a destructor in Python? 2 Marks/
CLO1
3(b) Summarize the concept of abstraction with a real-life example.
5 Marks/
OR
CLO2
3(c) Discuss the concept of method overriding in polymorphism..
3(d) Demonstrate how getter and setter methods control access to attributes. 8 Marks/
OR CLO3
Illustrate how inheritance promotes code reusability with a class
3(e) example.
4(a) What is the purpose of the `import` statement in Python? 2 Marks/
CLO1
4(b) Describe how to create a user-defined exception in Python.
5 Marks/
OR
CLO3
4(c) Explain a scenario where pickling is useful.
4(d) Analyze the steps to read a file line-by-line using Python.
OR 8 Marks/
CLO4
4(e) Examine how Python handles runtime errors through exception classes.
5(a) What is web scraping? 2 Marks/
CLO1
5(b) Discuss the use of the mainloop() function in Tkinter applications. What
happens if it is omitted?
5 Marks/
5(c) OR
CLO2
Summarize the difference between AI, machine learning, and deep
learning.
5(d) Analyze classification and regression problems in machine learning with
examples.
8 Marks/
5(e) OR CLO4
Examine the use menu bars in Tkinter applications. Write a code snippet
to demonstrate adding a simple menu with two options.