0% found this document useful (0 votes)
61 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)
61 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
a) Describe Keyword "continue" with example.
22223
b) Explain creating Dictionary and accessing Dictionary
3 Hours / 70 Marks Seat No. Elements with example.
c) Explain any four Python's Built-in Function with example.
Instructions – (1) All Questions are Compulsory.
d) Write a Python program to find the factorial of a number
(2) Answer each next main Question on a new page.
provided by the user.
(3) Illustrate your answers with neat sketches wherever
necessary. 3. Attempt any THREE of the following: 12
(4) Figures to the right indicate full marks. a) Write a python program to input any two tuples and interchange
(5) Assume suitable data, if necessary. the tuple variables.
b) Explain Bitwise operator in Python with appropriate example.
(6) Mobile Phone, Pager and any other Electronic
Communication devices are not permissible in c) With neat example differentiate between readline( ) and
Examination Hall. readlines( ) functions in file-handling.
d) Describe 'Self' Parameter with example.
Marks
4. Attempt any THREE of the following: 12
1. Attempt any FIVE of the following: 10
a) Differentiate between list and Tuple.
a) List features of Python.
b) Explain any four file modes in Python.
b) Describe membership operators in python.
c) Write a program to show user defined exception in Python.
c) Write down the output of the following Python code
d) Explain Module and its use in Python.
>>>indices=['zero','one','two','three','four','five']
i) >>>indices[:4] 5. Attempt any TWO of the following: 12
ii) >>>indices[:-2] a) Write a Python Program to check if a string is palindrome
or not.
d) Describe any two data conversion function.
b) Write a Python program to calculate sum of digit of given
e) With neat example explain default constructor concept in Python.
number using function.
f) Describe mkdir( ) function.
c) Write a Python Program to accept values from user in a list
g) Describe Multiline comment in python. and find the largest number and smallest number in a list.

P.T.O.
22616 [3]
Marks
6. Attempt any TWO of the following: 12
a) Explain any six set function with example.
b) Design a class student with data members : name, roll no.,
department, mobile no. Create suitable methods for reading
and printing student information.
c) With suitable example explain inheritance in Python.

You might also like