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
Which of the following is the correct syntax for a conditional statement in Python?
पायथन में कंडिशनल स्टेट्मेंट के लिए निम्नलिखित में से कौन सा सही सिंटेक्स है?
A.
if (x > 0):
if (x > 0):
B.
if x > 0
if x > 0
C.
if x > 0 then:
if x > 0 then:
D.
Both A and B
ए और बी दोनों
Question No# :
02
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# :
03
out of 50
Report Bug
Bookmark
What is the output of >>>float('12.6')
>>>float('12.6') का आउटपुट क्या होगा
A.
12.6
12.6
B.
'12.6'
'12.6'
C.
12
12
D.
Syntax Error
Syntax Error
Question No# :
04
out of 50
Report Bug
Bookmark
What is the output of this expression, 3*1**3?
इस एक्सप्रेशन का आउटपुट क्या है, 3 * 1 ** 3?
A.
27
27
B.
9
9
C.
3
3
D.
1
1
Question No# :
05
out of 50
Report Bug
Bookmark
elif can be considered to be abbreviation of
elif किसका संक्षिप्त रूप माना जा सकता है
A.
nested if
nested if
B.
if..else
if..else
C.
else if
else if
D.
if..elif
if..elif
Question No# :
06
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# :
07
out of 50
Report Bug
Bookmark
What will the following code output? print(5/0)
निम्नलिखित कोड आउटपुट क्या होगा? print(5/0)
A.
0
Zero
B.
infinite
इनफिनिट
C.
5
फाइव
D.
ZeroDivisionError
ज़ीरोडिविज़नएरर
Question No# :
08
out of 50
Report Bug
Bookmark
Which of the following is a valid arithmetic operator in Python?
निम्नलिखित में से कौन पायथन में एक मान्य अंकगणितीय ऑपरेटर है?
A.
/ /
/ /
B.
>
>
C.
and
and
D.
?
?
Question No# :
09
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# :
10
out of 50
Report Bug
Bookmark
What is the output of the following code? print(not False)
निम्नलिखित कोड का परिणाम क्या है? print(not False)
A.
True
सही
B.
False
ग़लत
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
11
out of 50
Report Bug
Bookmark
If the else statement is used with a while loop, the else statement is executed when the condition becomes _____ .
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।
A.
True
ट्रू
B.
False
फॉल्स
C.
Infinite
इन्फाईनाइट
D.
NULL
शून्य
Question No# :
12
out of 50
Report Bug
Bookmark
Which amongst this is not a jump statement ?
A.
for
for
B.
goto
goto
C.
continue
continue
D.
break
break
Question No# :
13
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# :
14
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# :
15
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# :
16
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# :
17
out of 50
Report Bug
Bookmark
Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?
A.
%
%
B.
/
/
C.
//
//
D.
||
||
Question No# :
18
out of 50
Report Bug
Bookmark
The .......... construct repeats a set of statements a specified number of times or as long as a condition is true.
............ निर्माण एक निर्दिष्ट संख्या में या जब तक कोई शर्त सत्य है, तब तक बयानों के एक सेट को दोहराता है।
A.
selection
selection
B.
repetition
repetition
C.
sequence
sequence
D.
flow
flow
Question No# :
19
out of 50
Report Bug
Bookmark
Operations to be repeated a certain number of times are done by
संक्रियाओं को एक निश्चित संख्या में बार-बार दोहराए जाने के द्वारा किया जाता है
A.
Selection
Selection
B.
Sequential
Sequential
C.
Simple
Simple
D.
Loop
Loop
Question No# :
20
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# :
21
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# :
22
out of 50
Report Bug
Bookmark
What signifies the end of a statement block or suite in Python ?
पायथन में स्टेटमेंट ब्लॉक या सूट के अंत का क्या मतलब है?
A.
A comment
A comment
B.
}
}
C.
end
end
D.
A line that is indented less than the previous line
A line that is indented less than the previous line
Question No# :
23
out of 50
Report Bug
Bookmark
What will the following code output? print(‘55’+’5’)
निम्नलिखित कोड आउटपुट क्या होगा? print(‘55’+’5’)
A.
55
55
B.
60
60
C.
555
555
D.
Error
एरर
Question No# :
24
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# :
25
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# :
26
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# :
27
out of 50
Report Bug
Bookmark
What will be the output of : print((-3)**2)
इसका आउटपुट क्या होगा: print((-3)**2)
A.
-9
-9
B.
9
9
C.
6
6
D.
-6
-6
Question No# :
28
out of 50
Report Bug
Bookmark
Which is the correct operator for power(x,y)?
A.
X^y
X^y
B.
X**y
X**y
C.
X^^y
X^^y
D.
None of the mentioned
None of the mentioned
Question No# :
29
out of 50
Report Bug
Bookmark
Which of the following is not a valid keyword of Python associated with loops?
निम्नलिखित में से कौन लूप से सम्बन्धित पायथन का वैलिड कीवर्ड नहीं है?
A.
continue
continue
B.
check
चेक
C.
range
रेंज
D.
break
ब्रेक
Question No# :
30
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# :
31
out of 50
Report Bug
Bookmark
How many control statements python supports?
पाइथॉन कितने नियंत्रण कथनों का समर्थन करता है?
A.
3
3
B.
4
4
C.
5
5
D.
6
6
Question No# :
32
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# :
33
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# :
34
out of 50
Report Bug
Bookmark
The data type of an expression int(m)/int(n) will result in:
एक अभिव्यक्ति का डेटा प्रकार int(m)/int(n) परिणाम देगा:
A.
Int
Int
B.
Float
Float
C.
int or float
int or float
D.
None of these
None of these
Question No# :
35
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# :
36
out of 50
Report Bug
Bookmark
Function range(3) will yield an iteratable sequence like
फ़ंक्शन range(3)) एक पुनरावृत्त अनुक्रम उत्पन्न करेगा जैसे
A.
[0, 1, 2]
[0, 1, 2]
B.
[0, 1, 2, 3]
[0, 1, 2, 3]
C.
[1, 2, 3]
[1, 2, 3]
D.
[0, 2]
[0, 2]
Question No# :
37
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# :
38
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# :
39
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# :
40
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# :
41
out of 50
Report Bug
Bookmark
How many for loop structure we can use in our program?
हम अपने प्रोग्राम में कितने फॉर लूप स्ट्रक्चर का यूज़ कर सकते हैं?
A.
Only One
केवल एक
B.
1-10
1-10
C.
Any number of Times
किसी भी नंबर में टाइम्स
D.
Any number of times but one inside another only.
कितनी भी बार लेकिन एक के अंदर ही दूसरा।
Question No# :
42
out of 50
Report Bug
Bookmark
What plays a vital role in Python programming?
A.
Statements
Statements
B.
Control
Control
C.
Structure
Structure
D.
Indentation
Indentation
Question No# :
43
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# :
44
out of 50
Report Bug
Bookmark
What will the following code output? print(2 << 2)
निम्नलिखित कोड आउटपुट क्या होगा? print(2 << 2)
A.
4
4
B.
8
8
C.
16
16
D.
32
32
Question No# :
45
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# :
46
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# :
47
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# :
48
out of 50
Report Bug
Bookmark
The result of abs() is equal to math.fabs()?
क्या abs() फंक्शन math.fabs() के बराबर है?
A.
Yes
हाँ
B.
No
नहीं
C.
Can't say
कह नहीं सकता
D.
None of these
इनमें से कोई नहीं
Question No# :
49
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
Question No# :
50
out of 50
Report Bug
Bookmark
Which term describes a loop that continues repeating without a terminating (ending) condition ?
कौन सा शब्द एक लूप का वर्णन करता है जो बिना किसी समाप्ति (समाप्त) स्थिति के दोहराना जारी रखता है?
A.
Infinite Loop
इन्फाईनाइट लूप
B.
conditional loop
कंडीशनल लूप
C.
unlimited loop
अनलिमीटेड लूप
D.
None of these
इनमें से कोई नहीं
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