page-banner
Python M3-R5.1 MCQs SET-6
Q21.
निम्नलिखित का आउटपुट क्या है?<break-line><break-line>What is the output of the following ?<break-line><break-line><pre><code>i = 2 while True: if i%3 == 0: break print(i, end=" " ) i += 2</code></pre>
A. 2 4 6 8 10 ...
B. 2 4
C. 2 3
D. Error
View Answer
Q22.
निम्नलिखित कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of following code ?<break-line><break-line><pre><code>x = ['XX', 'YY'] for i in x: i.lower() print(x)</code></pre>
A. ['XX', 'YY']
B. ['xx', 'yy']
C. [XX, YY]
D. None of the above
View Answer
Q23.
संरचनात्मक प्रोग्रामिंग में टॉप-डाउन दृष्टिकोण का पालन किया जाता है।<break-line><break-line>Top-down approach is followed in structural programming.
A. True
B. False
C. Can’t say
D. May be
View Answer
Q24.
निम्नलिखित में से कौन सा एक फंक्शन को कॉल करने का सही तरीका है?<break-line><break-line>Which one of the following is the correct way of calling a function?
A. function_name()
B. call function_name()
C. ret function_name()
D. function function_name()
View Answer
Q25.
यदि किसी फंक्शन में रिटर्न स्टेटमेंट नहीं है, तो निम्नलिखित में से कौन सा फंक्शन रिटर्न करता है?<break-line><break-line>If a function does not have a return statement, which of the following does the function return?
A. int
B. null
C. An exception is thrown without return
D. None
View Answer