0% found this document useful (0 votes)
8 views

python s22

The document outlines an examination format for a Python programming course, detailing the structure, instructions, and types of questions to be answered. It includes sections for multiple-choice questions, programming tasks, and theoretical explanations, with specific marks allocated for each section. The exam prohibits electronic devices and requires answers to be presented clearly with appropriate sketches where necessary.

Uploaded by

ag0517786
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

python s22

The document outlines an examination format for a Python programming course, detailing the structure, instructions, and types of questions to be answered. It includes sections for multiple-choice questions, programming tasks, and theoretical explanations, with specific marks allocated for each section. The exam prohibits electronic devices and requires answers to be presented clearly with appropriate sketches where necessary.

Uploaded by

ag0517786
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

22616

21222
3 Hours / 70 Marks Scat No.
15 minutes extra 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 are not permissible in
Examination Hall.

Marks

1. Attempt any FIVE of the following: 10

a) Name different modes of python.

b) List identity operators in python.


c) Give two differences between list and tuple.

d) Explain Local and Global variable.

e) Define class and object in python.

f) How to give single and multiline comment in python.

g) List different modes of opening file in python.

PTO
22616 [2]
Marks
Attempt any THREE of the following: 12

a) Write a program to print following:


1
1 2
1 2 3
1 2 3 4
Explain four Buit-in tuple functions python with example.
Explain how to use user defined function in python with
example.
Write a program to create class EMPLOYEE with ID and
NAME and display its contents.

Attempt any THREE of the following: 12


List Data types used m python. Explain any two with
example.
Explain membership and assignment operators with example.
Explain indexing and slicing in list with example.
Write a program for importing module for addition and
substraction of two numbers.

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
i) Update name = ‘Shreyas’ of ROLL NO = 2
iii) Delete information of ROLL NO = 1
Explain decision making statements If-else, if-elif-else with
example.
Explain use of format () method with example.
Explain building blocks of python.
Write a program illustrating use of user defined package in
python.
22616 [3]
Marks
Attempt any TWO of the following: 12
a) Write the output of the following:

) >>>a=1[251,3,609 7]
>>>a[2: 6] =[2 4,9 0]
>>> print (a)

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


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

iif) >>>t = [3,5,6,7]


>>> print (t; [2])
>>> print (t; [-1])
>>> print (t; [2:])
>>> print (t; [:])

b) Explain method overloading in python with example.


) Write a program to open a file in write mode and append
some contents at the end of file.

Attempt any TWO of the following: 12


Explain package Numpy with example.
Write a program to implement the concept of inheritance in
python.
Explain Try-except block used in exception handling in
python with example.

You might also like