100% found this document useful (1 vote)
1K views3 pages

22616 2024 Winter Question Paper

The document outlines an examination paper for Python programming, detailing the structure and instructions for students. It includes various sections with questions on Python features, decision-making statements, file handling, and object-oriented programming concepts. Students are required to attempt a specified number of questions from each section, with a total of 70 marks available.
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
100% found this document useful (1 vote)
1K views3 pages

22616 2024 Winter Question Paper

The document outlines an examination paper for Python programming, detailing the structure and instructions for students. It includes various sections with questions on Python features, decision-making statements, file handling, and object-oriented programming concepts. Students are required to attempt a specified number of questions from each section, with a total of 70 marks available.
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/ 3

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.
b) List membership operators in Python.
c) Compare list and Tuple.
d) List different object oriented features supported by Python.
e) State how to perform comments in Python.
f) Define class and object.
g) List different modes of opening file in Python.

P.T.O.
22616 [2]
Marks
2. Attempt any THREE of the following: 12
a) Explain decision making statements if-else, if-elif-else with
example.
b) Describe any four methods of list in Python.
c) Write a program illustrating use of user defined package in
Python.
d) Describe various modes of file object? Explain any two in
detail.

3. Attempt any THREE of the following: 12


a) Explain identity and assignment operators with example.
b) How to create dictionary in Python? Write any three methods
of dictionary.
c) Explain how to use user defined function in Python with
example.
d) Describe the concept of inheritance in Python with example.

4. Attempt any THREE of the following: 12


a) Explain loop control statement in Python.
b) Illustrate with example method overloading.
c) Write a Python program to check for zero division errors
exception.
d) Write the output for the following if the variable fruit = ‘banana’.
>> fruit [:3]
>> fruit [3:]
>> fruit [3:3]
>> fruit [:]
e) Write a Python program to read contents from “a.txt” and write
same contents in “b.txt”.
22616 [3]
Marks
5. Attempt any TWO of the following: 12
a) Explain basic operation performed on set with suitable example.
b) How to write, import and alias modules.
c) Design a class student with data members; Name, Roll No.,
Address. Create suitable method for reading and printing students
details.

6. Attempt any TWO of the following: 12


a) Determine various data types available in Python with example.
b) Write a Python program to read contents of first.txt file and
write same content in second.txt file.
c) Explain Try-except-else-finally block used in exception handling
in Python with example.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy