20ESIT202 - Python Programming
20ESIT202 - Python Programming
Unit - I
Unit - I / Part - A / 2 Marks
Mark
Split- K-L
S.No Questions up evel CO
a. 100 / 10 * 10
b. 100/(10*10)
15.
c. 2 ** 3 ** 2
16 What is the output of the following statements? 2 K1 CO1
Unit - I / Part - B / 13 Marks
Marks
K–
S.No Questions Split-u Level
CO
5. 13
6. 7
Marks
K–
S.No Questions Split-u
CO
Level
p
Unit - II
Mark
K–
S.No Questions Split-u CO
Level
p
16 List out the methods that are available with list object in 2 K1 CO2
python programming
17 Show the membership operators used in the list 2 K1 CO2
Marks
K–
S.No Questions Split
CO
Level
Up
1 6
5 Explain in detail about list loop ,aliasing and cloning a list with 13 K2 CO2
example.
6 Explain in detail about tuple,tuple assignment and tuple as 13 K2 CO2
return value.
7 Explain in detail about set operations and methods. 13 K2 CO2
Marks
K–
S.No Questions Split Level
CO
Up
Unit - III
Mark
K–
S.No Questions Split-u CO
Level
p
7
What is set? 2 K1 CO2
1 6
Write a Python program to store ‘n’ numbers in a list and sort the 13 K1 CO3
2 list using selection sort.
Write the syntax and explain the concept of (i) Recursive function 13 K3 CO3
with an example. (7)
What is recursive function. What are its advantages and dis 13 K2 CO3
10 advantages. Compare it with iterative function
2. Create a user defined fruitful function to test a given year is a leap 15 K3 CO3
year.
4 What are modules in Python? How will you import them? Explain 15 K1 CO3
the concept by creating and importing the module.
Unit - IV
8. Write down the steps involved in reading from a text file and 2 K1 CO4
writing in another file
10. argc and argv - How they are associated with command line 2 K2 CO4
arguments
print(“Hi”)
finally:
print(“Hello”)
14. Write the output of the below program - justify your answer 2 K2 CO4
try:
print(x)
except:
print(“Error Occurred”)
x = 100
else:
print(“Data is “,x)
x =1000000
import math
math.exp(x)
Marks
K–
S.No Questions Split Level
CO
Up
Marks
K–
S.No Questions Split
CO
Level
Up
10. Briefly explain about private and public methods in python 13 K1 CO4
Marks
K–
S.No Questions Split Level
CO
Up
Get PAN number from user, Validate the input using python, 15 K2 CO4
PAN number must be in format “XXXXX1234X” where first five
places are characters, followed by 4 numbers and ends with a
character. If the input is not valid throw user defined exception
2 “INVALID PAN INPUT”
Write a python program to get voter detail like in the given form 15 K2 CO4
as dictionary
{name: a ,
phone: 1234567890,
age: 24}
● Accept
● Display
● Search
● Delete
4 ● Update
Course Outcomes
CO Outcomes K level