page-banner
Chapter-4 Operator, Expressions & Python Statement
Q36.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following code?<pre><code>a = 15 b = 6 print(a and b) print(a or b)</code></pre>
A. True True
B. False False
C. 6 15
D. 15 6
View Answer
Q37.
निम्नलिखित कोड का आउटपुट क्या होगा?<break-line><break-line>What is the output of <pre><code>print((-3)**2)</code></pre>
A. -9
B. 6
C. -6
D. 9
View Answer
Q38.
निम्नलिखित कोड सेगमेंट का आउटपुट क्या होगा?<break-line><break-line>What will following code segment print?<pre><code>a = True b = False c = False if a or b and c: print("HELLO") else: print("hello")</code></pre>
A. HELLO
B. hello
C. HellO
D. None of these
View Answer
Q39.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following?<pre><code>x = 'abcd' for i in range(x): print(i)</code></pre>
A. a b c d
B. 0 1 2 3
C. error
D. none of the mentioned
View Answer
Q40.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following code?<pre><code>a = 50 b = a = a*5 print(b)</code></pre>
A. 250
B. 10
C. 50
D. Syntax Error
View Answer