page-banner
Chapter-4 Operator, Expressions & Python Statement
Q6.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<pre><code>x = 'GyanXp' 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
Q7.
इस फ़ंक्शन के लिए निम्न में से किसका सही मूल्यांकन किया गया है?<break-line><break-line>Which of the following is correctly evaluated for this function?<pre><code>pow(x,y,z)</code></pre>
A. (x**y) / z
B. (x / y) * z
C. (x**y) % z
D. (x / y) / z
View Answer
Q8.
इस प्रोग्राम का आउटपुट क्या होगा?<break-line><break-line>What will be the output of this program?<pre><code>print(int(6 == 6.0) * 3 + 4 % 5)</code></pre>
A. 22
B. 18
C. 20
D. 7
View Answer
Q9.
इस प्रोग्राम का आउटपुट क्या होगा?<break-line><break-line>What will be the output of this program?<pre><code>a = 0 i = 1 while(a < 3): if i < 4: i = a * i + 5 a = a + 1 print(i)</code></pre>
A. 12
B. 4
C. 11
D. 5
View Answer
Q10.
यह प्रोग्राम कितनी बार लूप चलाएगा?<break-line><break-line>How many times will this program run the loop?<pre><code>a = 2 while(a > -100): a = a - 1 print(a)</code></pre>
A. Infinite
B. 102
C. 2
D. 1
View Answer