page-banner
Chapter-6 (Part-1) Python Function
Q21.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा<break-line><break-line>What will be the output of the following Python code?<pre><code>def C2F(c): return c*9/5+32 print(C2F(100)) print(C2F(0))</code></pre>
A. 212.0 32.0
B. 314 24
C. 567 98
D. None of the above
View Answer
Q22.
निम्नलिखित स्टेटमेंट में सबसे लास्ट में कौन स्टेटमेंट एक्सीक्यूट होगा<break-line><break-line>Which of the following statement will execute in last?<pre><code>def s(n1): #Statement 1 print(n1) #Statement 2 n2=4 #Statement 3 s(n2) #Statement 4</code></pre>
A. Statement 1
B. Statement 2
C. Statement 3
D. Statement 4
View Answer
Q23.
निम्नलिखित का आउटपुट क्या होगा<break-line><break-line>What is the output of the following?<pre><code>x = 'abcd' for i in range(len(x)): i.upper() print(x)</code></pre>
A. a b c d
B. 0 1 2 3
C. error
D. none of these
View Answer
Q24.
निचे लिखे प्रोग्राम का आउटपुट क्या होगा ?<break-line><break-line>What is the output of the below program?<pre><code>def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(3, 7) func(25, c=24) func(c=50, a=100)</code></pre>
A. a is 7 and b is 3 and c is 10<break-line>a is 25 and b is 5 and c is 24<break-line>a is 5 and b is 100 and c is 50
B. a is 3 and b is 7 and c is 10<break-line>a is 5 and b is 25 and c is 24<break-line>a is 50 and b is 100 and c is 5
C. a is 3 and b is 7 and c is 10<break-line>a is 25 and b is 5 and c is 24<break-line>a is 100 and b is 5 and c is 50
D. None of these
View Answer
Q25.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा<break-line><break-line>What will be the output of the following Python code?<pre><code>x = 50 def func(x): print('x is', x) x = 2 print('Changed local x to', x) func(x) print('x is now', x)</code></pre>
A. x is 50<break-line>Changed local x to 2<break-line>x is now 50
B. x is 50<break-line>Changed local x to 2<break-line>x is now 2
C. x is 50<break-line>Changed local x to 2<break-line>x is now 100
D. None of these
View Answer