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
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 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# :
02
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# :
03
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# :
04
out of 50
Report Bug
Bookmark
A loop block in python starts with a.. -
पायथन में एक लूप ब्लॉक एक... से शुरू होता है
A.
; (semicolon)
; (semicolon)
B.
,(Comma)
,(Comma)
C.
: (colan)
: (colan)
D.
None of these
कोई नही
Question No# :
05
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# :
06
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# :
07
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# :
08
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# :
09
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# :
10
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# :
11
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# :
12
out of 50
Report Bug
Bookmark
Which of the following is not a relational opeartor in Python?
निम्नलिखित में से कौन पायथन में एक रिलेशनल ऑपरेटर नहीं है?
A.
>=
>=
B.
<=
<=
C.
=
=
D.
!=
!=
Question No# :
13
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# :
14
out of 50
Report Bug
Bookmark
Which operator returns remainder?
कौन सा ऑपरेटर शेषफल लौटाता है?
A.
//
//
B.
/
/
C.
%
%
D.
*
*
Question No# :
15
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# :
16
out of 50
Report Bug
Bookmark
What is the output of the expression : 3*1**3 ?
एक्सप्रेशन 3*1**3 आउटपुट क्या है ?
A.
27
27
B.
9
9
C.
3
3
D.
1
1
Question No# :
17
out of 50
Report Bug
Bookmark
which function is used to get the ASCII value of any Character in PYthon?
पायथन में किसी भी वर्ण का ASCII मान प्राप्त करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
A.
ascii()
ascii()
B.
getAscii()
getAscii()
C.
get_ascii()
get_ascii()
D.
ord()
ord()
Question No# :
18
out of 50
Report Bug
Bookmark
The order of statement execution in the form of top to bottom, is known as .......... construct.
ऊपर से नीचे के रूप में कथन निष्पादन के क्रम को ……… निर्माण के रूप में जाना जाता है।
A.
selection
selection
B.
repetition
repetition
C.
sequence
sequence
D.
flow
flow
Question No# :
19
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# :
20
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# :
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
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# :
23
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# :
24
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# :
25
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# :
26
out of 50
Report Bug
Bookmark
Which keyword does nothing?
कौन सा कीवर्ड कुछ भी नहीं करता है?
A.
break
break
B.
continue
continue
C.
pass
pass
D.
assert
assert
Question No# :
27
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# :
28
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# :
29
out of 50
Report Bug
Bookmark
Which function generates a sequence of numbers?
कौन सा फ़ंक्शन संख्याओं का एक क्रम उत्पन्न करता है?
A.
range()
range()
B.
input()
input()
C.
len()
len()
D.
list()
list()
Question No# :
30
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# :
31
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# :
32
out of 50
Report Bug
Bookmark
Which statement is used for debugging?
डिबगिंग के लिए किस कथन का उपयोग किया जाता है?
A.
break
break
B.
assert
assert
C.
pass
pass
D.
continue
continue
Question No# :
33
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# :
34
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# :
35
out of 50
Report Bug
Bookmark
Which is the most comfortable loop?
सबसे सरल लूप कौन सा है?
A.
do..while
do..while
B.
while
while
C.
for
for
D.
if..elif
if..elif
Question No# :
36
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# :
37
out of 50
Report Bug
Bookmark
Which operator is used for assignment in Python?
पाइथन में असाइनमेंट के लिए किस ऑपरेटर का उपयोग किया जाता है?
A.
:=
:=
B.
=
=
C.
==
==
D.
!=
!=
Question No# :
38
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# :
39
out of 50
Report Bug
Bookmark
The operator used to check if both the operands reference the same object memory, is the .......... operator.
ऑपरेटर यह जांचने के लिए प्रयोग किया जाता है कि क्या दोनों ऑपरेंड एक ही ऑब्जेक्ट मेमोरी को संदर्भित करते हैं, ……… ऑपरेटर है।
A.
in
in
B.
is
is
C.
id
id
D.
==
==
Question No# :
40
out of 50
Report Bug
Bookmark
Which loop is used for definite iteration?
निश्चित पुनरावृति के लिए किस लूप का उपयोग किया जाता है?
A.
for
for
B.
assert
assert
C.
while
while
D.
if
if
Question No# :
41
out of 50
Report Bug
Bookmark
Function range(10, 5, -2) will yield an iterable sequence like
फंक्शन range(10, 5, -2) एक पुनरावर्तनीय अनुक्रम उत्पन्न करेगा जैसे
A.
[10, 8, 6]
[10, 8, 6]
B.
[9, 7, 5]
[9, 7, 5]
C.
[6, 8, 10]
[6, 8, 10]
D.
[5, 7, 9]
[5, 7, 9]
Question No# :
42
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# :
43
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# :
44
out of 50
Report Bug
Bookmark
Changing one data type to another is known as
एक डेटा प्रकार को दूसरे में बदलना कहलाता है
A.
Type Casting
Type Casting
B.
Data Transformation
Data Transformation
C.
Type modification
Type modification
D.
Variable Shifting
Variable Shifting
Question No# :
45
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# :
46
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# :
47
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# :
48
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# :
49
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# :
50
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
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