page-banner
Python M3-R5.1 MCQs SET-13
Q11.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following?<pre><code>def iq(a,b): if(a==0): return b else: return iq(a-1,a+b) print(iq(3,6))</code></pre>
A. 9
B. 10
C. 11
D. 12
View Answer
Q12.
सिंगल लाइन कमेंट लिखने के लिए किस सिंबल का प्रयोग किया जाता है?<break-line><break-line>Which symbol is used to write single line comment ?
A. *
B. #
C. /
D. ?
View Answer
Q13.
एक पायथन मॉड्यूल __________ फाइल एक्सटेंशन वाली एक फाइल है जिसमें वैध पायथन कोड होता है।<break-line><break-line>A Python module is a file with the __________ file extension that contains valid Python code.
A. .pym
B. .pymodule
C. .module
D. .py
View Answer
Q14.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?<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
Q15.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?<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