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
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
How many control statements python supports?
पाइथॉन कितने नियंत्रण कथनों का समर्थन करता है?
A.
3
3
B.
4
4
C.
5
5
D.
6
6
Question No# :
02
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# :
03
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# :
04
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# :
05
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# :
06
out of 50
Report Bug
Bookmark
What is the output of the code print(7%2).
कोड print(7%2) का आउटपुट क्या है।
A.
5.5
5.5
B.
3.5
3.5
C.
1
1
D.
None of the above
इनमें से कोई नहीं
Question No# :
07
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# :
08
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# :
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
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# :
11
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# :
12
out of 50
Report Bug
Bookmark
Which symbol is used for bitwise XOR operator
बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?
A.
|
|
B.
&
&
C.
^
^
D.
!
!
Question No# :
13
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# :
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
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# :
16
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# :
17
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# :
18
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# :
19
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# :
20
out of 50
Report Bug
Bookmark
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
A.
+
+
B.
-
-
C.
*
*
D.
( )
( )
Question No# :
21
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# :
22
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# :
23
out of 50
Report Bug
Bookmark
What is the purpose of the else block in a Python loop?
पायथन लूप में अन्य ब्लॉक का पर्पज क्या है?
A.
To execute when the loop is terminated using break.
ब्रेक का यूज़ करके लूप टर्मिनेट होने पर एक्सक्यूट करना।
B.
To execute after the loop completes without encountering a break.
लूप कम्पलीट होने के बाद बिना किसी रुकावट के एक्सक्यूट करना।
C.
To restart the loop.
लूप को रीस्टार्ट करने के लिए
D.
To execute before the loop starts
लूप रीस्टार्ट होने से पहले एक्सक्यूट करना
Question No# :
24
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# :
25
out of 50
Report Bug
Bookmark
What will be the output of this code? print(2 ** 3)
इस कोड का आउटपुट क्या होगा? print(2 ** 3)
A.
6
6
B.
8
8
C.
9
9
D.
11
11
Question No# :
26
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# :
27
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# :
28
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# :
29
out of 50
Report Bug
Bookmark
What will be the result of the expression : print(10 or 0) ?
print(10 or 0 ) : का परिणाम क्या होगा?
A.
0
0
B.
1
1
C.
10
10
D.
1.0
1.0
Question No# :
30
out of 50
Report Bug
Bookmark
Which translator is used to convert assembly language into machine language?
असेंबली भाषा को मशीन भाषा में को बदलने के लिए किस अनुवादक का उपयोग किया जाता है
A.
Compiler
कम्पाइलर
B.
Interpreter
इंटरप्रेटर
C.
Assembler
असेम्बलर
D.
None of these
इनमे से कोई नहीं
Question No# :
31
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# :
32
out of 50
Report Bug
Bookmark
which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :
A.
#
#
B.
=
=
C.
/
/
D.
&
&
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
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# :
35
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# :
36
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# :
37
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# :
38
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# :
39
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# :
40
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# :
41
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# :
42
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# :
43
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# :
44
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# :
45
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# :
46
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
Question No# :
47
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# :
48
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# :
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 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
Latest Current Affairs 2025
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