Syllabus
O Level
M1 R5: Information Technology Tools and Network Basics
Introduction to Computers
Office Automation Tools
Internet and Web Technologies
Networking Fundamentals
M2 R5: Web Designing and Publishing
HTML
CSS
Javascript
Web Hosting And Publishing
M3 R5: Programming and Problem Solving through Python
Introduction to Programming
Python Programming
Data Structures in Python
File Processing in Python
M4 R5: Internet of Things (IoT) and Its Applications
Introduction to IoT
IoT Architecture
IoT Applications
IoT Security and Challenges | Soft Skills
Courses
Under Graduate Courses
BA
BCA
B.COM
Post Graduate Courses
MCA
MBA
M.COM
MA
M.SC.(MATHS)
MSW
Institutional Courses
DCA
ADCA
DFA
DOAP
TALLY PRIME
JAVA
PYTHON
CCA
C Languages
Job Oriented Courses
Digital Marketing
Full Stack Development
Data Science
Cybersecurity and Ethical Hacking
Blockchain Development
Cloud Computing
Artificial Intelligence (AI) and Machine Learning
Government Courses
CCC
O LEVEL
A LEVEL
Mock Test
M1 R5: Information Technology Tools and Network Basics
M2 R5: Web Designing and Publishing
M3 R5: Programming and Problem Solving through Python
M4 R5: Internet of Things (IoT) and Its Applications
Old Papers
2025
New!
2024
New!
2023
New!
2022
New!
2021
New!
2020
New!
2019
New!
2018
New!
2017
New!
2016
New!
2015
New!
2014
New!
2013
New!
2012
New!
2011
New!
Assignments
HTML
New!
CSS
New!
Javascript
New!
Python
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
Data Structures in Python
Set 1
25
See Explanation !
1
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = [' ab ', 'cd ']
i के लिए x:i.upper () print(x) में
[‘ab’, ‘cd’]
[‘AB’, ‘CD’]
[None, None]
none of the mentioned
Next Question
25
See Explanation !
2
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: x = x[:-1] print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x: x = x [:-1] print(i, end = "")
i i i i i i
a a a a a a
a a a a a
none of the mentioned
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x[:-1]: print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x में [:-1]: print(i, end = "")
a a a a a
a a a a a a
a a a a a a … infinite Time
a
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: x = x[1:] print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x: x = x[1:] print(i, end = "")
a a a a a a
a
no output
error
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code? x = 'abcd' for i in x: print(i) x.upper()
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = x में i के लिए 'abcd ': print(i) x.upper ()
a B C D
a b c d
A B C D
error
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): x[i].upper() print (x)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? x = i के लिए 'abcd' in range(len(x)): x[i ].upper () print (x)
abcd
ABCD
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following Python code? d = {0: 'a', 1: 'b', 2: 'c'} for i in d: print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0 :' a ', 1 :' b ', 2 :' c '} for i in d: print(i)
0 1 2
a b c
0 a 1 b 2 c
none of the mentioned
Previous Question
Next Question
25
See Explanation !
8
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])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0 :' a ', 1 :' b ', 2 :' c '} d.keys () में x के लिए: print(d[x])
0 1 2
a b c
0 a 1 b 2 c
none of the mentioned
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code? d = {0: 'a', 1: 'b', 2: 'c'} for x in d.values(): print(x)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0 :' a ', 1 :' b ', 2 :' c '} d.values () में x के लिए: print(x)
0 1 2
a b c
0 a 1 b 2 c
none of the mentioned
Previous Question
Next Question
25
See Explanation !
10
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])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0 :' a ', 1 :' b ', 2 :' c '} d.values () में x के लिए: print(d[x])
0 1 2
a b c
0 a 1 b 2 c
none of the mentioned
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code? d = {0, 1, 2} for x in d.values(): print(x)
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 03 MINUTES 33 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
0 1 2
None None None
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? d = {0, 1, 2} for x in d: print(x)
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 02 MINUTES 50 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
0 1 2
{0, 1, 2} {0, 1, 2} {0, 1, 2}
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? d = {0, 1, 2} for x in d: print(d.add(x))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0, 1, 2} for x in d: print(d.add(x))
0 1 2
0 1 2 0 1 2 0 1 2 …
None None None
None of the mentioned
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? for i in [1, 2, 3, 4][::-1]: print (i)
1 2 3 4
4 3 2 1
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code? string = "my name is x" for i in string: print (i, end=", ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? string = "my name is x" for i in string: print (i, end=", ")
m, y, , n, a, m, e, , i, s, , x,
m, y, , n, a, m, e, , i, s, , x
my, name, is, x,
error
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code? string = "my name is x" for i in string.split(): print (i, end=", ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? string = "my name is x" for i in string.split(): print (i, end=", ")
m, y, , n, a, m, e, , i, s, , x,
m, y, , n, a, m, e, , i, s, , x
my, name, is, x,
error
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code snippet? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
0 1 2 3
0 1 2 2
3 3 3 3
error
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code snippet? a = [0, 1, 2, 3] for a[0] in a: print(a[0])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a = [0, 1, 2, 3] for a[0] in a: print(a[0])
0 1 2 3
0 1 2 2
3 3 3 3
error
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code? str1="helloworld" print(str1[::-1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? str1="helloworld" print(str1[::-1])
dlrowolleh
hello
world
helloworld
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code? example = "snow world" example[3] = 's' print (example)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "snow world" example[3] = 's' print (example)
snow
snow world
Error
snos world
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? print(max("what are you"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(max("what are you"))
error
u
t
y
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code? example = "helle" print(example.find("e"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "helle" print(example.find("e"))
Error
-1
1
0
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? example = "helle" print(example.rfind("e"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "helle" print(example.rfind("e"))
-1
4
3
1
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? print("abc DEF".capitalize())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print("abc DEF".capitalize())
abc def
ABC DEF
Abc def
Abc Def
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy', 1))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print("xyyzxyzxzxyy".count('yy', 1))
2
0
1
none of the mentioned
Previous Question