Python Paper - BR - Revised
Python Paper - BR - Revised
Python Paper - BR - Revised
Max. CO Bloom's
Marks Mapping Taxonomy
Level
PART – A
(Basics/Fundamentals related questions)
All questions are compulsory.
Q.1 (a) Enlist the applications of interactive and script modes of python [1] [CO1] [2]
programming.
Q.1 (b) Identify which of the following declarations are incorrect and give suitable [2] [CO1] [2]
reason for it?
a) __Aa = 3
b) 1abc__ = 5.0
c) X_x = ‘Hello’
d) aa_@ =1+2j
Q.1 (c) Detect the errors in the following python code: [2] [CO2] [2]
N =input (“Enter a number”)
S = N + N/N2
print (s)
Q.1 (d) Predict the output of the following python code: [2] [CO3] [2]
lst = [10, 20, 30, 40, 50]
a=0
for ele in s:
a+=ele
print(a/len(s))
PART – B
(Analytical/Numerical questions)
Attempt one question either A or B from each question.
Q.2 (A) Differentiate between Identifiers and Keywords of Python w.r.t. any four [4] [CO1] [2]
attributes.
OR
Q.2 (B) Write a python code to compute the mean of the values taken input using [4] [CO1] [3]
command line arguments.
Q.3 (A) Write a python code to display the following pattern using for-else loop. [4] [CO2] [3]
*
* *
* * *
* * * *
* * * * *
Page 1 of 3
OR
Q.3 (B) For finding the maximum out of the given three numbers, following code has [2+2] [CO2] [2]
been written. Detect the errors in it and rewrite the code to display the final
output.
x, y, z = 20, 30, 40;
if x > y and x > z
print (‘biggest=’, + str(x));
elif y > x and y > z:
print ((‘biggest=’, + str(y));
else z > x and z > y:
print ((‘biggest=’, + str(z));
Q. 4 (A) What will be the output of the following instructions? [4*1] [CO3] [2]
Given, string1 = 'I am Student of JIET, Jodhpur'
a) print ('string =', string1)
b) print (string1. lower ())
c) print (string1. index ('a'))
d) print (string1 + ' (Rajasthan)')
OR
Q. 4 (B) Write a user interfacing program to remove all the duplicates from a list of [4] [CO3] [3]
20 numbers. Display the final list as output of the program.
PART – C
(Descriptive/Analytical/Problem Solving/Design questions)
Attempt any 2 out of 3 (Q.4 to Q.6)
Q.5 Discuss the key features of Python Programming Language which makes it [8+2] [CO1] [1]
significant for various fields. Also, mention any four application areas where
it is being popularly used.
Q.6 Predict the output of following instructions, when they will be executed in [2*5] [CO2] [2]
python compiler. If there would be any error, then output will be that error
detection.
(a) for i in range (1,10):
print (‘i1 =’, i)
if (i= = 5):
break
print (‘i2 =’, i)
print (‘i3 =’, i)
Page 3 of 3