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
Python Programming
Set 8
25
See Explanation !
1
What will be the output of the following Python code snippet? x = 2 for i in range(x): x += 1 print (x)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? x = 2 for i in range(x): x += 1 print (x)
0 1 2 3 4 …
3 4
0
error
Next Question
25
See Explanation !
2
What will be the output of the following Python code? for i in range(5): if i == 5: break else: print(i) else: print("Here")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
0 1 2 3 4 Here
0 1 2 3 4 5 Here
0 1 2 3 4
1 2 3 4 5
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python statement? print(chr(ord('A')+32))
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 16 HOURS 53 MINUTES 09 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
A
B
a
Error
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python statement? print(chr(ord('b')+1))
निम्नलिखित पायथन कथन का आउटपुट क्या होगा? print(chr(ord('b')+1))
a
b
c
A
Previous Question
Next Question
25
See Explanation !
5
Which operator is also called as Comparative operator?
किस ऑपरेटर को तुलनात्मक ऑपरेटर भी कहा जाता है?
Arithmetic
Relational
Logical
Assignment
Previous Question
Next Question
25
See Explanation !
6
Which of the following is not Logical operator?
निम्नलिखित में से कौन सा लॉजिकल ऑपरेटर नहीं है?
and
or
not
Assignment
Previous Question
Next Question
25
See Explanation !
7
Which operator is also called as Conditional operator?
किस ऑपरेटर को कंडीशनल ऑपरेटर भी कहा जाता है?
Ternary
Relational
Logical
Assignment
Previous Question
Next Question
25
See Explanation !
8
elif can be considered to be abbreviation of
elif किसका संक्षिप्त रूप माना जा सकता है
nested if
if..else
else if
if..elif
Previous Question
Next Question
25
See Explanation !
9
What plays a vital role in Python programming?
पायथन प्रोग्रामिंग में क्या महत्वपूर्ण भूमिका निभाता है?
Statements
Control
Structure
Indentation
Previous Question
Next Question
25
See Explanation !
10
Which statement is generally used as a placeholder?
कौन सा कथन सामान्यतः प्लेसहोल्डर के रूप में प्रयोग किया जाता है?
continue
break
pass
goto
Previous Question
Next Question
25
See Explanation !
11
The condition in the if statement should be in the form of
if स्टेटमेंट में शर्त इस प्रकार होनी चाहिए
Arithmetic or Relational expression
Arithmetic or Logical expression
Relational or Logical expression
Arithmetic
Previous Question
Next Question
25
See Explanation !
12
Which is the most comfortable loop?
सबसे सरल लूप कौन सा है?
do..while
while
for
if..elif
Previous Question
Next Question
25
See Explanation !
13
Which amongst this is not a jump statement ?
इनमें से कौन सा कथन जंप कथन नहीं है?
for
goto
continue
break
Previous Question
Next Question
25
See Explanation !
14
Leading white space at the beginning of each statement, which is used to determine the group of statement.
प्रत्येक कथन के आरंभ में शीर्ष सफेद स्थान, जिसका उपयोग कथनों के समूह को निर्धारित करने के लिए किया जाता है।
Testing
Indentation
Debugging
None of the above
Previous Question
Next Question
25
See Explanation !
15
It is a combination of Operators, Operands and Constants
यह ऑपरेटर्स, ऑपरेंड्स और कांस्टेंट्स का संयोजन है
Identifier
Expression
Syntax
Task
Previous Question
Next Question
25
See Explanation !
16
Python operator always yields the result of
पायथन ऑपरेटर हमेशा का परिणाम देता है
integer
floating point
complex
all of these
Previous Question
Next Question
25
See Explanation !
17
Which Python built in function returns the unique number assigned to an object?
कौन सा पायथन बिल्ट-इन फ़ंक्शन किसी ऑब्जेक्ट को निर्दिष्ट अद्वितीय संख्या देता है?
identity( )
id( )
refnum( )
ref( )
Previous Question
Next Question
25
See Explanation !
18
The operator used to check if both the operands reference the same object memory, is the .......... operator.
ऑपरेटर यह जांचने के लिए प्रयोग किया जाता है कि क्या दोनों ऑपरेंड एक ही ऑब्जेक्ट मेमोरी को संदर्भित करते हैं, ……… ऑपरेटर है।
in
is
id
==
Previous Question
Next Question
25
See Explanation !
19
For two objects x and y, the expression x is y will yield True, if and only if
दो वस्तुओं x और y के लिए, व्यंजक x, y है, सत्य प्राप्त करेगा, यदि और केवल यदि
id(x) == id(y)
len(x) == len(y)
x == y
all of these
Previous Question
Next Question
25
See Explanation !
20
Which of the following is not an immutable type in Python ?
निम्नलिखित में से कौन पायथन में एक अपरिवर्तनीय प्रकार नहीं है?
String
Tuples
Set
None of these
Previous Question
Next Question
25
See Explanation !
21
What is the value of the expression 100 / 25 ?
व्यंजक 100/25 का मान क्या है?
4
4.0
2.5
none of these
Previous Question
Next Question
25
See Explanation !
22
What is the value of the expression 100 // 25 ?
व्यंजक 100//25 का मान क्या है?
4
4.0
2.5
None of These
Previous Question
Next Question
25
See Explanation !
23
In Python, a variable must be declared before it is assigned a value.
पायथन में, एक चर को एक मान निर्दिष्ट करने से पहले घोषित किया जाना चाहिए।
True
False
Only in Functions
Only in modules
Previous Question
Next Question
25
See Explanation !
24
In Python, a variable is assigned a value of one type, and then later assigned a value of a different type. This will yield
पायथन में, एक चर को एक प्रकार का मान सौंपा जाता है, और फिर बाद में एक अलग प्रकार का मान सौंपा जाता है। इससे
Warning
Not available
Error
No Error
Previous Question
Next Question
25
See Explanation !
25
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type. This concept is known as
पायथन में, एक चर को एक प्रकार का मान असाइन किया जा सकता है, और फिर बाद में एक अलग प्रकार का मान असाइन किया जा सकता है। इस अवधारणा को........... के रूप में जाना जाता है
mutability
static typing
dynamic typing
immutability
Previous Question