NIELIT O Level M3-R5 Model Paper
121.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = ‘abcd’
for i in x:
print(i)
x.upper()
A) a B C D
B) a b c d ✔️
C) A B C D
D) error
122.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = ‘abcd’
for i in x:
print(i.upper())
A) a b c d
B) A B C D ✔️
C) a B C D
D) error
123.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(x):
print(i)
A) a b c d
B) 0 1 2 3
C) error ✔️
D) None of the mentioned
124.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(len(x)):
print(i)
A) a b c d
B) 0 1 2 3 ✔️
C) error
D) 1 2 3 4
125.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(len(x)):
print(i.upper())
A) a b c d
B) 0 1 2 3
C) error ✔️
D) 1 2 3 4
126.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(len(x)):
i.upper()
print (x)
A) a b c d
B) 0 1 2 3
C) error ✔️
D) None of the mentioned
127.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(len(x)):
x[i].upper()
print (x)
A) abcd ✔️
B) ABCD
C) error
D) None of the mentioned
128.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(len(x)):
i[x].upper()
print (x)
A) abcd
B) ABCD
C) error ✔️
D) None of the mentioned
129.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(len(x)):
x = ‘a’
print(x)
A) a
B) abcd abcd abcd
C) a a a a ✔️
D) None of the mentioned
130.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
x = ‘abcd’
for i in range(len(x)):
print(x)
x = ‘a’
A) a
B) abcd abcd abcd abcd
C) a a a a
D) None of the mentioned ✔️
131.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = 123
for i in x:
print(i)
A) 1 2 3
B) 123
C) error ✔️
D) None of the mentioned
132.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
d = {0: ‘a’, 1: ‘b’, 2: ‘c’}
for i in d:
print(i)
A) 0 1 2 ✔️
B) a b c
C) 0 a 1 b 2 c
D) none of the mentioned
133.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
d = {0: ‘a’, 1: ‘b’, 2: ‘c’}
for x, y in d:
print(x, y)
A) 0 1 2
B) a b c
C) 0 a 1 b 2 c
D) None of the mentioned ✔️
134.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
d = {0: ‘a’, 1: ‘b’, 2: ‘c’}
for x, y in d.items():
print(x, y)
A) 0 1 2
B) a b c
C) 0 a 1 b 2 c ✔️
D) None of the mentioned
135.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
d = {0: ‘a’, 1: ‘b’, 2: ‘c’}
for x in d.keys():
print(d[x])
A) 0 1 2
B) a b c ✔️
C) 0 a 1 b 2 c
D) None of the mentioned
136.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
i = 5
while True:
if i%0O9 == 0:
break
print(i)
i += 1
A) 5 6 7 8
B) 5 6 7 8 9
C) 5 6 7 8 9 10 11 12 13 14 15 …
D) error ✔️
137.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
i = 1
while True:
if i%2 == 0:
break
print(i)
i += 2
A) 1
B) 1 2
C) 1 2 3 4 5 6 …
D) 1 3 5 7 9 11 … ✔️
138.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
A) 2 4 6 8 10 …
B) 2 4 ✔️
C) 2 3
D) error
139.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
i = 1
while False:
if i%2 == 0:
break
print(i)
i += 2
A) 1
B) 1 3 5 7 …
C) 1 2 3 4 …
D) None of the mentioned ✔️
140.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
True = False
while True:
print(True)
break
A) True
B) False
C) None
D) None of the mentioned ✔️
141.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
A) 0 1 2 0
B) 0 1 2 ✔️
C) error
D) None of the mentioned
142.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
while i in x:
print(i, end=” “)
A) a b c d e f
B) abcdef
C) i i i i i i …
D) error ✔️
143.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
i = “i”
while i in x:
print(i, end=” “)
A) no output ✔️
B) i i i i i i …
C) a b c d e f
D) abcdef
144.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
i = “a”
while i in x:
print(i, end = ” “)
A) no output
B) i i i i i i …
C) a a a a a a … ✔️
D) a b c d e f
145.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
i = “a”
while i in x:
print(‘i’, end = ” “)
A) no output
B) i i i i i i … ✔️
C) a a a a a a …
D) a b c d e f
146.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
i = “a”
while i in x:
x = x[:-1]
print(i, end = ” “)
A) i i i i i i
B) a a a a a a ✔️
C) a a a a a
D) None of the mentioned
147.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
i = “a”
while i in x[:-1]:
print(i, end = ” “)
A) a a a a a
B) a a a a a a
C) a a a a a a … ✔️
D) a
148.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
i = “a”
while i in x:
x = x[1:]
print(i, end = ” “)
A) a a a a a a
B) a ✔️
C) no output
D) error
149.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = “abcdef”
i = “a”
while i in x[1:]:
print(i, end = ” “)
A) a a a a a a
B) a
C) no output ✔️
D) error
150.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
A) 0 1 2 3 0
B) 0 1 2 0 ✔️
C) 0 1 2
Relate Link
- M3-R-5 Python Programming MCQ-1
- M3-R-5 Python Programming MCQ-2
- M3-R-5 Python Programming MCQ-3
- M3-R-5 Python Programming MCQ-4
- M3-R-5 Python Programming MCQ-5
- M3-R-5 Python Programming MCQ-6
- M3-R-5 Python Programming MCQ-7
- M3-R-5 Python Programming MCQ-8
- M3-R-5 Python Programming MCQ-9
- M3-R-5 Python Programming MCQ-10
- M3-R-5 Python Programming MCQ-11
- M3-R-5 Python Programming MCQ-12
- M3-R-5 Python Programming MCQ-13
- M3-R-5 Python Programming MCQ-14
- M3-R-5 Python Programming MCQ-15
- M3-R-5 Python Programming MCQ-16
- M3-R-5 Python Programming MCQ-17
- M3-R-5 Python Programming MCQ-18
- M3-R-5 Python Programming MCQ-19
- About me