page-banner
Chapter-4 Operator, Expressions & Python Statement
Q1.
पायथन में प्राथमिकता का क्रम क्या है?<break-line><break-line>What is the order of precedence in Python?<break-line>i) Parentheses<break-line>ii) Exponential<break-line>iii) Multiplication<break-line>iv) Division<break-line>v) Addition<break-line>vi) Subtraction
A. ii,i,iii,iv,v,vi
B. ii,i,iv,iii,v,vi
C. i,ii,iii,iv,vi,v
D. i,ii,iii,iv,v,vi
View Answer
Q2.
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following code snippet?<pre><code>print(2**3 + (5 + 6)**(1 + 1))</code></pre>
A. 129
B. 8
C. 121
D. None of these
View Answer
Q3.
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following code snippet?<pre><code>count = 0 while(True): if count % 3 == 0: print(count, end = " ") if(count > 15): break count += 1</code></pre>
A. 0 1 2 …………….15
B. Infinite Loop
C. 0 3 6 9 12 15
D. 0 3 6 9 12
View Answer
Q4.
निम्नलिखित कोड सेगमेंट क्या प्रिंट करेगा?<break-line><break-line>What will following code segment print?<pre><code>if True or True: if False and True or False: print('A') elif False and False or True and True: print('B') else: print('C') else: print('D')</code></pre>
A. A
B. B
C. C
D. D
View Answer
Q5.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<pre><code>x = (i for i in range(3)) for i in x: print(i)</code></pre>
A. 0 1 2
B. error
C. 0 1 2 0 1 2
D. none of the mentioned
View Answer