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
<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# :
03
out of 50
Which of the following statement(s) will terminate only the current pass of the loop and proceed with the next iteration of the loop?
निम्नलिखित में से कौन सा कथन केवल लूप के वर्तमान पास को समाप्त करेगा और लूप के अगले पुनरावृत्ति के साथ आगे बढ़ेगा?
A.
pass
pass
B.
break
break
C.
continue
continue
D.
goto
goto
Question No# :
04
out of 50
which one is a mathematical function?
कौन सा एक गणितीय फंक्शन है?
A.
sqrt()
sqrt()
B.
add()
add()
C.
rhombus()
rhombus()
D.
home()
home()
Question No# :
05
out of 50
Which function is used to generate a sequence of numbers in Python loops?
पायथन लूप्स में नंबर्स का सीक्वेंस जनरेट करने के लिए किस फ़ंक्शन का यूज़ किया जाता है?
A.
sequence()
sequence()
B.
range()
range()
C.
list()
list()
D.
loop()
loop()
Question No# :
06
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# :
07
out of 50
<p>What is the output of the following code?</p><pre>count=0<br>while count<3:<br><span style="white-space: normal;"><span style="white-space:pre"> </span>print(count,end=" ")<br></span><span style="white-space: normal;"><span style="white-space:pre"> </span>count+=1</span></pre><div><br></div>
निम्नलिखित कोड का परिणाम क्या है?
A.
0 1 2
0 1 2
B.
1 2 3
1 2 3
C.
0 1 2 3
0 1 2 3
D.
Error
Error
Question No# :
08
out of 50
Which of the following is a valid arithmetic operator in Python ?
निम्नलिखित में से कौन पायथन में एक मान्य अंकगणित ऑपरेटर है?
A.
//
//
B.
?
?
C.
<
<
D.
and
and
Question No# :
09
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# :
10
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# :
11
out of 50
Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?
A.
%
%
B.
/
/
C.
//
//
D.
||
||
Question No# :
12
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# :
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 translator is used to convert assembly language into machine language?
असेंबली भाषा को मशीन भाषा में को बदलने के लिए किस अनुवादक का उपयोग किया जाता है
A.
Compiler
कम्पाइलर
B.
Interpreter
इंटरप्रेटर
C.
Assembler
असेम्बलर
D.
None of these
इनमे से कोई नहीं
Question No# :
15
out of 50
Which Python built in function returns the unique number assigned to an object?
कौन सा पायथन बिल्ट-इन फ़ंक्शन किसी ऑब्जेक्ट को निर्दिष्ट अद्वितीय संख्या देता है?
A.
identity( )
identity( )
B.
id( )
id( )
C.
refnum( )
refnum( )
D.
ref( )
ref( )
Question No# :
16
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# :
17
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# :
18
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# :
19
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# :
20
out of 50
<p>What will the following code output? </p><pre>a,b,c=3,5,6 <br>b,c,a=a+1,b+2,c+3 <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+1,b+2,c+3 <br>print(a,” ”,b,” ”,c)</pre>
A.
7 9 4
7 9 4
B.
4 7 9
4 7 9
C.
9 4 7
9 4 7
D.
4 7 9
4 7 9
Question No# :
21
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# :
22
out of 50
The .......... construct allows to choose statements to be executed, depending upon the result of a condition.
........ निर्माण एक शर्त के परिणाम के आधार पर निष्पादित किए जाने वाले कथनों को चुनने की अनुमति देता है।
A.
selection
selection
B.
repetition
repetition
C.
sequence
sequence
D.
flow
flow
Question No# :
23
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# :
24
out of 50
Function range(3) will yield an iteratable sequence like
फ़ंक्शन range(3)) एक पुनरावृत्त अनुक्रम उत्पन्न करेगा जैसे
A.
[0, 1, 2]
[0, 1, 2]
B.
[0, 1, 2, 3]
[0, 1, 2, 3]
C.
[1, 2, 3]
[1, 2, 3]
D.
[0, 2]
[0, 2]
Question No# :
25
out of 50
Which of the following is the correct syntax for a conditional statement in Python?
पायथन में कंडिशनल स्टेट्मेंट के लिए निम्नलिखित में से कौन सा सही सिंटेक्स है?
A.
if (x > 0):
if (x > 0):
B.
if x > 0
if x > 0
C.
if x > 0 then:
if x > 0 then:
D.
Both A and B
ए और बी दोनों
Question No# :
26
out of 50
Which is the most comfortable loop?
सबसे सरल लूप कौन सा है?
A.
do..while
do..while
B.
while
while
C.
for
for
D.
if..elif
if..elif
Question No# :
27
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# :
28
out of 50
What will be the result of the following expression in Python “2 ** 3 + 5 ** 2”?
पायथन में निम्नलिखित अभिव्यक्ति "2 ** 3 + 5 ** 2" का परिणाम क्या होगा?
A.
65536
65536
B.
33
33
C.
169
169
D.
None of the above
None of the above
Question No# :
29
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# :
30
out of 50
What will the following code output? print(‘55’+’5’)
निम्नलिखित कोड आउटपुट क्या होगा? print(‘55’+’5’)
A.
55
55
B.
60
60
C.
555
555
D.
Error
एरर
Question No# :
31
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# :
32
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# :
33
out of 50
Which symbol is used for bitwise XOR operator
बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?
A.
|
|
B.
&
&
C.
^
^
D.
!
!
Question No# :
34
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# :
35
out of 50
<p>What will the following code output? </p><pre>a=5 <br>a*=10 <br>print(a)</pre>
<p>निम्नलिखित कोड आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a=5 <br>a*=10 <br>print(a)</pre>
A.
5
5
B.
10
10
C.
50
50
D.
Error
एरर
Question No# :
36
out of 50
Which statement can be use to swap the values of an and b
a और b के मानों को स्वैप करने के लिए किस कथन का उपयोग किया जा सकता है?
A.
a=b,b=a
a=b,b=a
B.
a,b=b,a
a,b=b,a
C.
a=b;b=a
a=b;b=a
D.
a=b and b=a
a=b and b=a
Question No# :
37
out of 50
In a Python program, a control structure:
एक पायथन कार्यक्रम में, एक नियंत्रण संरचना:
A.
directs the order of execution of the statements in the program
directs the order of execution of the statements in the program
B.
dictates what happens before the program starts and after it terminates
dictates what happens before the program starts and after it terminates
C.
defines program-specific data structures
defines program-specific data structures
D.
manages the input and output of control characters
manages the input and output of control characters
Question No# :
38
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# :
39
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# :
40
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# :
41
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# :
42
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# :
43
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# :
44
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# :
45
out of 50
Which of the following operators has the lowest precedence ?
निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे कम है?
A.
not
not
B.
%
%
C.
and
and
D.
+
+
Question No# :
46
out of 50
Which of the following function returns the ASCII/Unicode value character?
निम्नलिखित में कौन सा फक्शन ASCII/Unicode वैल्यू कैरेक्टर रिटर्न करता है?
A.
asc()
asc()
B.
ord()
ord()
C.
asci()
asci()
D.
ascii()
ascii()
Question No# :
47
out of 50
In the Python statement x = a + 5 - b : a and b are
पायथन कथन में x = a + 5 - b : a और b हैं
A.
Operands
Operands
B.
Expression
Expression
C.
operators
operators
D.
Equation
Equation
Question No# :
48
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# :
49
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# :
50
out of 50
Changing one data type to another is known as
एक डेटा प्रकार को दूसरे में बदलना कहलाता है
A.
Type Casting
Type Casting
B.
Data Transformation
Data Transformation
C.
Type modification
Type modification
D.
Variable Shifting
Variable Shifting
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