page-banner
Chapter-6 (Part-2) Python Function
Q21.
निम्नलिखित में से कौन सा फ़ंक्शन पायथन में एक बिल्ट-इन फ़ंक्शन है<break-line><break-line>Which of the following functions is a built-in function in Python
A. factorial()
B. print()
C. seed()
D. sqrt()
View Answer
Q22.
निम्नलिखित कोड स्निपेट का आउटपुट क्या है?<break-line><break-line>What is the output of the following code snippet?<pre><code>print([i.lower() for i in "HELLO"])</code></pre>
A. hello
B. [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
C. hel
D. HELLO
View Answer
Q23.
निम्नलिखित पाइथन कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following Python code?<pre><code>Y = [2,5J, 6] Y.sort()</code></pre>
A. [2, 6, 5J]
B. [5J, 2, 6]
C. [6, 5J, 2]
D. Error
View Answer
Q24.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<pre><code>def s(n1): print(n1) n1 = n1 + 2 n2 = 4 s(n2) print(n2)</code></pre>
A. 6 4
B. 4 6
C. 4 4
D. 6 6
View Answer
Q25.
निम्नलिखित पाइथन कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following Python code?<pre><code>def display(b, n): while n>0: print(b, end='') n = n-1 display('z', 3)</code></pre>
A. zzz
B. zz
C. Infinite Loop
D. An exception is thrown
View Answer