1.
Which of the following is not a keyword?
A. 
B. 
C. 
D. 
2.
All keywords in Python are in:
A. 
B. 
C. 
D. 
3.
Which one of these is floor division?
A. 
B. 
C. 
D. 
4.
Operators with the same precedence are evaluated in which manner:
A. 
B. 
C. 
D. 
5.
Which of these is not a core data type?
A. 
B. 
C. 
D. 
6.
What will be the output of the following Python Code?
1.>>>str=”hello”
2.>>>str[:2]
A. 
B. 
C. 
D. 
7.
What is the return type of function id?
A. 
B. 
C. 
D. 
8.
What error occurs when you execute the following Python code snippet?
apple=mango
A. 
B. 
C. 
D. 
9.
What datatype is the object below?
L=[1, 23, “Hello” , 2]
A. 
B. 
C. 
D. 
10.
Which data type use key-value pair?
A. 
B. 
C. 
D. 
11.
Which of the following is not a complex number?
A. 
B. 
C. 
D. 
12.
What does ~4 evaluate to?
A. 
B. 
C. 
D. 
13.
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
14.
Which of the following operators has its associativity from right to left?
A. 
B. 
C. 
D. 
15.
What is the value of the following expression?
float (22//3+3/3)
A. 
B. 
C. 
D. 
16.
Which of the following expressions is an example of type conversion?
A. 
B. 
C. 
D. 
17.
What will be the output of the following code snippet?
bool(‘False’)
bool()
A. 
B. 
C. 
D. 
18.
What will be the output of the following Python code?
class Truth:
pass
x=Truth()
bool(x)
A. 
B. 
C. 
D. 
19.
What will be the output of the following Python code?
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")
A. 
B. 
C. 
D. 
20.
What will be the output of the following Python code?
i = 1
while True:
if i%2 == 0:
break
print(i)
i += 2
A. 
B. 
C. 
D. 
21.
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
A. 
B. 
C. 
D. 
22.
What will be the output of the following Python code?
x = "abcdef"
while i in x:
print(i, end=" ")
A. 
B. 
C. 
D. 
23.
What will be the output of the following Python code?
x = "abcdef"
i = "a"
while i in x[:-1]:
print(i, end = " ")
A. 
B. 
C. 
D. 
24.
What will be the output of the following Python code?
d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.values():
print(d[x])
A. 
B. 
C. 
D. 
25.
What will be the output of the following Python code?
⦁ class father:
⦁ def __init__(self, param):
⦁ self.o1 = param
⦁
⦁ class child(father):
⦁ def __init__(self, param):
⦁ self.o2 = param
⦁
⦁ >>>obj = child(22)
⦁ >>>print "%d %d" % (obj.o1, obj.o2)
A. 
B. 
C. 
D.