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
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# :
02
out of 50
Report Bug
Bookmark
Can we write if / else into one line in python?
क्या हम पाइथन में एक लाइन में if / else लिख सकते हैं?
A.
Yes
Yes
B.
No
No
C.
if / else not used in python
if / else not used in python
D.
None of the above.
उपर्युक्तमें से कोई नहीं
Question No# :
03
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# :
04
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# :
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 keyword is used to exit a loop prematurely in Python?
पायथन में लूप से समय से पहले एग्जिट होने के लिए किस कीवर्ड का यूज़ किया जाता है?
A.
exit
एग्जिट
B.
break
ब्रेक
C.
continue
कंटीन्यू
D.
stop
स्टॉप
Question No# :
07
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# :
08
out of 50
Report Bug
Bookmark
What does the continue statement do in a loop?
लूप में कंटीन्यू स्टेटमेंट क्या करता है?
A.
Exits the loop entirely.
लूप से पूरी तरह एग्जिट हो जाता है।
B.
Skips the rest of the code in the current iteration and moves to the next iteration.
प्रेजेंट इट्रेशन में रेस्ट कोड को स्किप्स कर देता है और नेक्स्ट इट्रेशन पर मूव हो जाता है।
C.
Restarts the loop.
लूप रीस्टार्ट करता है।
D.
Causes an error.
एरर का कारण बनता है.
Question No# :
09
out of 50
Report Bug
Bookmark
Python programming language allows to use one loop inside another loop known as ?
पायथन प्रोग्रामिंग भाषा एक लूप को दूसरे लूप के अंदर उपयोग करने की अनुमति देती है जिसे जाना जाता है?
A.
switch
switch
B.
foreach
foreach
C.
Nested Loop
Nested Loop
D.
None
कोई नहीं
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
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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
out of 50
Report Bug
Bookmark
which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :
A.
#
#
B.
=
=
C.
/
/
D.
&
&
Question No# :
17
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# :
18
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# :
19
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# :
20
out of 50
Report Bug
Bookmark
What will the following code output? print( 12/4/2)
निम्नलिखित कोड आउटपुट क्या होगा? print( 12/4/2)
A.
6
6
B.
1
1
C.
1.5
1.5
D.
Error
Error
Question No# :
21
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# :
22
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# :
23
out of 50
Report Bug
Bookmark
What is the the value of x when x=math.factorial(0)
x का मान क्या है जब x=math.factorial(0)
A.
0
0
B.
1
1
C.
11
11
D.
10
10
Question No# :
24
out of 50
Report Bug
Bookmark
Give the output of : print((range(4)))
print((range(4))) का आउटपुट क्या होगा
A.
range(0,5)
range(0,5)
B.
range(1,5)
range(0,5)
C.
range(1,4)
range(1,4)
D.
range(0,4)
range(0,4)
Question No# :
25
out of 50
Report Bug
Bookmark
The .......... construct allows to choose statements to be executed, depending upon the result of a condition.
........ निर्माण एक शर्त के परिणाम के आधार पर निष्पादित किए जाने वाले कथनों को चुनने की अनुमति देता है।
A.
selection
selection
B.
repetition
repetition
C.
sequence
sequence
D.
flow
flow
Question No# :
26
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# :
27
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# :
28
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# :
29
out of 50
Report Bug
Bookmark
What is the purpose of the elif statement in Python?
पायथन में एलिफ स्टेटमेंट का पर्पज क्या है?
A.
To create an infinite loop.
एक इन्फनिट लूप क्रिएट करने के लिए.
B.
To check additional conditions when the first if condition is False.
एडिशनल कंडीशनल्स को चेक करने के लिए जब फर्स्ट कंडीशन गलत हो।
C.
To end the if block.
if ब्लॉक को ख़त्म करने के लिए.
D.
To execute code unconditionally.
कोड को अनकंडिशनली एक्सक्यूट करना।
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
What plays a vital role in Python programming?
A.
Statements
Statements
B.
Control
Control
C.
Structure
Structure
D.
Indentation
Indentation
Question No# :
32
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# :
33
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# :
34
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# :
35
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# :
36
out of 50
Report Bug
Bookmark
Which of the following Boolean expressions is not logically equivalent to the other three?
निम्नलिखित में से कौन सा बुलियन एक्सप्रेशन लॉज़िकली रूप से अन्य तीन के बराबर नहीं है?
A.
not(-6<0 or-6>10)
not(-6<0 or-6>10)
B.
-6>=0 and -6<=10
-6>=0 and -6<=10
C.
not(-6<10 or-6==10)
not(-6<10 or-6==10)
D.
not(-6>10 or-6==10)
not(-6>10 or-6==10)
Question No# :
37
out of 50
Report Bug
Bookmark
What is the value of the expression 10 + 3 ** 3 * 2?
व्यंजक 10 + 3 ** 3 * 2 का मान क्या है?
A.
28
28
B.
739
739
C.
829
829
D.
64
64
Question No# :
38
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# :
39
out of 50
Report Bug
Bookmark
The condition in the if statement should be in the form of
if स्टेटमेंट में शर्त इस प्रकार होनी चाहिए
A.
Arithmetic or Relational expression
Arithmetic or Relational expression
B.
Arithmetic or Logical expression
Arithmetic or Logical expression
C.
Relational or Logical expression
Relational or Logical expression
D.
Arithmetic
Arithmetic
Question No# :
40
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# :
41
out of 50
Report Bug
Bookmark
Which of the following is NOT a valid use of a loop in Python?
निम्नलिखित में से कौन सा पायथन में लूप का वैलिड यूज़ नहीं है?
A.
Iterating over a list.
किसी लिस्ट को इटरेटिंग करना।
B.
Iterating over a string.
एक स्ट्रिंग पर इटरेटिंग.
C.
Iterating over a dictionary.
एक ड़िक्शनरी पर इटरेटिंग।
D.
None of the above
इनमे से कोई भी नहीं
Question No# :
42
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# :
43
out of 50
Report Bug
Bookmark
Which expression is equivalent to A=A*8
कौन सा व्यंजक A=A*8 के समतुल्य है
A.
A*A=8
A*A=8
B.
A*=8
A*=8
C.
A*8=A
A*8=A
D.
A=*8
A=*8
Question No# :
44
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# :
45
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# :
46
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# :
47
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# :
48
out of 50
Report Bug
Bookmark
For two objects x and y, the expression x is y will yield True, if and only if
दो वस्तुओं x और y के लिए, व्यंजक x, y है, सत्य प्राप्त करेगा, यदि और केवल यदि
A.
id(x) == id(y)
id(x) == id(y)
B.
len(x) == len(y)
len(x) == len(y)
C.
x == y
x == y
D.
all of these
all of these
Question No# :
49
out of 50
Report Bug
Bookmark
What is the output of the following program ? print 0.1+0.2==0.3
निम्नलिखित प्रोग्राम का आउटपुट क्या है ? print 0.1+0.2==0.3
A.
True
True
B.
False
False
C.
Machine dependent
Machine dependent
D.
Error
Error
Question No# :
50
out of 50
Report Bug
Bookmark
Which of the following is not a relational opeartor in Python?
निम्नलिखित में से कौन पायथन में एक रिलेशनल ऑपरेटर नहीं है?
A.
>=
>=
B.
<=
<=
C.
=
=
D.
!=
!=
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