Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : python - OPERATORS EXPRESSIONS AND PYTHON STATEMENTS
OPERATORS EXPRESSIONS AND PYTHON STATEMENTS
00:00:00
English
Hindi
Question No# :
01
out of 50
<p>What is the output of the following ?</p><pre><span style="font-size: 14px;">print(int())</span></pre>
<p> निम्नलिखित का आउटपुट क्या है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(int())</span></pre>
A.
Any Random Number
Any Random Number
B.
0
0
C.
1
1
D.
Error
Error
Question No# :
02
out of 50
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# :
03
out of 50
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
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# :
05
out of 50
<p>What will be the output of the following expression</p><pre>x=14<br>print(x>>2)</pre><p><br></p>
<p>निम्नलिखित एक्सपरशन का आउटपुट क्या होगा</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">x=14<br>print(x>>2)</pre>
A.
14
14
B.
1
1
C.
3
3
D.
2
2
Question No# :
06
out of 50
Which of the following is not Logical operator?
Which of the following is not Logical operator?
A.
and
and
B.
or
or
C.
not
not
D.
Assignment
Assignment
Question No# :
07
out of 50
<p>What will be the output of the following Python statement?</p><pre><span style="font-size: 14px;">print(chr(ord('A')+32))</span></pre><div><br></div>
<p>निम्नलिखित Python स्टेटमेंट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(chr(ord('A')+32))</span></pre>
A.
A
A
B.
B
B
C.
a
a
D.
Error
एरर
Question No# :
08
out of 50
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# :
09
out of 50
<p>What is the output of the following code? </p><pre>print(True and False)</pre>
<p>निम्नलिखित कोड का आउटपुट क्या है? </p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">print(True and False)</pre>
A.
True
सही
B.
False
ग़लत
C.
Error
एरर
D.
None
कोई नहीं
Question No# :
10
out of 50
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# :
11
out of 50
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# :
12
out of 50
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
Question No# :
13
out of 50
<p>What will be the output of the following Python code?</p> <pre class="de1" style="border-radius: 0px; padding: 0px; font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" color:="" rgb(51,="" 51,="" 51);="" word-break:="" break-all;="" overflow-wrap:="" normal;="" background:="" rgb(244,="" 244,="" 244);="" border:="" 0px;="" overflow:="" visible;="" box-shadow:="" none;="" text-align:="" justify;="" margin-top:="" 0px="" !important;="" margin-bottom:="" line-height:="" 20px="" !important;"=""><span style="font-size: 12.6px;">x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)</span><br></pre>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre class="de1" lucida="" console",="" monospace;="" color:="" rgb(51,="" 51,="" 51);="" word-break:="" break-all;="" overflow-wrap:="" normal;="" background:="" rgb(244,="" 244,="" 244);="" border:="" 0px;="" overflow:="" visible;="" box-shadow:="" none;="" text-align:="" justify;="" margin-top:="" 0px="" !important;="" margin-bottom:="" line-height:="" 20px="" !important;"="" style="font-size: 12.6px; letter-spacing: 0.14px; border-radius: 0px; padding: 0px;">x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)</pre>
A.
[‘AB’, ‘CD’]
[‘AB’, ‘CD’]
B.
[‘ab’, ‘cd’, ‘AB’, ‘CD’]
[‘ab’, ‘cd’, ‘AB’, ‘CD’]
C.
[‘ab’, ‘cd’]
[‘ab’, ‘cd’]
D.
Infinite Loop
अनंत लूप
Question No# :
14
out of 50
<p>What will be the output of the following Python code?</p><pre>for i in range(0):<br> print(i)</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">for i in range(0):<br> print(i)</pre>
A.
0
0
B.
no output
नो आउटपुट
C.
error
एरर
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
15
out of 50
What does assert do?
assert क्या करता है?
A.
Terminates loop
Terminates loop
B.
Skips iteration
Skips iteration
C.
Prints message
Prints message
D.
Raises error if condition is False
Raises error if condition is False
Question No# :
16
out of 50
Which of the following data types is not supported in python
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# :
17
out of 50
<p>What will be the output of the following Python code snippet?</p> <pre class="de1" style="border-radius: 0px; padding: 0px; font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" color:="" rgb(51,="" 51,="" 51);="" word-break:="" break-all;="" overflow-wrap:="" normal;="" background:="" rgb(244,="" 244,="" 244);="" border:="" 0px;="" overflow:="" visible;="" box-shadow:="" none;="" text-align:="" justify;="" margin-top:="" 0px="" !important;="" margin-bottom:="" line-height:="" 20px="" !important;"=""> x = 'abcd' for i in range(len(x)): x = 'a' print(x)</pre>
<p>निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?</p><pre class="de1" lucida="" console",="" monospace;="" color:="" rgb(51,="" 51,="" 51);="" word-break:="" break-all;="" overflow-wrap:="" normal;="" background:="" rgb(244,="" 244,="" 244);="" border:="" 0px;="" overflow:="" visible;="" box-shadow:="" none;="" text-align:="" justify;="" margin-top:="" 0px="" !important;="" margin-bottom:="" line-height:="" 20px="" !important;"="" style="font-size: 12.6px; letter-spacing: 0.14px; border-radius: 0px; padding: 0px;"> x = 'abcd' for i in range(len(x)): x = 'a' print(x)</pre>
A.
a
a
B.
abcd abcd abcd
abcd abcd abcd
C.
a a a a
a a a a
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
18
out of 50
<p>What will be the output of the following Python code?</p><pre>from math import pow<br>print(math.pow(2,3))</pre>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">from math import pow<br>print(math.pow(2,3))</pre>
A.
Nothing is printed
Nothing is printed
B.
8
8
C.
Error, method pow doesn’t exist in math module
Error, method pow doesn’t exist in math module
D.
Error, the statement should be: print(pow(2,3))
Error, the statement should be: print(pow(2,3))
Question No# :
19
out of 50
What will be the result of the expression print(5 and 10) ?
print(5 and 10) का परिणाम क्या होगा?
A.
5
5
B.
1
1
C.
10
10
D.
0
0
Question No# :
20
out of 50
_____ 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# :
21
out of 50
What will the following code output? print(5/0)
निम्नलिखित कोड आउटपुट क्या होगा? print(5/0)
A.
0
Zero
B.
infinite
इनफिनिट
C.
5
फाइव
D.
ZeroDivisionError
ज़ीरोडिविज़नएरर
Question No# :
22
out of 50
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
what will the output of : 34//5+34%5 in python
पायथन में: 34//5+34%5 का आउटपुट क्या होगा
A.
15
15
B.
150
150
C.
200
200
D.
10
10
Question No# :
24
out of 50
Which statement is generally used as a placeholder?
Which statement is generally used as a placeholder?
A.
continue
continue
B.
break
break
C.
pass
pass
D.
goto
goto
Question No# :
25
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">print(2 ** 3 ** 2)</span></pre>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(2 ** 3 ** 2)</span></pre>
A.
64
64
B.
512
512
C.
256
256
D.
36
36
Question No# :
26
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">x = 'abcd'<br></span><span style="font-size: 14px;">for i in range(x):<br></span><span style="font-size: 14px;"> print(i)</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x = 'abcd'<br></span><span style="font-size: 14px;">for i in range(x):<br></span><span style="font-size: 14px;"> print(i)</span></pre>
A.
a b c d
a b c d
B.
0 1 2 3
0 1 2 3
C.
error
एरर
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
27
out of 50
<p>What will the following code output?</p><pre>x=0<br>if x:<br><span style="white-space: normal;"><span style="white-space:pre"> </span>print("True")<br></span>else:<br><span style="white-space: normal;"><span style="white-space:pre"> </span>print("False")</span></pre>
निम्नलिखित कोड आउटपुट क्या होगा?
A.
True
True
B.
False
False
C.
None
None
D.
Error
Error
Question No# :
28
out of 50
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# :
29
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">i = 1<br></span><span style="font-size: 14px;">while False:<br></span><span style="font-size: 14px;"> if i%2 == 0:<br></span><span style="font-size: 14px;"> break<br></span><span style="font-size: 14px;"> print(i)<br></span><span style="font-size: 14px;"> i += 2</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">i = 1<br></span><span style="font-size: 14px;">while False:<br></span><span style="font-size: 14px;"> if i%2 == 0:<br></span><span style="font-size: 14px;"> break<br></span><span style="font-size: 14px;"> print(i)<br></span><span style="font-size: 14px;"> i += 2</span></pre>
A.
1
1
B.
1 3 5 7 …
1 3 5 7 …
C.
1 2 3 4 …
1 2 3 4 …
D.
Nothing will be printed
कुछ भी प्रिंट नहीं होगा
Question No# :
30
out of 50
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# :
31
out of 50
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# :
32
out of 50
<p>What will be the output of the following expression ?</p><pre>print (7//2)<br>print (-7//2)</pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">print (7//2)<br>print (-7//2)</pre>
A.
3 -3
3 -3
B.
4 -4
4 -4
C.
3 -4
3 -4
D.
3 3
3 3
Question No# :
33
out of 50
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# :
34
out of 50
what will the output of following : print(2+9*((3*12)-8)/10)
निम्नलिखित कोड का आउटपुट क्या होगा? print( 2+9*((3*12)-8)/10)
A.
27.2
27.2
B.
29.0
29.0
C.
14.9
14.9
D.
12.3
12.3
Question No# :
35
out of 50
Which relational operator means not equal to?
कौन सा संबंधवाचक संवाहक 'बराबर नहीं' का अर्थ दर्शाता है?
A.
=
=
B.
!=
!=
C.
<>
<>
D.
=!
=!
Question No# :
36
out of 50
<p>What will be the output of the following expression ?</p><pre>x =4<br>print(x<<2)</pre><div><br></div>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">x =4<br>print(x<<2)</pre>
A.
4
4
B.
16
16
C.
6
6
D.
2
2
Question No# :
37
out of 50
Which keyword is used to exit a loop prematurely in Python?
पायथन में लूप से समय से पहले एग्जिट होने के लिए किस कीवर्ड का यूज़ किया जाता है?
A.
exit
एग्जिट
B.
break
ब्रेक
C.
continue
कंटीन्यू
D.
stop
स्टॉप
Question No# :
38
out of 50
<p>What will be the output of the following Python code snippet? </p><pre>print(not(3>4))<br>print(not(1&1))</pre>
<p>निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">print(not(3>4))<br>print(not(1&1))</pre>
A.
True True
True True
B.
True False
True False
C.
False True
False True
D.
False False
False False
Question No# :
39
out of 50
How many control statements python supports?
पाइथॉन कितने नियंत्रण कथनों का समर्थन करता है?
A.
3
3
B.
4
4
C.
5
5
D.
6
6
Question No# :
40
out of 50
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# :
41
out of 50
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# :
42
out of 50
Which of the following operators has the lowest precedence ?
निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे कम है?
A.
not
not
B.
%
%
C.
and
and
D.
+
+
Question No# :
43
out of 50
<p>Which among the following list of operators has the highest precedence?</p> <pre><font color="#333333"><span style="background-color: rgb(244, 244, 244);">+, -, **, %, /, <<, >>, |</span></font></pre>
<p>निम्नलिखित में से किस ऑपरेटर के लिस्ट में सबसे हाईएस्ट प्रेसिडेन्स है?</p><pre style="font-size: 12.6px; letter-spacing: 0.16px;"><font color="#333333"><span style="background-color: rgb(244, 244, 244);">+, -, **, %, /, <<, >>, |</span></font></pre>
A.
<<
<<
B.
**
**
C.
|
|
D.
%
%
Question No# :
44
out of 50
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# :
45
out of 50
Which keyword skips current iteration?
कौन सा कीवर्ड वर्तमान पुनरावृति को छोड़ देता है?
A.
skip
skip
B.
continue
continue
C.
break
break
D.
pass
pass
Question No# :
46
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">x = "abcdef"<br></span><span style="font-size: 14px;">i = "a"<br></span><span style="font-size: 14px;">while i in x:<br></span><span style="font-size: 14px;"> print(i, end = " ")</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x = "abcdef"<br></span><span style="font-size: 14px;">i = "a"<br></span><span style="font-size: 14px;">while i in x:<br></span><span style="font-size: 14px;"> print(i, end = " ")</span></pre>
A.
no output
नो आउटपुट
B.
i i i i i i …
i i i i i i …
C.
a a a a a a …
a a a a a a …
D.
a b c d e f
a b c d e f
Question No# :
47
out of 50
What is the output of the following?<pre><span style="font-size: 12.6px;">n=5 while n>0: n-=1 if n==2: continue print(n,end=' ')</span><br></pre>
<p>निम्नलिखित का आउटपुट क्या है?</p><pre style=""><span style="font-size: 12.6px;">n=5 while n>0: n-=1 if n==2: continue print(n,end=' ')</span><span style="font-size: 12.6px; letter-spacing: 0.14px;"><br></span></pre>
A.
5 4 3 1 0
5 4 3 1 0
B.
4 3 1 0
4 3 1 0
C.
4 3 2
4 3 2
D.
none of these
इनमे से कोई नहीं
Question No# :
48
out of 50
Which amongst this is not a jump statement ?
Which amongst this is not a jump statement ?
A.
for
for
B.
goto
goto
C.
continue
continue
D.
break
break
Question No# :
49
out of 50
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# :
50
out of 50
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
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2026
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Best Website and Software Company in Allahabad