XII Revision Tour MCQs
XII Revision Tour MCQs
REVISION TOUR
a) [‘ab’, ‘cd’].
b) [‘AB’, ‘CD’].
c) [None, None].
d) none of the mentioned
x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
a) [‘AB’, ‘CD’].
b) [‘ab’, ‘cd’, ‘AB’, ‘CD’].
c) [‘ab’, ‘cd’].
d) none of the mentioned
i+=1
a) 1 2
b) 1 2 3
c) error
d) none of the mentioned
i=1
while True:
if i%2 == 0:
break
print(i)
i += 2
a) 1
b) 1 2
True = False
while True:
print(True)
break
a) True
b) False
c) None
d) none of the mentioned
a) a
b) bc
c) bca
d) abc
a) a
>>> str1='hello'
>>> str2=','
>>> str3='world'
>>> str1[-1:]
a) olleh
b) hello
c) h
d) o
a) hello123
b) hello6
c) hello
d) Error
10. Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1] ?
a) Error
b) None
a) [2, 6, 4].
b) [1, 3, 2, 1, 3].
c) [1, 3, 2, 1, 3, 2] .
D) [1, 3, 2, 3, 2, 1].
a) print(t[3])
b) t[3] = 45
c) print(max(t))
d) print(len(t))
a) (1, 2)
b) (1, 2, 4)
c) (2, 4)
d) (2, 4, 3)
a) (1, 2)
b) (1, 2, 4)
c) (2, 4)
d) (2, 4, 3)
a) d = {}
b) d = {“john”:40, “peter”:45}
c) d = {40:”john”, 45:”peter”}
d) All of the mentioned
a) True
b) False
c) Error
d) None
a) d.size()
b) len(d)
c) size(d)
d) d.len()
a) Error
b) -5
c) 5
d) 5.0
chr(‘97’)
chr(97)
a) a
Error
b) ‘a’
a
c) Error
a
d) Error
25. Which of the following functions will not result in an error when no arguments
are passed to it?
a) min()
b) divmod()
c) all()
d) float()