0% found this document useful (0 votes)
45 views4 pages

yT7QidiZBm - 22616 2025 Summer Question Paper

The document outlines an examination paper for Python programming, detailing instructions and various questions across multiple sections. It includes tasks related to Python features, data types, control statements, file handling, and exception handling. Candidates are required to answer a specified number of questions from each section, demonstrating their understanding of Python concepts and coding skills.

Uploaded by

yasminmulani2006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views4 pages

yT7QidiZBm - 22616 2025 Summer Question Paper

The document outlines an examination paper for Python programming, detailing instructions and various questions across multiple sections. It includes tasks related to Python features, data types, control statements, file handling, and exception handling. Candidates are required to answer a specified number of questions from each section, demonstrating their understanding of Python concepts and coding skills.

Uploaded by

yasminmulani2006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

22616

12425
03 Hours / 70 Marks Seat No.

Instructions – (1) All Questions are Compulsory.


(2) Assume suitable data, if necessary.
(3) Use of Non-programmable Electronic Pocket
Calculator is permissible.
(4) Mobile Phone, Pager and any other Electronic
Communication devices are not permissible in
Examination Hall.

Marks

1. Attempt any FIVE of the following: 10


a) List features of Python and define any two.
b) List membership operators a n d l o g i c a l in Python.
c) Define the use of if, if else and nested if else statement in python.
d) Define class and object.
e) Define list, set, Dictionary and syntax of any two methods.
f) Define the use of comment and define multiline comment in python.
g) Define data hiding and data abstraction concept in python and advantage of
hiding
h) List types of packages and define in one line 1. matplotlib,
2.numpy,3pandas.
i) List different modes of opening file in python.

P.T.O.
22616 [2]
Marks
2. Attempt any THREE of the following: 12
a) Explain python building blocks
b) Explain loop control statement in python.
c) Write a program illustrating use of user defined package in
python.
d) Explain in details NumPy and Matplotlib package with any one
example of package.
e) Describe any four-method list and sets in python with example.
f) Differentiate between list and tuple.
g) Explain any four built in function of set, tuple and list.

3. Attempt any THREE of the following: 12


a) List python data types and explain any two with example.
b) Write a python program to find the factorial of a number provide
by user.
c) How to create Dictionary in python write any three methods.
d) Explain Scope of variable with example and Difference between global
variable and local variable.
e) Explain Built in math function with suitable example.
f) Explain user Define function in python with example.

4. Attempt any THREE of the following: 12


a) Explain if-else nested if else statement with example.
b) Write a program generate Fibonacci series in python.
c) Explain set built in function and operations with examples.
d) Write python program to perform following operations on
Dictionary
-create a dictionary of 4 elements
-deleting values in dictionary.
-update dictionary by adding one element.
-Access dictionary element by its key: pairs.
e) Explain “self “parameter with example.
22616 [3]
Marks

f) Write a program for importing module for addition and


subtraction of two numbers.

g) WAP to read contents of first.txt file and write same content in


second.txt file.

h) Difference between overloading and overriding and explain the


methods with example.
i) Explain bitwise, identity, logical, relational operator in python
with suitable example.
22616 [4]
Marks
5. Attempt any TWO of the following: 12
a) Write a program to create user defined exception that will check whether
password is correct or not.
b) Write the output of the following:
c) i) >>> a = [2, 5, 1, 3, 6, 9, 7 ]
>>> a [ 2 : 6] = [ 2, 4, 9, 0]
>>> print (a)
ii) >>> b = [ “Hello” , “Good”]
>>> b. append ( “python” )
>>> print (b)
iii) >>> t1 = [ 3, 5, 6, 7 ]
>>> print (t 1 [2])
>>> print (t 1 [–1])
>>> print (t 1 [2 :])
>>> print (t 1 [:])
d) Describe various modes of file object explain any three in details.
e) Explain try – except block used in exception handling in python
with example.
f) Write a program to implement inheritance in python and explain in
brief.

6. Attempt any TWO of the following: 12


a) Explain Multiline inheritance with example.
b) Explain try-except -else- finally block used in exception handling
in python with example.
c) Explain Function with argument and without argument in details
with example.
d) Write a two-python program on
i. Calculate sum of digit of given number using function
ii. write a python program check if a string is palindrome or not.
e) Write a program to create class student with Roll no. and Name
and display its contents.
f) Explain any four set operations with example and built in
function.

You might also like