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

Python Mocker

This document is a Python mock exam paper consisting of various questions covering topics such as decision-making statements, functions, list operations, data hiding, and inheritance. It includes instructions for completion, submission, and additional resources for students. The exam is structured into multiple sections, each requiring different programming tasks and explanations.

Uploaded by

mirkhales
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)
11 views

Python Mocker

This document is a Python mock exam paper consisting of various questions covering topics such as decision-making statements, functions, list operations, data hiding, and inheritance. It includes instructions for completion, submission, and additional resources for students. The exam is structured into multiple sections, each requiring different programming tasks and explanations.

Uploaded by

mirkhales
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 02.

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) Describe following decision making statement with example.


i) if-elif-else ii) Nested if

b) State following function with example.


i) The open() function
ii) The write() function

c) Write basic operations of list.

d) State following function with example.


i) mkdir() function ii) lambda function

e) State with neat diagram default constructor concept in python

f) Explain use of format() method with example.

g) Describe ‘Self’ parameter with example.

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

a) Explain use of following operator with suitable example. (any 2)


i) Bitwise ii) Arithmetic iii) Logical

b) Difference between: list vs tuple.

c) Write a program to calculate the sum of digit of given number using function.

d) Write python code to check for zero division error exception.

Diploma Helper. Feel free to DM us at. 8698079745


PYTHON MOCK PAPER 02.

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

a) Write a python program to input any two tuple & interchange the tuple variable.

b) Write 4 methods of list in python.

c) Write a program to create user define module that will ask the program name and
display the name of program.

d) Explain data hiding and data abstraction with advantages.

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

a) Write a program to create dictionary of students that includes their ROLL NO. and NAME.
i) Add three students in above dictionary
ii) Update name = ‘Shreyas’ of ROLL NO = 2
iii)Delete information of ROLL NO = 1

b) Explain indexing and slicing in list with example.

c) Explain any 4 built in function with example.

d) Explain multiple inheritance and write a program to implement it.

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

Diploma Helper. Feel free to DM us at. 8698079745


PYTHON MOCK PAPER 02.

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

a) Write use of different datatypes used in python with suitable example.

b) Explain any six set built in function with example.

c) Write a Python program to create a class ‘Diploma’ having a method ‘getdiploma’ that
prints “I got a diploma”. It has two subclasses namely ‘CO’ and ‘IF’ each having a method
with the same name that prints “I am with CO diploma” and ‘I am with IF diploma’
respectively. Call the method by creating an object of each of the three classes.

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

a) Describe following keywords with example.(any 3)


i) continue ii) pass iii) break iv) elif v) else

b) Write a program to create a user defined exception that will check whether password is
correct or not .

c) Describe following standard packages with example.


i) NumPy.
ii) Pandas.
iii) Matplotlib

--- Best of Luck ---

Diploma Helper. Feel free to DM us at. 8698079745

You might also like