0% found this document useful (0 votes)
7 views3 pages

Python Mock 01 by Diploma Helper

This document is a Python mock exam paper consisting of various questions covering topics such as object-oriented features, decision-making statements, file handling, and data structures. It includes instructions for completion and submission, as well as a contact number for assistance. The exam is structured into six questions with varying marks, requiring practical programming skills and theoretical knowledge in Python.

Uploaded by

pundliktalpale45
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)
7 views3 pages

Python Mock 01 by Diploma Helper

This document is a Python mock exam paper consisting of various questions covering topics such as object-oriented features, decision-making statements, file handling, and data structures. It includes instructions for completion and submission, as well as a contact number for assistance. The exam is structured into six questions with varying marks, requiring practical programming skills and theoretical knowledge in Python.

Uploaded by

pundliktalpale45
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

PYTHON MOCK PAPER 01.

3 Hours / 70 Marks
Instructions –
(1) Attempt all questions.

(2) Write paper in exact 3 hour.

(3) Share the answer in PDF Format to Admin number.

(4) Those who are still not joined to Diploma Helper group feel free to contact us at 8698079745.

(5) Tomorrow morning make sure to write this paper again from notes , textbook etc properly again
and analyse what you had done wrong .

Q 1. Attempt any FIVE of the following: 10 Marks

a) List any four Object Oriented features of Python.

b) Describe following decision making statement with example.


i) if – else
ii) Nested if

c) Differentiate between: List vs Dictionary

d) State global and local variable with example.

e) Define class and object with syntax.

f) List file operation in python.

g) With neat example differentiate between readline() and readlines() function in file
handling.

Q 2. Attempt any THREE of the following: 12 Marks

a) Explain looping statement in Python with example.

b) Describe Tuple and explain any 4 built-in tuple function in python with example.

c) Explain how to use user define function in python with example.

d) Describe various modes of file object ? Explain any two in detail.

Diploma Helper. Feel free to DM us at. 8698079745


PYTHON MOCK PAPER 01.

Q 3. Attempt any THREE of the following: 12 Marks

a) Write python program to perform following operations on set.


i) Create set of five elements
ii) Access set elements
iii) Update set by adding one element
iv) Remove one element from set.

b) How to create dictionary & explain 4 methods of dictionary.

c) Describe use of module, write a program to show how to write & use module by
importing it.

d) Explain method overloading and method overriding with example.

Q 4. Attempt any THREE of the following: 12 Marks

a) Write a Python program to accept a value from user in list and find the greatest &
smallest number in list.

b) Explain 4 built-in list function.

c) Write a Python Program to check if a string is palindrome or not.

d) Describe inheritance and write a program to implement it.

e) Write a program to read contents of abc.txt and write the same contents to pqr.txt .

Diploma Helper. Feel free to DM us at. 8698079745


PYTHON MOCK PAPER 01.

Q 5. Attempt any TWO of the following: 12 Marks

a) Describe with example python building blocks. (Any three)


i) Indentation ii) Variables iii) Identifiers
iv) Keywords v) Comments

b) 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 [ : ] )

c) Design a class student with data members : Name , roll no , address , department ,
mobile no . Create suitable method for reading and printing student details.

Q 6. Attempt any TWO of the following: 12 Marks

a) Explain following operators with example.


i) Identity ii) Membership
iii) Assignment iv) Comparison

b) Explain try-catch-else-finally block used in exception handling with example.

c) Write a program illustrating use of user define package in python.

--- Best of Luck ---

Diploma Helper. Feel free to DM us at. 8698079745

You might also like