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 will be the output after the following statements?</p><pre>a = 0<br>b = 3<br>while a + b < 8:<br> a += 1<br> print(a, end='')</pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a = 0<br>b = 3<br>while a + b < 8:<br> a += 1<br> print(a, end='')</pre>
A.
0 1 2 3 4
0 1 2 3 4
B.
1 2 3 4 5 6
1 2 3 4 5 6
C.
1 2 3 4 5
1 2 3 4 5
D.
None of these
None of these
Question No# :
02
out of 50
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# :
03
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# :
04
out of 50
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# :
05
out of 50
Function range(0, 5, 2) will yield on iterable sequence like
फ़ंक्शन रेंज (0, 5, 2) चलने योग्य अनुक्रम पर उत्पन्न होगी जैसे
A.
[0, 2, 4]
[0, 2, 4]
B.
[1, 3, 5]
[1, 3, 5]
C.
[0, 1, 2, 5]
[0, 1, 2, 5]
D.
[0, 5, 2]
[0, 5, 2]
Question No# :
06
out of 50
What plays a vital role in Python programming?
What plays a vital role in Python programming?
A.
Statements
Statements
B.
Control
Control
C.
Structure
Structure
D.
Indentation
Indentation
Question No# :
07
out of 50
It is a combination of Operators, Operands and Constants
It is a combination of Operators, Operands and Constants
A.
Identifier
Identifier
B.
Expression
Expression
C.
Syntax
Syntax
D.
Task
Task
Question No# :
08
out of 50
Which of the following refers to mathematical function?
निम्नलिखित में से कौन गणितीय फंक्शन को संदर्भित करता है
A.
sqrt
sqrt
B.
rhombus
rhombus
C.
add
add
D.
Sub
Sub
Question No# :
09
out of 50
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# :
10
out of 50
<p>What will the following code output? </p><pre>a,b,c=3,5,6 <br>b,c,a=a,b,c <br>print(a,” ”,b,” ”,c)</pre>
<p>निम्नलिखित कोड आउटपुट क्या होगा? </p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a,b,c=3,5,6 <br>b,c,a=a,b,c <br>print(a,” ”,b,” ”,c)</pre>
A.
3 5 6
3 5 6
B.
6 3 5
6 3 5
C.
5 6 3
5 6 3
D.
6 5 3
6 5 3
Question No# :
11
out of 50
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# :
12
out of 50
Give the output of: print(2^5)
इसका आउटपुट क्या होगा : print(2^5)
A.
32
32
B.
7
7
C.
10
10
D.
3
3
Question No# :
13
out of 50
If the else statement is used with a while loop, the else statement is executed when the condition becomes _____ .
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।
A.
True
ट्रू
B.
False
फॉल्स
C.
Infinite
इन्फाईनाइट
D.
NULL
शून्य
Question No# :
14
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 True:<br></span><span style="font-size: 14px;"> if i%7 == 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 += 1</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 True:<br></span><span style="font-size: 14px;"> if i%7 == 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 += 1</span></pre>
A.
1 2 3 4 5 6
1 2 3 4 5 6
B.
1 2 3 4 5 6 7
1 2 3 4 5 6 7
C.
error
एरर
D.
none of the mentioned
इनमें से कोई नहीं
Question No# :
15
out of 50
What is the answer to this expression, 22 % 3 is?
इस एक्सप्रेशन का उत्तर 22% 3 क्या है?
A.
7
7
B.
1
1
C.
0
0
D.
5
5
Question No# :
16
out of 50
The for loop in Python is an ____ .
पॉयथन में फॉर लूप...... है ।
A.
Entry Controlled Loop
इंट्री कंट्रोल्ड लूप
B.
Exit Controlled Loop
एक्जिट कंट्रोल्ड लूप
C.
Both of the above
उपर्युक्त दोनों
D.
None of the above
उपर्युक्त में से कोई नहीं
Question No# :
17
out of 50
Which of the following statement(s) will terminate the whole loop and proceed to the statement following the loop ?
निम्नलिखित में से कौन सा कथन पूरे लूप को समाप्त कर देगा और लूप के बाद वाले कथन पर आगे बढ़ेगा?
A.
pass
pass
B.
break
break
C.
continue
continue
D.
goto
goto
Question No# :
18
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# :
19
out of 50
Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किसकी एक्सप्रेशन में हाईएस्ट प्रेसिडेन्स है?
A.
Exponential
एक्सपोनेंशियल
B.
Addition
एडिशन
C.
Multiplication
मल्टीप्लिकेशन
D.
Parentheses
पैरेंथेसेस
Question No# :
20
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# :
21
out of 50
<p>What will be the output of the following Python code?</p><pre>from math import*<br>print(floor(3.7))</pre><div><br></div>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">from math import*<br>print(floor(3.7))</pre>
A.
3
3
B.
4
4
C.
3.0
3.0
D.
None of These
None of These
Question No# :
22
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# :
23
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# :
24
out of 50
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# :
25
out of 50
<p>find the output of following code:</p><pre><span style="font-size: 14px;">import math<br></span><span style="font-size: 14px;">print(math.fabs(-3.4))</span></pre><div><br></div>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import math<br></span><span style="font-size: 14px;">print(math.fabs(-3.4))</span></pre>
A.
-3.4
-3.4
B.
3.4
3.4
C.
4.3
4.3
D.
3
3
Question No# :
26
out of 50
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# :
27
out of 50
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# :
28
out of 50
<p>What will be the output of following code</p><pre><span style="font-size: 14px;">import math<br></span><span style="font-size: 14px;">print(math.pi)</span></pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import math<br></span><span style="font-size: 14px;">print(math.pi)</span></pre>
A.
5.354562653589793
5.354562653589793
B.
3.141592653589793
3.141592653589793
C.
7.867564234556778
7.867564234556778
D.
9.048495456553358
9.048495456553358
Question No# :
29
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# :
30
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# :
31
out of 50
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# :
32
out of 50
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# :
33
out of 50
What will the following code output? print(4 & 5)
निम्नलिखित कोड आउटपुट क्या होगा? print(4 & 5)
A.
4
4
B.
5
5
C.
0
0
D.
1
1
Question No# :
34
out of 50
What will the following code output? print(2 << 2)
निम्नलिखित कोड आउटपुट क्या होगा? print(2 << 2)
A.
4
4
B.
8
8
C.
16
16
D.
32
32
Question No# :
35
out of 50
____ is the output you get when '2'==2 is executed
____ वह आउटपुट है जो आपको तब मिलता है जब '2'==2 निष्पादित होता है-
A.
True
सही
B.
false
गलत
C.
ValueError occurs
ValueError होती है
D.
TypeError occurs
TypeError होता है
Question No# :
36
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# :
37
out of 50
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# :
38
out of 50
_________immediately terminates the current loop iteration.
_________ वर्तमान लूप पुनरावृत्ति को तुरंत समाप्त कर देता है।
A.
break
break
B.
pass
pass
C.
continue
continue
D.
None of These
None of These
Question No# :
39
out of 50
<p>What will be the output of the following Python code snippet?</p> <pre><span class="kw2" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>bool</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51); font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;"="">‘</span><span class="kw2" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">False</span><span style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51); font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;"="">’</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">)<br></span><span class="kw2" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>bool</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">)</span></pre>
<p>निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="letter-spacing: 0.16px;"><span class="kw2" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>>bool</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="" style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51);">‘</span><span class="kw2" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">False</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="" style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51);">’</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">)<br></span><span class="kw2" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>>bool</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">)</span></pre>
A.
True True
True True
B.
False True
False True
C.
False False
False False
D.
True False
True False
Question No# :
40
out of 50
The contents inside the "for loop" are separated by?
लूप के अंदर की सामग्री को _____ द्वारा अलग किया जाती है?
A.
colon
कोलन
B.
comma
कॉमा
C.
semicolon
सेमीकोलन
D.
hyphen
हायफ़न
Question No# :
41
out of 50
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# :
42
out of 50
<p>What will following code segment print?</p><pre>a=True<br>b=False<br>c=False<br>if not a or b:<br><span style="white-space:pre"> </span>print(1)<br>elif not a or not b and c:<br><span style="white-space:pre"> </span>print(2)<br>elif not a or b or not b and a:<br><span style="white-space:pre"> </span>print(3)<br>else:<br><span style="white-space:pre"> </span>print(4)</pre>
<p>What will following code segment print?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a=True<br>b=False<br>c=False<br>if not a or b:<br> print(1)<br>elif not a or not b and c:<br> print(2)<br>elif not a or b or not b and a:<br> print(3)<br>else:<br> print(4)</pre>
A.
1
1
B.
3
3
C.
2
2
D.
4
4
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
<p>What will be the output of the following Python code snippet?</p><pre>x = 2<br>for i in range(x):<br> x += 1<br> print (x)</pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">x = 2<br>for i in range(x):<br> x += 1<br> print (x)</pre>
A.
0 1 2 3 4 …
0 1 2 3 4 …
B.
3 4
3 4
C.
0
0
D.
error
एरर
Question No# :
45
out of 50
How many control statements python supports?
पाइथॉन कितने नियंत्रण कथनों का समर्थन करता है?
A.
3
3
B.
4
4
C.
5
5
D.
6
6
Question No# :
46
out of 50
What is range() Funciton ?
रेंज क्या है?
A.
generates a list of numbers, to iterate over with for loops
लिस्ट ऑफ नंबर्स को जनरेट करना ताकि वो फॉर लूप पर इटरेट हो ।
B.
immediate exit from the innermost loop structure.
इनरमोस्ट लूप में से इमीडियेट एग्जिट
C.
returned an iterator a sequence object.
सीक्वेंस ऑब्जेक्ट का इटरेटर रिटर्न करता है।
D.
Arranging numbers whether in ascending or descending order.
संख्याओं को आरोही या अवरोही क्रम में व्यवस्थित करना ।
Question No# :
47
out of 50
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# :
48
out of 50
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# :
49
out of 50
Which of the following is true about the break statement in loops?
लूप्स में ब्रेक स्टेटमेंट के बारे में निम्नलिखित में से कौन सा सत्य है?
A.
It skips the current iteration and goes to the next iteration.
यह प्रेजेंट इट्रेशन को स्किप कर देता है और नेक्स्ट इट्रेशन पर चला जाता है।
B.
It terminates the loop entirely
यह लूप को पूरी तरह से टर्मिनेट कर देता है।
C.
It does nothing.
यह कुछ नहीं करता.
D.
It restarts the loop.
यह लूप को रीस्टार्ट करता है।
Question No# :
50
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
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
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
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz