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 does the following code will print ?</p><pre><span style="font-size: 14px;">x=5<br></span><span style="font-size: 14px;">if x>3:<br></span><span style="font-size: 14px;"> print("Hello")</span></pre><div><br></div>
<p>म्नलिखित कोड क्या प्रिंट करेगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x=5<br></span><span style="font-size: 14px;">if x>3:<br></span><span style="font-size: 14px;"> print("Hello")</span></pre>
A.
Hello
Hello
B.
Hello Hello
Hello Hello
C.
nothing
nothing
D.
Hello Hello Hello Hello Hello
Hello Hello Hello Hello Hello
Question No# :
02
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# :
03
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# :
04
out of 50
The contents inside the "for loop" are separated by?
लूप के अंदर की सामग्री को _____ द्वारा अलग किया जाती है?
A.
colon
कोलन
B.
comma
कॉमा
C.
semicolon
सेमीकोलन
D.
hyphen
हायफ़न
Question No# :
05
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# :
06
out of 50
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
A.
*
*
B.
**
**
C.
<
<
D.
==
==
Question No# :
07
out of 50
What is 'pass' in python?
पायथन में 'pass' क्या है?
A.
No Operation
No Operation
B.
No Action
No Action
C.
Null Statement
Null Statement
D.
Placeholder
Placeholder
Question No# :
08
out of 50
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# :
09
out of 50
<p>What will be the output of the following Python code?</p><pre>for i in range(5):<br> if i == 5:<br> break<br> else:<br> print(i)<br>else:<br> print("Here")</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">for i in range(5):<br> if i == 5:<br> break<br> else:<br> print(i)<br>else:<br> print("Here")</pre>
A.
0 1 2 3 4 Here
0 1 2 3 4 Here
B.
0 1 2 3 4 5 Here
0 1 2 3 4 5 Here
C.
0 1 2 3 4
0 1 2 3 4
D.
1 2 3 4 5
1 2 3 4 5
Question No# :
10
out of 50
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
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# :
12
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# :
13
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# :
14
out of 50
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
A.
+
+
B.
-
-
C.
*
*
D.
( )
( )
Question No# :
15
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# :
16
out of 50
Which is the correct operator for power(x,y)?
Which is the correct operator for power(x,y)?
A.
X^y
X^y
B.
X**y
X**y
C.
X^^y
X^^y
D.
None of the mentioned
None of the mentioned
Question No# :
17
out of 50
Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?
A.
%
%
B.
/
/
C.
//
//
D.
||
||
Question No# :
18
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# :
19
out of 50
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# :
20
out of 50
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# :
21
out of 50
<p>What will be the value of X in the following Python expression?</p> <pre><pre style="font-size: 12.6px; letter-spacing: 0.16px;"><span lucida="" console",="" monospace;="" text-align:="" justify;"="">x </span><span class="sy0" 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:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">=</span><span lucida="" console",="" monospace;="" text-align:="" justify;"=""> </span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">2</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="">+</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">9</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="">*</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><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">3</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="">*</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">12</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;"="">-</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">8</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;"="">/</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">10</span></pre></pre>
<p>निम्नलिखित पायथन एक्सप्रेशन में X की वैल्यू क्या होगी ?</p><pre style="font-size: 12.6px; letter-spacing: 0.16px;"><span lucida="" console",="" monospace;="" text-align:="" justify;"="">x </span><span class="sy0" 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:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">=</span><span lucida="" console",="" monospace;="" text-align:="" justify;"=""> </span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">2</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="">+</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">9</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="">*</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><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">3</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="">*</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">12</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;"="">-</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">8</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;"="">/</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">10</span></pre>
A.
30.0
30.0
B.
30.8
30.8
C.
28.4
28.4
D.
27.2
27.2
Question No# :
22
out of 50
<p>What will be the value of the following Python expression?</p><pre><span style="font-size: 14px;">print(float(4+int(2.39)%2))</span></pre>
<p>निम्नलिखित पायथन एक्सप्रेशन की वैल्यू क्या होगी ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(float(4+int(2.39)%2))</span></pre>
A.
5.0
5.0
B.
5
5
C.
4.0
4.0
D.
4
4
Question No# :
23
out of 50
What will the following code output? print(1==1.0)
निम्नलिखित कोड आउटपुट क्या होगा? print(1==1.0)
A.
True
True
B.
False
False
C.
1
1
D.
Error
Error
Question No# :
24
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# :
25
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# :
26
out of 50
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# :
27
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# :
28
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;">while i in x:<br></span><span style="font-size: 14px;"> print(i, end=" ")</span></pre>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</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;">while i in x:<br></span><span style="font-size: 14px;"> print(i, end=" ")</span></pre>
A.
a b c d e f
a b c d e f
B.
abcdef
abcdef
C.
i i i i i i …
i i i i i i …
D.
error
error
Question No# :
29
out of 50
Which of the following types of loops are not supported in Python?
निम्नलिखित में से किस प्रकार के लूप पायथन में सपोर्ट नहीं करता हैं?
A.
for
for
B.
While
While
C.
do-while
do-while
D.
None of these
इनमें से कोई नहीं
Question No# :
30
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# :
31
out of 50
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# :
32
out of 50
which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :
A.
#
#
B.
=
=
C.
/
/
D.
&
&
Question No# :
33
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# :
34
out of 50
<p>What will be the output after the following statements?</p><pre>for i in range(1,6):<br> print(i, end='')<br> if i == 3:<br> break</pre>
<p>निम्नलिखित स्टेटमेंट के बाद आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">for i in range(1,6):<br> print(i, end='')<br> if i == 3:<br> break</pre>
A.
1 2
1 2
B.
1 2 3
1 2 3
C.
1 2 3 4
1 2 3 4
D.
1 2 3 4 5
1 2 3 4 5
Question No# :
35
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
Question No# :
36
out of 50
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# :
37
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# :
38
out of 50
<p>What is the output of the following program:</p><pre><span style="font-size: 14px;">i = 0<br></span><span style="font-size: 14px;">while i < 3:<br></span><span style="font-size: 14px;"> print (i)<br></span><span style="font-size: 14px;"> i=i+1<br></span><span style="font-size: 14px;"> print (i+1)</span></pre><div><br></div>
<p>निम्नलिखित प्रोग्राम का आउटपुट क्या है:</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">i = 0<br></span><span style="font-size: 14px;">while i < 3:<br></span><span style="font-size: 14px;"> print (i)<br></span><span style="font-size: 14px;"> i=i+1<br></span><span style="font-size: 14px;"> print (i+1)</span></pre>
A.
0 2 1 3 2 4
0 2 1 3 2 4
B.
0 1 2 3 4 5
0 1 2 3 4 5
C.
Infinite loop
Infinite loop
D.
0 1 2 3
0 1 2 3
Question No# :
39
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# :
40
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# :
41
out of 50
Which operator is also called as Conditional operator?
Which operator is also called as Conditional operator?
A.
Ternary
Ternary
B.
Relational
Relational
C.
Logical
Logical
D.
Assignment
Assignment
Question No# :
42
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# :
43
out of 50
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# :
44
out of 50
What happens if the condition in a while loop is initially False?
यदि थोड़ी देर के लूप में स्थिति शुरू में गलत हो तो क्या होगा?
A.
The loop runs indefinitely.
लूप अनिश्चित काल तक रन करता है.
B.
The loop executes once before terminating.
लूप टर्मिनेट होने से पहले एक बार एक्सक्युट्स होता है।
C.
The loop does not execute.
लूप एक्सक्यूट नहीं होता
D.
It raises an error
यह एक एरर उत्पन्न करता है
Question No# :
45
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# :
46
out of 50
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# :
47
out of 50
What does ~~~~~~5 evaluate to?
~~~~~~5 का मूल्यांकन किससे होता है?
A.
+5
+5
B.
-11
-11
C.
+11
+11
D.
-5
-5
Question No# :
48
out of 50
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# :
49
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# :
50
out of 50
<p>What will be the output of the following Python code?</p><pre>for i in range(2.0):<br> print(i)</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">for i in range(2.0):<br> print(i)</pre>
A.
0.0 1.0
0.0 1.0
B.
0 1
0 1
C.
error
एरर
D.
none of the mentioned
उल्लेखित कोई नहीं
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