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 of the following ?</p><pre><span style="font-size: 14px;">import math<br></span><span style="font-size: 14px;">print(math.fact(5))</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.fact(5))</span></pre>
A.
120
120
B.
25
25
C.
1,2,3,4,5
1,2,3,4,5
D.
Error
Error
Question No# :
02
out of 50
<p>What will be the output of the following Python expression?</p> <pre><span class="kw1" 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:="" rgb(255,="" 119,="" 0);="" font-weight:="" bold;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">print</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="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">4.00</span><span style="" 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;"="">(</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">2.0</span><span style="" lucida="" console",="" monospace;="" text-align:="" justify;"="">+</span><span class="nu0" 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:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">2.0</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="font-size: 12.6px; letter-spacing: 0.16px;"><span class="kw1" 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,="" 119,="" 0);="" font-weight:="" bold;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">print</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;"="">4.00</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="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.0</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.0</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.
Error
Error
B.
1.0
1.0
C.
1.00
1.00
D.
1
1
Question No# :
03
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# :
04
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# :
05
out of 50
Which operator is also called as Comparative operator?
Which operator is also called as Comparative operator?
A.
Arithmetic
Arithmetic
B.
Relational
Relational
C.
Logical
Logical
D.
Assignment
Assignment
Question No# :
06
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# :
07
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# :
08
out of 50
range(3) in Python is equivalent to:
पायथन में रेंज (3) के बराबर है:
A.
range(0,3,1)
range(0,3,1)
B.
range(1,4,1)
range(1,4,1)
C.
range(1,3)
range(1,3)
D.
range(1,3,0)
range(1,3,0)
Question No# :
09
out of 50
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# :
10
out of 50
Python programming language allows to use one loop inside another loop known as ?
पायथन प्रोग्रामिंग भाषा एक लूप को दूसरे लूप के अंदर उपयोग करने की अनुमति देती है जिसे जाना जाता है?
A.
switch
switch
B.
foreach
foreach
C.
Nested Loop
Nested Loop
D.
None
कोई नहीं
Question No# :
11
out of 50
Which of the following expressions results in an error?
निम्नलिखित में से कौन सा एक्सप्रेशन में एक एरर है?
A.
float(‘10’)
float(‘10’)
B.
int(‘10’)
int(‘10’)
C.
float(’10.8’)
float(’10.8’)
D.
int(’10.8’)
int(’10.8’)
Question No# :
12
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# :
13
out of 50
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# :
14
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# :
15
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# :
16
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# :
17
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# :
18
out of 50
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# :
19
out of 50
For two objects x and y, the expression x is y will yield True, if and only if
दो वस्तुओं x और y के लिए, व्यंजक x, y है, सत्य प्राप्त करेगा, यदि और केवल यदि
A.
id(x) == id(y)
id(x) == id(y)
B.
len(x) == len(y)
len(x) == len(y)
C.
x == y
x == y
D.
all of these
all of these
Question No# :
20
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# :
21
out of 50
<p>What is the output of the following?</p><pre>m=0<br>while m<5:<br> m+=1<br> if m==3:<br> break<br> else: print(0)</pre><div><br></div>
<p>निम्नलिखित का आउटपुट क्या है?</p><pre>m=0<br>while m<5:<br> m+=1<br> if m==3:<br> break<br> else:<br>print(0)</pre>
A.
0 1 2 0
0 1 2 0
B.
0 1 2
0 1 2
C.
0 0 1 0 2
0 0 1 0 2
D.
error
error
Question No# :
22
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# :
23
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# :
24
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# :
25
out of 50
Which of the following is a valid arithmetic operator in Python ?
निम्नलिखित में से कौन पायथन में एक मान्य अंकगणित ऑपरेटर है?
A.
//
//
B.
?
?
C.
<
<
D.
and
and
Question No# :
26
out of 50
<p>What will be the output of the following Python statement?</p><pre><span style="font-size: 14px;">print(chr(ord('b')+1))</span></pre>
<p>निम्नलिखित Python स्टेटमेंट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(chr(ord('b')+1))</span></pre>
A.
a
a
B.
b
b
C.
c
c
D.
A
A
Question No# :
27
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# :
28
out of 50
What will be the output of : print((-3)**2)
इसका आउटपुट क्या होगा: print((-3)**2)
A.
-9
-9
B.
9
9
C.
6
6
D.
-6
-6
Question No# :
29
out of 50
Operators with the same precedence are evaluated in which manner?
एक ही पूर्वता वाले ऑपरेटरों का मूल्यांकन किस तरीके से किया जाता है?
A.
Left to Right
लेफ्ट टू राइट
B.
Right to Left
राइट टू लेफ्ट
C.
Can’t say
कह नहीं सकते
D.
None of the mentioned
उल्लेखित कोई नहीं
Question No# :
30
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# :
31
out of 50
_____ function convert an integer to octal string in python.
पायथन में ______ फंक्शन एक इंटीजर को ऑक्टल स्ट्रिंग में परिवर्तित करता है।
A.
unichr (x)
unichr (x)
B.
oct (x)
oct (x)
C.
chr(x)
chr(x)
D.
None of the these
इनमें से कोई नहीं
Question No# :
32
out of 50
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# :
33
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# :
34
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">i = 2<br></span><span style="font-size: 14px;">while True:<br></span><span style="font-size: 14px;"> if i%3 == 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 = 2<br></span><span style="font-size: 14px;">while True:<br></span><span style="font-size: 14px;"> if i%3 == 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.
2 4 6 8 10 …
2 4 6 8 10 …
B.
2 4
2 4
C.
2 3
2 3
D.
error
एरर
Question No# :
35
out of 50
Which one of these is floor division?
इनमें से कौन सा फ्लोर डिवीज़न है?
A.
/
/
B.
//
//
C.
%
%
D.
None of the mentioned
उल्लेखित कोई नहीं
Question No# :
36
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# :
37
out of 50
What is the return value of trunc()?
trunc() फंक्शन क्या रिटर्न करेगा ?
A.
int
int
B.
bool
bool
C.
float
float
D.
None
None
Question No# :
38
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 = "abcdef" i = "a" while i in x: print('i', end = " ")</span></pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre>x = "abcdef"<br>i = "a"<br>while i in x:<br> print('i', end = " ")</pre><div><br></div>
A.
no output
नो आउटपुट
B.
i i i i i i … infinite Time
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# :
39
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# :
40
out of 50
What will be the result of the expression 5 and 10?
व्यंजक 5 और 10 का परिणाम क्या होगा?
A.
5
5
B.
1
1
C.
10
10
D.
0
0
Question No# :
41
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# :
42
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# :
43
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# :
44
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# :
45
out of 50
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# :
46
out of 50
Which of the following is true for nested loops in Python?
पायथन में नेस्टेड लूप के लिए निम्नलिखित में से कौन सा सत्य है?
A.
The outer loop must run fewer times than the inner loop.
आउटर लूप को इनर लूप की तुलना में कम बार रन करना चाहिए।
B.
Only for loops can be nested.
केवल लूप के लिए नेस्ट किया जा सकता है।
C.
Both for and while loops can be nested.
for और while दोनों लूप को नेस्ट किया जा सकता है।
D.
The inner loop runs only once for each iteration of the outer loop.
इनर लूप आउटर लूप के प्रत्येक इट्रेशन के लिए केवल एक बार रन करता है।
Question No# :
47
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# :
48
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# :
49
out of 50
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# :
50
out of 50
Which one of the following has the same precedence level?
निम्नलिखित में से किसका समान प्रेसडेंस लेवल है?
A.
Addition and Subtraction
एडिशन और सब्ट्रैक्शन
B.
Multiplication, Division and Addition
मल्टीप्लिकेशन,डिवीज़न और एडिशन
C.
Multiplication, Division, Addition and Subtraction
मल्टीप्लिकेशन,डिवीज़न एडिशन और सब्ट्रैक्शन
D.
Addition and Multiplication
एडिशन और मल्टीप्लिकेशन
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