page-banner
Chapter-4 Operator, Expressions & Python Statement
Q56.
निम्नलिखित स्टेटमेंट का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>x = 2 if x < 5: print(x) else: pass</code></pre>
A. 2 3 4
B. 1 2 3 4
C. 2
D. None of these
View Answer
Q57.
Python में नेस्टेड if-else की अनुमति है।<break-line><break-line>nested if-else are allowed in Python.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q58.
स्टेटमेंट का आउटपुट क्या है:<break-line><break-line>What is the output of the expression:<pre><code>3*1**3</code></pre>
A. 27
B. 9
C. 3
D. 1
View Answer
Q59.
निम्नलिखित प्रोग्राम का आउटपुट क्या है<break-line><break-line>What is the output of the following program<pre><code>i=0 while i < 3: print(i) i+=1 else: print(0)</code></pre>
A. 0 1 2 3 0
B. 0 1 2 0
C. 0 1 2
D. Error
View Answer
Q60.
निम्नलिखित कोड सेगमेंट क्या प्रिंट करेगा ?<break-line><break-line>What will following code segment print ?<pre><code>a = True b = False c = False if not a or b: print(1) elif not a or not b and c: print (2) elif not a or b or not b and a: print (3) else: print (4)</code></pre>
A. 1
B. 3
C. 2
D. 4
View Answer