0% found this document useful (0 votes)
29 views2 pages

3 Hours / 70 Marks: Seat No

python diploma question paper
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)
29 views2 pages

3 Hours / 70 Marks: Seat No

python diploma question paper
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/ 2

22616 22616

2.
[2]

Attempt any THREE of the following:


Marks
12
21222 a) Write a program to print following :
1
3 Hours / 70 Marks Seat No.
1 2
15 minutes extra for each hour
1 2 3
Instructions – (1) All Questions are Compulsory. 1 2 3 4
(2) Answer each next main Question on a new page. b) Explain four Buit-in tuple functions python with example.
(3) Illustrate your answers with neat sketches wherever c) Explain how to use user defined function in python with
necessary. example.
(4) Figures to the right indicate full marks. d) Write a program to create class EMPLOYEE with ID and
NAME and display its contents.
(5) Assume suitable data, if necessary.
(6) Mobile Phone, Pager and any other Electronic 3. Attempt any THREE of the following: 12
Communication devices are not permissible in
a) List Data types used in python. Explain any two with
Examination Hall.
example.
b) Explain membership and assignment operators with example.
Marks
c) Explain indexing and slicing in list with example.
d) Write a program for importing module for addition and
1. Attempt any FIVE of the following: 10 substraction of two numbers.
a) Name different modes of python.
4. Attempt any THREE of the following: 12
b) List identity operators in python.
a) Write a program to create dictionary of students that
c) Give two differences between list and tuple. includes their ROLL NO. and NAME.

d) Explain Local and Global variable. i) Add three students in above dictionary
ii) Update name = ‘Shreyas’ of ROLL NO = 2
e) Define class and object in python.
iii) Delete information of ROLL NO = 1
f) How to give single and multiline comment in python.
b) Explain decision making statements If - else, if - elif - else with
g) List different modes of opening file in python. example.
c) Explain use of format () method with example.
d) Explain building blocks of python.
e) Write a program illustrating use of user defined package in
python.

P.T.O.
22616 [3]
Marks
5. 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)

ii) >>> b = [ “Hello” , “Good” ]


>>> b. append ( “python” )
>>> print (b)

iii) >>> t1 = [ 3, 5, 6, 7 ]
>>> print ( t1 [2] )
>>> print ( t1 [–1] )
>>> print ( t1 [2 :] )
>>> print ( t1 [ : ] )

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 TWO 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.

You might also like