Python Mock 01 by Diploma Helper
Python Mock 01 by Diploma Helper
3 Hours / 70 Marks
Instructions –
(1) Attempt all questions.
(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 .
g) With neat example differentiate between readline() and readlines() function in file
handling.
b) Describe Tuple and explain any 4 built-in tuple function in python with example.
c) Describe use of module, write a program to show how to write & use module by
importing it.
a) Write a Python program to accept a value from user in list and find the greatest &
smallest number in list.
e) Write a program to read contents of abc.txt and write the same contents to pqr.txt .
c) Design a class student with data members : Name , roll no , address , department ,
mobile no . Create suitable method for reading and printing student details.