MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous)
(ISO/IEC - 27001 - 2013 Certified)
SUMMER 2025 EXAMINATION
Subject Name: Programming with Python Subject Code: 22616
----------------------------------------------------
Instructions to Candidates:
1) All questions are compulsory.
2) Figures to the right indicate full marks.
3) Assume suitable data wherever necessary.
----------------------------------------------------
Q.1 Attempt any FIVE of the following: (10 Marks)
a) List any four features of Python.
b) What is the difference between is and == operator?
c) Explain the role of indentation in Python.
d) Write the syntax and use of lambda function in Python.
e) State the use of 'elif' keyword with example.
f) List any four file modes in Python.
Q.2 Attempt any THREE of the following: (12 Marks)
a) Write a Python program to print even numbers from 1 to 10 using loop.
b) Explain list and tuple with any two differences and one example each.
c) Write a program to check whether a string is a palindrome.
d) Explain with example the use of any four string functions in Python.
Q.3 Attempt any THREE of the following: (12 Marks)
a) What are membership operators? Explain with example.
b) Write a Python program using user-defined module.
c) Explain use of read(), readline(), and readlines() in Python file handling.
d) Describe exception handling with try, except and finally block.
Q.4 Attempt any THREE of the following: (12 Marks)
a) Compare List, Tuple, Set and Dictionary in tabular form.
b) Write a Python program to perform add, update, and delete operation on Dictionary.
c) Explain different types of arguments in Python functions.
d) Write a program to read a file and copy content into another file.
Q.5 Attempt any TWO of the following: (12 Marks)
a) Explain any four operations on Sets with suitable examples.
b) Describe the structure and advantages of NumPy arrays.
c) Write a Python program to demonstrate inheritance.
Q.6 Attempt any TWO of the following: (12 Marks)
a) Write a program to create a class Book with attributes title, author and price. Display the details.
b) Describe the concept of data hiding and abstraction in Python.
c) Write a Python program to create a package for geometric shapes and use it in another file.
--- Best of Luck! ---