O Level Online Exam
Menu mobile
Home
MCQ Topic Wise
IT 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
IT TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PYTHON PROGRAMMING
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Previous Year Papers
Practical Exam Papers
Videos
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
What will be the value of x=(5*2-4*8)%7
x=(5*2-4*8)%7 का मान क्या होगा?
A.
10
10
B.
9
9
C.
7
7
D.
6
6
Question No# :
02
out of 50
Report Bug
Bookmark
What is true about a break statement?
ब्रेक स्टेटमेंट के बारे में क्या सच है?
A.
Break stops the execution of entire program
Break stops the execution of entire program
B.
Break halts the execution and forces the control out of the loop
Break halts the execution and forces the control out of the loop
C.
Break forces the control out of the loop and starts the execution of next iteration
Break forces the control out of the loop and starts the execution of next iteration
D.
Break halts the execution of the loop for certain time frame
Break halts the execution of the loop for certain time frame
Question No# :
03
out of 50
Report Bug
Bookmark
Which of the following is an invalid statement in python.
निम्नलिखित में से कौन सा पायथन मे इनवैलिड स्टेटमेन्ट है ।
A.
abc=2,00,000
abc=2,00,000
B.
a,b,c=200,300,400
a,b,c=200,300,400
C.
a_b_c= 2,00,000
a_b_c= 2,00,000
D.
abc=200 300 400
abc=200 300 400
Question No# :
04
out of 50
Report Bug
Bookmark
An empty/null statement in Python is
पायथन में एक खाली/शून्य कथन है
A.
go
go
B.
pass
pass
C.
over
over
D.
;
;
Question No# :
05
out of 50
Report Bug
Bookmark
Is it safe to directly use the == operator to determine whether objects of type float are equal ?
क्या यह निर्धारित करने के लिए सीधे == ऑपरेटर का उपयोग करना सुरक्षित है कि फ्लोट प्रकार की वस्तुएं बराबर हैं या नहीं?
A.
Yes
Yes
B.
No
No
C.
Yes, if the values are < 100
Yes, if the values are < 100
D.
Yes, if the values are > 100
Yes, if the values are > 100
Question No# :
06
out of 50
Report Bug
Bookmark
Which of the following has the highest precedence?
निम्नलिखित में से किसका वरीयता स्तर सबसे अधिक है?
A.
+
+
B.
*
*
C.
**
**
D.
//
//
Question No# :
07
out of 50
Report Bug
Bookmark
Which keyword skips current iteration?
कौन सा कीवर्ड वर्तमान पुनरावृति को छोड़ देता है?
A.
skip
skip
B.
continue
continue
C.
break
break
D.
pass
pass
Question No# :
08
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# :
09
out of 50
Report Bug
Bookmark
What will return by math.trunc() function in python
पायथन में Math.trunc() फ़ंक्शन द्वारा क्या लौटाया जाएगा
A.
The truncated decimal part of a number
The truncated decimal part of a number
B.
The rounded integer value of a number.
The rounded integer value of a number.
C.
The truncated integer value of a number.
The truncated integer value of a number.
D.
The floor (largest integer less than or equal to the number).
The floor (largest integer less than or equal to the number).
Question No# :
10
out of 50
Report Bug
Bookmark
Which of the following expressions is an example of type conversion?
निम्न में से कौन सा एक्सप्रेशन्स कन्वर्श़न प्रकार का एक उदाहरण है?
A.
4.0 + float(3)
4.0 + float(3)
B.
5.3 + 6.3
5.3 + 6.3
C.
5.0 + 3
5.0 + 3
D.
3 + 7
3 + 7
Question No# :
11
out of 50
Report Bug
Bookmark
Which of the following functions converts a string to a float in python ?
निम्नलिखित में से कौन सा फ़ंक्शन पायथन में एक स्ट्रिंग को फ्लोट में परिवर्तित करता है?
A.
int(x [,base])
int(x [,base])
B.
long(x [,base])
long(x [,base])
C.
float(x)
float(x)
D.
str(x)
str(x)
Question No# :
12
out of 50
Report Bug
Bookmark
Which keyword does nothing?
कौन सा कीवर्ड कुछ भी नहीं करता है?
A.
break
break
B.
continue
continue
C.
pass
pass
D.
assert
assert
Question No# :
13
out of 50
Report Bug
Bookmark
Which keyword is used to exit a loop prematurely in Python?
पायथन में लूप से समय से पहले एग्जिट होने के लिए किस कीवर्ड का यूज़ किया जाता है?
A.
exit
एग्जिट
B.
break
ब्रेक
C.
continue
कंटीन्यू
D.
stop
स्टॉप
Question No# :
14
out of 50
Report Bug
Bookmark
Which operator is also called as Comparative operator?
A.
Arithmetic
Arithmetic
B.
Relational
Relational
C.
Logical
Logical
D.
Assignment
Assignment
Question No# :
15
out of 50
Report Bug
Bookmark
Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किसकी एक्सप्रेशन में हाईएस्ट प्रेसिडेन्स है?
A.
Exponential
एक्सपोनेंशियल
B.
Addition
एडिशन
C.
Multiplication
मल्टीप्लिकेशन
D.
Parentheses
पैरेंथेसेस
Question No# :
16
out of 50
Report Bug
Bookmark
Which of the following is not a logical operator?
निम्नलिखित में से कौन एक लॉजिकल ऑपरेटर नहीं है?
A.
or
or
B.
equal
equal
C.
and
and
D.
not
not
Question No# :
17
out of 50
Report Bug
Bookmark
What will be the output of following expression : print(10/2+3*5)
निम्नलिखित कोड का आउटपुट क्या होगा? print(10/2+3*5)
A.
20.0
20.0
B.
20
20
C.
40.0
40.0
D.
40
40
Question No# :
18
out of 50
Report Bug
Bookmark
In Python, which of the following will create a block in a compound statement ?
पायथन में, निम्नलिखित में से कौन कंपाउंड स्टेटमेंट में ब्लॉक बनाएगा?
A.
colon
colon
B.
statements indented at a lower, same level
statements indented at a lower, same level
C.
indentation in any form
indentation in any form
D.
{ }
{ }
Question No# :
19
out of 50
Report Bug
Bookmark
Which bitwise operator represents XOR?
कौन सा बिटवाइज़ ऑपरेटर XOR को दर्शाता है?
A.
|
|
B.
&
&
C.
~
~
D.
^
^
Question No# :
20
out of 50
Report Bug
Bookmark
What will the following code output? print(10 * 2 + 5)
निम्नलिखित कोड आउटपुट क्या होगा? print(10 * 2 + 5)
A.
30
30
B.
25
25
C.
20
20
D.
50
50
Question No# :
21
out of 50
Report Bug
Bookmark
n the Python statement x =a + 5 - b : a + 5 - b is
पायथन कथन में x =a + 5 - b : a + 5 - b is
A.
Operands
Operands
B.
Expression
Expression
C.
operators
operators
D.
Equation
Equation
Question No# :
22
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# :
23
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# :
24
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# :
25
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# :
26
out of 50
Report Bug
Bookmark
What will be the result of the expression 10 or 0 ?
व्यंजक 10 या 0 का परिणाम क्या होगा?
A.
0
0
B.
1
1
C.
10
10
D.
1.0
1.0
Question No# :
27
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# :
28
out of 50
Report Bug
Bookmark
What is the answer to this expression, 22 % 3 is?
इस एक्सप्रेशन का उत्तर 22% 3 क्या है?
A.
7
7
B.
1
1
C.
0
0
D.
5
5
Question No# :
29
out of 50
Report Bug
Bookmark
____ is the output you get when '2'==2 is executed
____ वह आउटपुट है जो आपको तब मिलता है जब '2'==2 निष्पादित होता है-
A.
True
सही
B.
false
गलत
C.
ValueError occurs
ValueError होती है
D.
TypeError occurs
TypeError होता है
Question No# :
30
out of 50
Report Bug
Bookmark
What will happen if a for loop tries to iterate over an empty list?
यदि कोई लूप किसी एम्प्टी लिस्ट पर पुनरावृति करने का प्रयास करता है तो क्या होगा?
A.
It will raise an IndexError.
यह एक IndexError बढ़ाएगा।
B.
It will iterate once with a default value of None.
यह कोई नहीं के डिफ़ॉल्ट वैल्यू के साथ एक बार ईट्रेट होगा।
C.
It will not execute the loop body.
यह लूप बॉडी एक्सक्यूट नहीं करेगा.
D.
It will run indefinitely.
यह अनिश्चित काल तक रन करेगा
Question No# :
31
out of 50
Report Bug
Bookmark
The output of this expression, >>>6*1**3 is ____ .
इस एक्सप्रेशन >>>6*1**3 का आउटपुट ____ है।
A.
6
6
B.
18
18
C.
10
10
D.
None of these
इनमें से कोई नहीं
Question No# :
32
out of 50
Report Bug
Bookmark
In Python, a complex number is represented as:
पायथन में, एक काम्प्लेक्स संख्या को इस प्रकार दर्शाया जाता है:
A.
a+√b
a+√b
B.
a+√b j
a+√b j
C.
a+bj
a+bj
D.
a+√j
a+√j
Question No# :
33
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# :
34
out of 50
Report Bug
Bookmark
Which of the following statement(s) will terminate only the current pass of the loop and proceed with the next iteration of the loop?
निम्नलिखित में से कौन सा कथन केवल लूप के वर्तमान पास को समाप्त करेगा और लूप के अगले पुनरावृत्ति के साथ आगे बढ़ेगा?
A.
pass
pass
B.
break
break
C.
continue
continue
D.
goto
goto
Question No# :
35
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# :
36
out of 50
Report Bug
Bookmark
Which bitwise operator represents AND?
कौन सा बिटवाइज़ ऑपरेटर AND को दर्शाता है?
A.
~
~
B.
|
|
C.
&
&
D.
^
^
Question No# :
37
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# :
38
out of 50
Report Bug
Bookmark
Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?
A.
%
%
B.
/
/
C.
//
//
D.
||
||
Question No# :
39
out of 50
Report Bug
Bookmark
What is the purpose of an else block in loops?
लूप्स में else ब्लॉक का पर्पज़ क्या है?
A.
To execute if the loop terminates normally without a break.
यदि लूप बिना किसी ब्रेक के सामान्य रूप से टर्मिनेट हो जाता है तो एक्सक्यूट करने के लिए।
B.
To execute after every iteration..
प्रत्येक इट्रेशन के बाद एक्सक्यूट करने के लिए..
C.
To handle errors in the loop.
लूप में एरर को हैंडल करने के लिए.
D.
To terminate the loop.
लूप को टर्मिनेट करने के लिए.
Question No# :
40
out of 50
Report Bug
Bookmark
What will be the value of p when p= int(17/2+11.5)?
p का मान क्या होगा जब p= int(17/2+11.5)?
A.
20
20
B.
20.0
20.0
C.
28
28
D.
28.0
28.0
Question No# :
41
out of 50
Report Bug
Bookmark
Which one is not a looping structure available in python.
पायथन में कौन सी लूपिंग स्ट्रक्चर अवेलबल नहीं है?
A.
while loop
while loop
B.
for loop
for loop
C.
do while loop
do while loop
D.
all of these
इन सब
Question No# :
42
out of 50
Report Bug
Bookmark
Which keyword exits a loop?
कौन सा कीवर्ड लूप से बाहर निकलता है?
A.
exit
exit
B.
continue
continue
C.
break
break
D.
pass
pass
Question No# :
43
out of 50
Report Bug
Bookmark
What is the return value of trunc()?
trunc() फंक्शन क्या रिटर्न करेगा ?
A.
int
int
B.
bool
bool
C.
float
float
D.
None
None
Question No# :
44
out of 50
Report Bug
Bookmark
Which statement can be use to swap the values of an and b
a और b के मानों को स्वैप करने के लिए किस कथन का उपयोग किया जा सकता है?
A.
a=b,b=a
a=b,b=a
B.
a,b=b,a
a,b=b,a
C.
a=b;b=a
a=b;b=a
D.
a=b and b=a
a=b and b=a
Question No# :
45
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# :
46
out of 50
Report Bug
Bookmark
It is a combination of Operators, Operands and Constants
A.
Identifier
Identifier
B.
Expression
Expression
C.
Syntax
Syntax
D.
Task
Task
Question No# :
47
out of 50
Report Bug
Bookmark
What is the value of the expression 100 / 25 ?
व्यंजक 100/25 का मान क्या है?
A.
4
4
B.
4.0
4.0
C.
2.5
2.5
D.
none of these
none of these
Question No# :
48
out of 50
Report Bug
Bookmark
What will the following code output? print(4 & 5)
निम्नलिखित कोड आउटपुट क्या होगा? print(4 & 5)
A.
4
4
B.
5
5
C.
0
0
D.
1
1
Question No# :
49
out of 50
Report Bug
Bookmark
What will the value of a if a=~100
यदि a=~100 है तो a का मान क्या है?
A.
100
100
B.
-100
-100
C.
-101
-101
D.
101
101
Question No# :
50
out of 50
Report Bug
Bookmark
What will be the result of the expression: 15 and 10?
व्यंजक 15 और 10 का परिणाम क्या होगा?
A.
5
5
B.
1
1
C.
10
10
D.
0
0
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