O Level Exam : Student Portal
Email address
Password
Remember me
Forgot password?
Sign In
Google
Facebook
Don't have an account?
Register now
O Level Online Exam
Menu mobile
Home
MCQ Topic Wise
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Online Mock Test
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Old Papers
Practical Questions
Videos
Projects
MCQ : OPERATORS EXPRESSIONS AND PYTHON STATEMENTS For NIELIT O Level Exam
OPERATORS EXPRESSIONS AND PYTHON STATEMENTS For NIELIT O Level Exam
00:00:00
English
Hindi
Question No# :
01
out of 50
Report Bug
Bookmark
In Python, a variable must be declared before it is assigned a value.
पायथन में, एक चर को एक मान निर्दिष्ट करने से पहले घोषित किया जाना चाहिए।
A.
True
True
B.
False
False
C.
Only in Functions
Only in Functions
D.
Only in modules
Only in modules
Question No# :
02
out of 50
Report Bug
Bookmark
Which of the following statements is used to test multiple conditions in Python?
निम्नलिखित में से किस स्टेट्मेंट का यूज़ पायथन में मल्टिपल कंडीशन का टेस्ट करने के लिए किया जाता है?
A.
if
if
B.
if-else
if-else
C.
elif
elif
D.
if-else-if
if-else-if
Question No# :
03
out of 50
Report Bug
Bookmark
Which one of the following has the same precedence level?
निम्नलिखित में से किसका समान प्रेसडेंस लेवल है?
A.
Addition and Subtraction
एडिशन और सब्ट्रैक्शन
B.
Multiplication, Division and Addition
मल्टीप्लिकेशन,डिवीज़न और एडिशन
C.
Multiplication, Division, Addition and Subtraction
मल्टीप्लिकेशन,डिवीज़न एडिशन और सब्ट्रैक्शन
D.
Addition and Multiplication
एडिशन और मल्टीप्लिकेशन
Question No# :
04
out of 50
Report Bug
Bookmark
_____ is not used as loop in python
पायथन में लूप के रूप में _____ का उपयोग नहीं किया जाता है
A.
for
for
B.
while
while
C.
do while
do while
D.
None of the above
None of the above
Question No# :
05
out of 50
Report Bug
Bookmark
Leading white space at the beginning of each statement, which is used to determine the group of statement.
A.
Testing
Testing
B.
Indentation
Indentation
C.
Debugging
Debugging
D.
None of the above
None of the above
Question No# :
06
out of 50
Report Bug
Bookmark
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
A.
+
+
B.
-
-
C.
*
*
D.
( )
( )
Question No# :
07
out of 50
Report Bug
Bookmark
What is the maximum possible length of an identifier?
पहचानकर्ता की अधिकतम संभव लंबाई क्या है?
A.
16
16
B.
32
32
C.
64
64
D.
None of These
None of These
Question No# :
08
out of 50
Report Bug
Bookmark
What happens when multiple if statements are used instead of if-elif?
क्या होता है जब if-elif के स्थान पर मल्टीपल if स्टेटमेंट्स का यूज़ किया जाता है?
A.
Only the first condition is checked.
केवल फर्स्ट कंडीशन को चेक किया जाता है.
B.
All conditions are checked, even if one is True.
सभी कंडीशंस को चेक किया जाता है,यदि कोई सत्य हो।
C.
It behaves the same as if-elif.
यह if-elif जैसा ही बिहेव करता है।
D.
It raises an error.
यह एक एरर उत्पन्न करता है.
Question No# :
09
out of 50
Report Bug
Bookmark
To increase the value of x five times using an augmented assignment operator, the correct expression will be
संवर्धित असाइनमेंट ऑपरेटर का उपयोग करके x के मान को पांच गुना बढ़ाने के लिए, सही अभिव्यक्ति होगी
A.
x += 5
x += 5
B.
x *= 5
x *= 5
C.
x = x ** 5
x = x ** 5
D.
none of these
none of these
Question No# :
10
out of 50
Report Bug
Bookmark
Which of the following function returns the ASCII/Unicode value character?
निम्नलिखित में कौन सा फक्शन ASCII/Unicode वैल्यू कैरेक्टर रिटर्न करता है?
A.
asc()
asc()
B.
ord()
ord()
C.
asci()
asci()
D.
ascii()
ascii()
Question No# :
11
out of 50
Report Bug
Bookmark
What is 'pass' in python?
पायथन में 'pass' क्या है?
A.
No Operation
No Operation
B.
No Action
No Action
C.
Null Statement
Null Statement
D.
Placeholder
Placeholder
Question No# :
12
out of 50
Report Bug
Bookmark
what will be the output of :print( 22//3+3/3)
निम्नलिखित कोड का आउटपुट क्या होगा? print( 22//3+3/3)
A.
4
4
B.
4.0
4.0
C.
8
8
D.
8.0
8.0
Question No# :
13
out of 50
Report Bug
Bookmark
Which of the following is not an immutable type in Python ?
निम्नलिखित में से कौन पायथन में एक अपरिवर्तनीय प्रकार नहीं है?
A.
String
String
B.
Tuples
Tuples
C.
Set
Set
D.
None of these
None of these
Question No# :
14
out of 50
Report Bug
Bookmark
What is the output of : print(2*3**3*4)
इसका आउटपुट क्या है: print(2*3**3*4)
A.
211
211
B.
216
216
C.
1024
1024
D.
512
512
Question No# :
15
out of 50
Report Bug
Bookmark
what will the output of : 34//5+34%5 in python
पायथन में: 34//5+34%5 का आउटपुट क्या होगा
A.
15
15
B.
150
150
C.
200
200
D.
10
10
Question No# :
16
out of 50
Report Bug
Bookmark
What does ~~~~~~5 evaluate to?
~~~~~~5 का मूल्यांकन किससे होता है?
A.
+5
+5
B.
-11
-11
C.
+11
+11
D.
-5
-5
Question No# :
17
out of 50
Report Bug
Bookmark
which one is a mathematical function?
कौन सा एक गणितीय फंक्शन है?
A.
sqrt()
sqrt()
B.
add()
add()
C.
rhombus()
rhombus()
D.
home()
home()
Question No# :
18
out of 50
Report Bug
Bookmark
What will be the output : 24//6%3,24//4//2
इसका आउटपुट क्या होगा: 24//6%3,24//4//2
A.
(1,3)
(1,3)
B.
(2,5)
(2,5)
C.
(2,1)
(2,1)
D.
(4,8)
(4,8)
Question No# :
19
out of 50
Report Bug
Bookmark
Which of the following expressions results in an error?
निम्नलिखित में से कौन सा एक्सप्रेशन में एक एरर है?
A.
float(‘10’)
float(‘10’)
B.
int(‘10’)
int(‘10’)
C.
float(’10.8’)
float(’10.8’)
D.
int(’10.8’)
int(’10.8’)
Question No# :
20
out of 50
Report Bug
Bookmark
Which of the following is not Logical operator?
A.
and
and
B.
or
or
C.
not
not
D.
Assignment
Assignment
Question No# :
21
out of 50
Report Bug
Bookmark
which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :
A.
#
#
B.
=
=
C.
/
/
D.
&
&
Question No# :
22
out of 50
Report Bug
Bookmark
Which symbol is used for bitwise XOR operator
बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?
A.
|
|
B.
&
&
C.
^
^
D.
!
!
Question No# :
23
out of 50
Report Bug
Bookmark
Provide the output for the expression: list = [1, 2] + [3, 4]
list= [1, 2] + [3, 4] का आउटपुट क्या होगा
A.
[4,6]
[4,6]
B.
[1, 2, 3, 4]
[1, 2, 3, 4]
C.
10
10
D.
Error in Code
Error in Code
Question No# :
24
out of 50
Report Bug
Bookmark
what will the output of : print(5&3)
इसका आउटपुट क्या होगा: print(5&3)
A.
1
1
B.
8
8
C.
True
True
D.
False
False
Question No# :
25
out of 50
Report Bug
Bookmark
Which of the following will give error ?
निम्नलिखित में से कौन त्रुटि देगा?
A.
a=b=c=1
a=b=c=1
B.
a,b,c=1
a,b,c=1
C.
a, b, c = 1, "python", 1.5
a, b, c = 1, "python", 1.5
D.
None of the above
उपर्युक्त में से कोई नहीं
Question No# :
26
out of 50
Report Bug
Bookmark
How can we store 2 in a, 3 in b and 4 in c in one line statement.
हम एक लाइन स्टेटमेंट में 2 को a में, 3 को b में और 4 को c में कैसे स्टोर कर सकते हैं।
A.
a=2,b=3,c=4
a=2,b=3,c=4
B.
a,b,c=2,3,4
a,b,c=2,3,4
C.
a=2;b=3;c=4
a=2;b=3;c=4
D.
Both b and c
बी और सी दोनों
Question No# :
27
out of 50
Report Bug
Bookmark
Which of the following is true about the break statement in loops?
लूप्स में ब्रेक स्टेटमेंट के बारे में निम्नलिखित में से कौन सा सत्य है?
A.
It skips the current iteration and goes to the next iteration.
यह प्रेजेंट इट्रेशन को स्किप कर देता है और नेक्स्ट इट्रेशन पर चला जाता है।
B.
It terminates the loop entirely
यह लूप को पूरी तरह से टर्मिनेट कर देता है।
C.
It does nothing.
यह कुछ नहीं करता.
D.
It restarts the loop.
यह लूप को रीस्टार्ट करता है।
Question No# :
28
out of 50
Report Bug
Bookmark
In a Python program, a control structure:
एक पायथन कार्यक्रम में, एक नियंत्रण संरचना:
A.
directs the order of execution of the statements in the program
directs the order of execution of the statements in the program
B.
dictates what happens before the program starts and after it terminates
dictates what happens before the program starts and after it terminates
C.
defines program-specific data structures
defines program-specific data structures
D.
manages the input and output of control characters
manages the input and output of control characters
Question No# :
29
out of 50
Report Bug
Bookmark
Which Python built in function returns the unique number assigned to an object?
कौन सा पायथन बिल्ट-इन फ़ंक्शन किसी ऑब्जेक्ट को निर्दिष्ट अद्वितीय संख्या देता है?
A.
identity( )
identity( )
B.
id( )
id( )
C.
refnum( )
refnum( )
D.
ref( )
ref( )
Question No# :
30
out of 50
Report Bug
Bookmark
what will the output of x=5+8*((3*5)-9)/10
x=5+8*((3*5)-9)/10 का आउटपुट क्या होगा
A.
12.5
12.5
B.
8
8
C.
9.8
9.8
D.
9
9
Question No# :
31
out of 50
Report Bug
Bookmark
In Python, a variable is assigned a value of one type, and then later assigned a value of a different type. This will yield
पायथन में, एक चर को एक प्रकार का मान दिया जाता है, और फिर बाद में एक अलग प्रकार का मान दिया जाता है। यह उपज देगा
A.
Warning
Warning
B.
Error
Error
C.
Error
Error
D.
No Error
No Error
Question No# :
32
out of 50
Report Bug
Bookmark
Which of the following operators has the lowest precedence ?
निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे कम है?
A.
not
not
B.
%
%
C.
and
and
D.
+
+
Question No# :
33
out of 50
Report Bug
Bookmark
___ in Python is a counter-controlled loop.
पायथन में काउन्टर कन्ट्रोल्ड लूप है ।
A.
for
for
B.
while
while
C.
Both A and B
A तथा B दोनों
D.
None of the above
उपर्युक्त में से कोई नहीं
Question No# :
34
out of 50
Report Bug
Bookmark
Which of the following data types is not supported in python
A.
Numbers
Numbers
B.
String
String
C.
List
List
D.
Slice
Slice
Question No# :
35
out of 50
Report Bug
Bookmark
What will be the output of the following :print( (5*2-4*8)%7)
निम्नलिखित कोड का आउटपुट क्या होगा? : print( (5*2-4*8)%7)
A.
7
7
B.
8
8
C.
10
10
D.
6
6
Question No# :
36
out of 50
Report Bug
Bookmark
Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?
A.
%
%
B.
/
/
C.
//
//
D.
||
||
Question No# :
37
out of 50
Report Bug
Bookmark
Which of the following refers to mathematical function?
निम्नलिखित में से कौन गणितीय फंक्शन को संदर्भित करता है
A.
sqrt
sqrt
B.
rhombus
rhombus
C.
add
add
D.
Sub
Sub
Question No# :
38
out of 50
Report Bug
Bookmark
Evaluate the expression A%B//A if the value of A= 16 and b= 15
एक्सप्रेशन A%B//A का मूल्यांकन करें यदि A=16 और b=15 का मान है
A.
0.0
0.0
B.
0
0
C.
1.0
1.0
D.
1
1
Question No# :
39
out of 50
Report Bug
Bookmark
range(3) in Python is equivalent to:
पायथन में रेंज (3) के बराबर है:
A.
range(0,3,1)
range(0,3,1)
B.
range(1,4,1)
range(1,4,1)
C.
range(1,3)
range(1,3)
D.
range(1,3,0)
range(1,3,0)
Question No# :
40
out of 50
Report Bug
Bookmark
What happens if the condition in a while loop is initially False?
यदि थोड़ी देर के लूप में स्थिति शुरू में गलत हो तो क्या होगा?
A.
The loop runs indefinitely.
लूप अनिश्चित काल तक रन करता है.
B.
The loop executes once before terminating.
लूप टर्मिनेट होने से पहले एक बार एक्सक्युट्स होता है।
C.
The loop does not execute.
लूप एक्सक्यूट नहीं होता
D.
It raises an error
यह एक एरर उत्पन्न करता है
Question No# :
41
out of 50
Report Bug
Bookmark
Which of the following types of loops are not supported in Python?
निम्नलिखित में से किस प्रकार के लूप पायथन में सपोर्ट नहीं करता हैं?
A.
for
for
B.
While
While
C.
do-while
do-while
D.
None of these
इनमें से कोई नहीं
Question No# :
42
out of 50
Report Bug
Bookmark
The contents inside the "for loop" are separated by?
लूप के अंदर की सामग्री को _____ द्वारा अलग किया जाती है?
A.
colon
कोलन
B.
comma
कॉमा
C.
semicolon
सेमीकोलन
D.
hyphen
हायफ़न
Question No# :
43
out of 50
Report Bug
Bookmark
Which of the following statement(s) will terminate the whole loop and proceed to the statement following the loop ?
निम्नलिखित में से कौन सा कथन पूरे लूप को समाप्त कर देगा और लूप के बाद वाले कथन पर आगे बढ़ेगा?
A.
pass
pass
B.
break
break
C.
continue
continue
D.
goto
goto
Question No# :
44
out of 50
Report Bug
Bookmark
_____ function convert an integer to octal string in python.
पायथन में ______ फंक्शन एक इंटीजर को ऑक्टल स्ट्रिंग में परिवर्तित करता है।
A.
unichr (x)
unichr (x)
B.
oct (x)
oct (x)
C.
chr(x)
chr(x)
D.
None of the these
इनमें से कोई नहीं
Question No# :
45
out of 50
Report Bug
Bookmark
What will the following code output? print(1==1.0)
निम्नलिखित कोड आउटपुट क्या होगा? print(1==1.0)
A.
True
True
B.
False
False
C.
1
1
D.
Error
Error
Question No# :
46
out of 50
Report Bug
Bookmark
How many times will loop run? for a in "56247839"
लूप कितनी बार चलेगा? for a in "56247839"
A.
11
11
B.
8
8
C.
1
1
D.
0
0
Question No# :
47
out of 50
Report Bug
Bookmark
In the Python statement x = a + 5 - b : a and b are
पायथन कथन में x = a + 5 - b : a और b हैं
A.
Operands
Operands
B.
Expression
Expression
C.
operators
operators
D.
Equation
Equation
Question No# :
48
out of 50
Report Bug
Bookmark
Function range(0, 5, 2) will yield on iterable sequence like
फ़ंक्शन रेंज (0, 5, 2) चलने योग्य अनुक्रम पर उत्पन्न होगी जैसे
A.
[0, 2, 4]
[0, 2, 4]
B.
[1, 3, 5]
[1, 3, 5]
C.
[0, 1, 2, 5]
[0, 1, 2, 5]
D.
[0, 5, 2]
[0, 5, 2]
Question No# :
49
out of 50
Report Bug
Bookmark
What will be the result of the expression print(5 and 10) ?
print(5 and 10) का परिणाम क्या होगा?
A.
5
5
B.
1
1
C.
10
10
D.
0
0
Question No# :
50
out of 50
Report Bug
Bookmark
What is the output of the code print (9//2)
कोड प्रिंट का आउटपुट क्या है (9//2)
A.
4.5
4.5
B.
4.0
4.0
C.
4
4
D.
Error
Error
Latest Current Affairs 2026
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Online MBA 2 years
Online MCA
Online BCA
Best Website and Software Company in Allahabad