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

Python Read Only by Diploma Helper

The document provides instructions for completing mock papers related to Python programming, emphasizing that the MAD Paper will be based on these mocks. It outlines various programming tasks across multiple units, including applications of Python, basic operations, data structures, and file handling. Additionally, it encourages students to share their answers in PDF format and offers contact information for further assistance.

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

Python Read Only by Diploma Helper

The document provides instructions for completing mock papers related to Python programming, emphasizing that the MAD Paper will be based on these mocks. It outlines various programming tasks across multiple units, including applications of Python, basic operations, data structures, and file handling. Additionally, it encourages students to share their answers in PDF format and offers contact information for further assistance.

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 READ ONLY BY DIPLOAM HELPER.

Instructions
(1) Fistly write MOCK PAPER 01 and 02 with all optional questions as well, then if you get extra time
go for below question as well.
(2) Definitely te MAD Paper will came from MOCK 1 & MOCK 2.
(3) Share the answer in PDF Format to Admin number.
(4) Those who are still not joined to Diploma Helper Official group contact 8698079745.
(5) Don’t panic you have enough time for preparation.

Unit 01.
a) Enlist applications for python programming.
b) How to install python and its environment.
Unit 02.
a) Write a program to print following :
1
12
123
1234
b) Write python program to illustrate if else ladder.
c) Write Python code for finding greatest among four numbers.
d) What is recursion and Write a Python program to find the factorial of a number provided by
the user using recursive function.
e) Write python program to display output like.
2
468
10 12 14 16 18
f) Print the following pattern using loop:
1010101
10101
101
1
g) Define python operator precedence.
h) Write a program to find square and cube of number.
i) Write a program to find even odd.
j) Write a program to find number is prime or not.
k) Write a program to print Fibonacci series up to n term.

Diploma Helper. Feel free to DM us at. 8698079745


PYTHON READ ONLY BY DIPLOAM HELPER.

Unit 03.
a) Write basis operations of list , tuple , dictionaries.
b) State built-in dictionaries function.
c) Write down the output of the following Python code
>>>indices=['zero','one','two','three','four','five']
i) >>>indices[:4]
ii) >>>indices[:-2
d) Explain any six set function with example.
e) T = (‘spam’, ‘Spam’, ‘SPAM!’, ‘SaPm’)
print (T [2] )
print (T [-2] )
print (T [2:] )
print (List (T) )
f) Explain different functions or ways to remove key : value pair from Dictionary.
g) Write syntax for a method to sort a list.
h) Write the output for the following if the variable course = “Python”
>>> course [ : 3 ]
>>> course [ 3 : ]
>>> course [ 2 : 2 ]
>>> course [ : ]
>>> course [ -1 ]
>>> course [ 1 ]
i) What is the output of the following program?
dict1 = {‘Google’ : 1, ‘Facebook’ : 2, ‘Microsoft’ : 3}
dict2 = {‘GFG’ : 1, ‘Microsoft’ : 2, ‘Youtube’ : 3}
dict1⋅update(dict2);
for key, values in dictl⋅items( ):
print (key, values)
j) Write the output for the following if the variable fruit = “banana”.
>> fruit [:3]
>> fruit [3:]
>> fruit [3:3]
>> fruit [:]

Unit 04.
a) Write a program for importing module for addition and substraction of two numbers.
b) What is command line argument? Write python code to add b) two numbers given as input
from command line arguments and print its sum.
c) Enlist any four data structures used in python.
d) Write a python program to generate five random integers between 10 and 50 using numpy
library.
e) How to write, import and alias modules.
f) State use of namespace and scoping in python.
g) Define math and scipy package in short.
h) Explain mutable and immutable datastructure.

Diploma Helper. Feel free to DM us at. 8698079745


PYTHON READ ONLY BY DIPLOAM HELPER.

Unit 05.
a) Write a program to create class EMPLOYEE with ID and NAME and display its contents.
b) Types of Inheritance in Python with example.
Unit 06.
a) Name different modes of python.
b) State the use of read ( ) and readline ( ) functions in python file handling.
c) Write python code to count frequency of each characters in a given file.
d) Describe any two data conversion function.
e) Explain seek ( ) and tell ( ) function for file pointer manipulation in python with example
f) Write a program function that accepts a string and calculate the number of uppercase letters and
lower case letters.
g) Define ‘raise’ statement in exception handling in python.
h) State append() , insert() , extend(), fopen().

Diploma Helper. Feel free to DM us at. 8698079745

You might also like