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
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type. This concept is known as
पायथन में, एक चर को एक प्रकार का मान सौंपा जा सकता है, और फिर बाद में एक अलग प्रकार का मान निर्दिष्ट किया जा सकता है। इस अवधारणा को के रूप में जाना जाता है
A.
mutability
mutability
B.
static typing
static typing
C.
dynamic typing
dynamic typing
D.
immutability
immutability
Question No# :
02
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# :
03
out of 50
Report Bug
Bookmark
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
A.
*
*
B.
**
**
C.
<
<
D.
==
==
Question No# :
04
out of 50
Report Bug
Bookmark
In python language, which of the following operators is the correct option for raising k to the power 1?
पायथन भाषा में, k को पावर 1 तक बढ़ाने के लिए निम्नलिखित में से कौन सा ऑपरेटर सही विकल्प है?
A.
k^1
k^1
B.
k**1
k**1
C.
k^ ^1
k^ ^1
D.
k^*1
k^*1
Question No# :
05
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# :
06
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# :
07
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# :
08
out of 50
Report Bug
Bookmark
Which of the following statements is used to test multiple conditions in Python?
निम्नलिखित में से किस स्टेट्मेंट का यूज़ पायथन में मल्टिपल कंडीशन का टेस्ट करने के लिए किया जाता है?
A.
if
if
B.
if-else
if-else
C.
elif
elif
D.
if-else-if
if-else-if
Question No# :
09
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# :
10
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# :
11
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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
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# :
17
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# :
18
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# :
19
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# :
20
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# :
21
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# :
22
out of 50
Report Bug
Bookmark
Leading white space at the beginning of each statement, which is used to determine the group of statement.
A.
Testing
Testing
B.
Indentation
Indentation
C.
Debugging
Debugging
D.
None of the above
None of the above
Question No# :
23
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# :
24
out of 50
Report Bug
Bookmark
which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :
A.
#
#
B.
=
=
C.
/
/
D.
&
&
Question No# :
25
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# :
26
out of 50
Report Bug
Bookmark
Which function is used to generate a sequence of numbers in Python loops?
पायथन लूप्स में नंबर्स का सीक्वेंस जनरेट करने के लिए किस फ़ंक्शन का यूज़ किया जाता है?
A.
sequence()
sequence()
B.
range()
range()
C.
list()
list()
D.
loop()
loop()
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
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
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# :
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
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# :
32
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# :
33
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# :
34
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# :
35
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# :
36
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# :
37
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# :
38
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# :
39
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# :
40
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# :
41
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# :
42
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# :
43
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# :
44
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# :
45
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# :
46
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# :
47
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# :
48
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# :
49
out of 50
Report Bug
Bookmark
Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?
A.
%
%
B.
/
/
C.
//
//
D.
||
||
Question No# :
50
out of 50
Report Bug
Bookmark
In Python, a variable is assigned a value of one type, and then later assigned a value of a different type. This will yield
पायथन में, एक चर को एक प्रकार का मान दिया जाता है, और फिर बाद में एक अलग प्रकार का मान दिया जाता है। यह उपज देगा
A.
Warning
Warning
B.
Error
Error
C.
Error
Error
D.
No Error
No Error
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