page-banner
Python M3-R5.1 MCQs SET-12
Q6.
किसी समस्या को चरण दर चरण हल करने के तरीके को __________ के रूप में जाना जाता है।<break-line><break-line>The way for solving a problem step by step is known as __________.
A. Design
B. Planning
C. Algorithm
D. Execution
View Answer
Q7.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code ?<pre><code>def calc(x): r=2*x**2 return r print(calc(5))</code></pre>
A. Error
B. 50
C. 100
D. 20
View Answer
Q8.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code ?<pre><code>def printMax(a, b): if a > b: print(a, 'is maximum') elif a == b: print(a, 'is equal to', b) else: print(b, 'is maximum') printMax(3, 4)</code></pre>
A. 3
B. 4
C. 4 is maximum
D. None of the mentioned
View Answer
Q9.
निम्नलिखित expression किस मान का मूल्यांकन करता है?<break-line><break-line>What value does the following expression evaluate to ?<pre><code>x = 5 while x < 10: print(x, end='')</code></pre>
A. Closed loop
B. One time loop
C. Infinite loop
D. Evergreen loop
View Answer
Q10.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code ?<pre><code>x = 50 def func(x): x = 2 func(x) print('x is now', x)</code></pre>
A. x is now 50
B. x is now 2
C. x is now 100
D. Error
View Answer