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
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
Question No# :
02
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# :
03
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# :
04
out of 50
Report Bug
Bookmark
Which of the following is a valid arithmetic operator in Python ?
निम्नलिखित में से कौन पायथन में एक मान्य अंकगणित ऑपरेटर है?
A.
//
//
B.
?
?
C.
<
<
D.
and
and
Question No# :
05
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# :
06
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# :
07
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
इनमें से कोई नहीं
Question No# :
08
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# :
09
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# :
10
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# :
11
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# :
12
out of 50
Report Bug
Bookmark
Which one of these is floor division?
इनमें से कौन सा फ्लोर डिवीज़न है?
A.
/
/
B.
//
//
C.
%
%
D.
None of the mentioned
उल्लेखित कोई नहीं
Question No# :
13
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# :
14
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# :
15
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# :
16
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# :
17
out of 50
Report Bug
Bookmark
Which operator is also called as Conditional operator?
A.
Ternary
Ternary
B.
Relational
Relational
C.
Logical
Logical
D.
Assignment
Assignment
Question No# :
18
out of 50
Report Bug
Bookmark
Function range(10, 5, 2) will yield an iterable sequence like
फंक्शन range(10, 5, 2) एक चलने योग्य अनुक्रम उत्पन्न करेगा जैसे
A.
[]
[]
B.
[10, 8, 6]
[10, 8, 6]
C.
[2, 5, 8]
[2, 5, 8]
D.
[8, 5, 2]
[8, 5, 2]
Question No# :
19
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# :
20
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# :
21
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# :
22
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# :
23
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# :
24
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# :
25
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# :
26
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# :
27
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# :
28
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# :
29
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# :
30
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# :
31
out of 50
Report Bug
Bookmark
Which of the following function returns the ASCII/Unicode value character?
निम्नलिखित में कौन सा फक्शन ASCII/Unicode वैल्यू कैरेक्टर रिटर्न करता है?
A.
asc()
asc()
B.
ord()
ord()
C.
asci()
asci()
D.
ascii()
ascii()
Question No# :
32
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# :
33
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# :
34
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# :
35
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# :
36
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# :
37
out of 50
Report Bug
Bookmark
Which of the following is not an immutable type in Python ?
निम्नलिखित में से कौन पायथन में एक अपरिवर्तनीय प्रकार नहीं है?
A.
String
String
B.
Tuples
Tuples
C.
Set
Set
D.
None of these
None of these
Question No# :
38
out of 50
Report Bug
Bookmark
How many times will loop run? for a in "56247839"
लूप कितनी बार चलेगा? for a in "56247839"
A.
11
11
B.
8
8
C.
1
1
D.
0
0
Question No# :
39
out of 50
Report Bug
Bookmark
Which symbol is used for bitwise XOR operator
बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?
A.
|
|
B.
&
&
C.
^
^
D.
!
!
Question No# :
40
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# :
41
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# :
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 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
Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किसकी एक्सप्रेशन में हाईएस्ट प्रेसिडेन्स है?
A.
Exponential
एक्सपोनेंशियल
B.
Addition
एडिशन
C.
Multiplication
मल्टीप्लिकेशन
D.
Parentheses
पैरेंथेसेस
Question No# :
45
out of 50
Report Bug
Bookmark
What will be the result of the following expression in Python “2 ** 3 + 5 ** 2”?
पायथन में निम्नलिखित अभिव्यक्ति "2 ** 3 + 5 ** 2" का परिणाम क्या होगा?
A.
65536
65536
B.
33
33
C.
169
169
D.
None of the above
None of the above
Question No# :
46
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# :
47
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# :
48
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# :
49
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# :
50
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
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