page-banner
Python M3-R5.1 MCQs SET-8
Q6.
निम्नलिखित कोड का परिणाम क्या है ?<break-line><break-line>What is the output of the following code ?<pre><code>y = "I love Python" y[3] = 's' print(y)</code></pre>
A. snow
B. snow world
C. Error
D. snos world
View Answer
Q7.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line>What is the output of the following code ?<break-line><pre><code>min(max(False,-3,-4), 2,7)</code></pre>
A. -4
B. -3
C. 2
D. False
View Answer
Q8.
निम्नलिखित का आउटपुट क्या है?<break-line><break-line>What is the output of the following code ?<pre><code>t=(2, 3, 4, 3.5, 5, 6) print(sum(t) + t.count(2))</code></pre>
A. 24
B. 23.5
C. 24.5
D. 25.5
View Answer
Q9.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following code ?<pre><code>def sayHello(): print("Hello World!") sayHello() sayHello()</code></pre>
A. Hello World! Hello World!
B. „Hello World!‟„Hello World!‟
C. Hello Hello
D. None of the above
View Answer
Q10.
निम्नलिखित में से कौन सा पायथन में फ़ंक्शन का उपयोग है?<break-line><break-line>Which of the following is the use of function in Python?
A. Functions are reusable pieces of programs
B. Functions don’t provide better modularity for your application
C. You can’t also create your own functions
D. All of the mentioned
View Answer