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
Set
25
See Explanation !
1
If the else statement is used with a while loop, the else statement is executed when the condition becomes _____ .
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।
True
False
Infinite
NULL
Next Question
25
See Explanation !
2
What will be the output of the following Python code? print("abcdef".find("cd") == "cd" in "abcdef")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(" abcdef ".find(" cd ") == "abcdef" में "cd ")
True
False
Error
None of the mentioned
Previous Question
Next Question
25
See Explanation !
3
Which module in python can be used for working with network socket?
पायथन में किस मॉड्यूल का उपयोग नेटवर्क सॉकेट के साथ काम करने के लिए किया जा सकता है?
HTTP
urllib
socket
header
Previous Question
Next Question
25
See Explanation !
4
A loop block in python starts with a.
पायथन में एक लूप ब्लॉक एक... से शुरू होता है
; (semicolon)
,(Comma)
: (colan)
None of these
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following ? import math print(math.fact(5))
निम्नलिखित का आउटपुट क्या होगा? import math print(math.fact(5))
120
25
1,2,3,4,5
Error
Previous Question
Next Question
25
See Explanation !
6
A statement is used when a statement is required syntactically but you do not want any code to execute.
एक स्टेटमेंट का उपयोग तब किया जाता है जब किसी स्टेटमेंट को वाक्यात्मक रूप से आवश्यक होता है लेकिन आप नहीं चाहते कि कोई कोड निष्पादित हो।
break
pass
continue
none of these
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following Python code? print("xyyzxyzxzxyy".endswith("xyy"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print("xyyzxyzxzxyy ".endswith (" xyy "))
1
True
3
2
Previous Question
Next Question
25
See Explanation !
8
Python code can run on variety of plateforms, it means Python is a _____language.
पायथन कोड विभिन्न प्रकार के प्लेटफॉर्म पर चल सकता है, इसका मतलब है कि पायथन एक _____भाषा है।
Graphical
Cross-plateform
Plateform Dependent
All of these
Previous Question
Next Question
25
See Explanation !
9
What will be the output of following? Y=[2,5J,6] Y.sort()
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? Y=[2,5J,6] Y.sort()
[2,6,5J]
[5J,2,6]
Error
[6,5J,2]
Previous Question
Next Question
25
See Explanation !
10
Which type of elements are accepted by random.shuffle()?
किस प्रकार के एलिमेंट्स को random.shuffle () द्वारा एक्सेप्ट किया जाता है?
strings
lists
tuples
integers
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code snippet? print('Ab!2'.swapcase())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' Ab!2 '.swapcase ())
AB!@
ab12
aB!2
aB1@
Previous Question
Next Question
25
See Explanation !
12
Connectors used to connect flowchart symbols to each other are classified as
फ्लोचार्ट प्रतीकों को एक दूसरे से जोड़ने के लिए उपयोग किए जाने वाले कनेक्टरों को इस प्रकार वर्गीकृत किया जाता है
Arrow lines
Symbols
Annotation
Special symbols
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? min(max(False,-3,-4), 2,7)
2
False
-3
-4
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code? x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)
X: x.append (i.upper ()) print(x) में i के लिए निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = [' ab ', 'cd ']
[‘AB’, ‘CD’]
[‘ab’, ‘cd’, ‘AB’, ‘CD’]
[‘ab’, ‘cd’]
Infinite Loop
Previous Question
Next Question
25
See Explanation !
15
Python programming language allows to use one loop inside another loop known as ?
पायथन प्रोग्रामिंग भाषा एक लूप को दूसरे लूप के अंदर उपयोग करने की अनुमति देती है जिसे जाना जाता है?
switch
foreach
Nested Loop
None
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code snippet? numbers = {} letters = {} comb = {} numbers[1] = 56 numbers[3] = 7 letters[4] = 'B'
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? numbers = {} letters = {} comb = {} numbers[1] = 56 numbers[3] = 7 letters[4] = 'B' comb['Numbers']
Error, dictionary in a dictionary can’t exist
‘Numbers’: {1: 56, 3: 7}
{‘Numbers’: {1: 56}, ‘Letters’: {4: ‘B’}}
{‘Numbers’: {1: 56, 3: 7}, ‘Letters’: {4: ‘B’}}
Previous Question
Next Question
25
See Explanation !
17
In which year was the Python 3.0 version developed?
पायथन 3.0 संस्करण किस वर्ष विकसित किया गया था?
2008
2010
2000
2005
Previous Question
Next Question
25
See Explanation !
18
____ are the arguments passed to a function in correct positional order.
सही स्थिति क्रम में किसी फंक्शन को दिए गए आर्गुमेन्ट हैं।
Required arguments
Keyword arguments
Default arguments
Variable-length arguments
Previous Question
Next Question
25
See Explanation !
19
Which function is used to Writes the string(s) to the file and returns the number of characters written.
स्ट्रिंग(ओं) को फ़ाइल में लिखने के लिए किस फ़ंक्शन का उपयोग किया जाता है और लिखे गए वर्णों की संख्या बताता है।
writeline (s)
write(s)
read(s)
None
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python function if the random module has already been imported? import random print(random.randint(3.5,7))
यदि रैंडम मॉड्यूल पहले से ही आयात किया गया है, तो निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? import random print(random.randint(3.5,7))
Error
Any integer between 3.5 and 7, including 7
Any integer between 3.5 and 7, excluding 7
The integer closest to the mean of 3.5 and 7
Previous Question
Next Question
25
See Explanation !
21
What signifies the end of a statement block or suite in Python ?
पायथन में स्टेटमेंट ब्लॉक या सुइट के अंत का क्या मतलब है?
A comment
}
end
A line that is indented less than the previous line
Previous Question
Next Question
25
See Explanation !
22
The scope rule in Python are summarized as____.
पायथन में स्कोप नियम को ____ के रूप में संक्षेप में प्रस्तुत किया गया है।
ELGB ( enclosed, local,global, built-in).
LEGB (local, enclosed,global, built-in ).
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
23
Which of the following is NOT a valid Python token?
निम्नलिखित में से कौन एक वैध पायथन टोकन नहीं है?
Keywords
Identifiers
Operators
Statements
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following code? a=((0,2,3,4)[1:-2]) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? a=((0,2,3,4)[1:-2]) print(a)
(3,)
(2, )
(1,)
(0,)
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following code ? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
Welco
me to
Welcome to Python
e to
Previous Question