S-22
21222
22616
3 Hours| 70
15 minutes extra
Marks Seat No.
for each hour
Instructions (1) All
Questions are Compulsory.
(2) Answer each next main
Question on a new page.
3) Illustrate your answers with neat
sketches wherever
necessary.
(4) Figures to the right indicate full
marks.
(5) Assume suitable data, if
necessary.
(6) Mobile Phone, Pager and any other
Electronic
Communication devices
Examination Hali.
are not
permissible in
Marks
.
Attempt any FIVE of the folowing: 10
a) Name different modes of python.Se-ipt intractie
b) List identity operators in python.-is is not
c) Give two differences between list and
tuple.
d) Explain Local and Global variable.
e) Define class and object in
python.
How to give single and multiline mul
coment in pvthon. (+ Sinfu )C
g) List different modes of opening ile in python.
P.T.O
22616
121
Marks
2 Attempt any THREE of the following: 12
a) Write a program to print following
12
2 3
2 34
b) Explain four Buit-in tuple functions python with example.
c)Explain how to use user defined function in python with
example.
d Write a program to create class EMPLOYEE with ID and
NAME and display its contents.
Attempt any THREE of the following: 12
a) List Data types used in python. Explain any two with
example.
, bExplain membership and assignment operators with example.
Explain indexing and slicing in list with example.
d) Write a program for importing module for addition and
substraction of two numbers.
4 Attempt any THREE of the following: 12
a) Write a program to create dictionary of students that
includes their ROLL NO. and NAME.
i) Add three students in above dictionary
ii) Update name =
"Shreyas' oi ROLL NO =
2
Delete information of ROLL NO = 1
ii
b) Explain decision making statements If-else, if- elif- else with
example.
of format () method with exanple.
c) Explain use
dExplain building blocks of pythou.
ol user detined package in
progran1 illustrating
use
e) Write a
Python.
22616 31
Marks
Attempt any TWO of the following: 12
a) Write the output of the following
i) a -
[2, 5, 1, 3, 6, 9, 7]
a [2: 6] -
[2, 4, 9, 0]
print (a)
b = ["Hello" , "Good"]
ii)
>>>b. append ("python")
>>> print (b) C"HJo
ii) t [3, 5, 6, 7]
>
print (t, (2])
print (1 -1])
>> print (t, 2:]) 7
print (t, [:]) CS47
b) Explain method overloading in python with example.
c) Write a program to open a file in write mode and append
some contents at the end of file.
6. Attempt any TW0 of the following: 12
a) Explain package Numpy with example.
b)Write a program to implement the concept of inheritance in
python
c)Explain Try-except block used in exception handling in
python with example.