page-banner
Chapter-6 (Part-1) Python Function
Q31.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<pre><code>def say(message, times = 1): print(message * times) say('Hello') say('World', 5)</code></pre>
A. Hello<break-line>WorldWorldWorldWorldWorld
B. Hello<break-line>HelloHelloHelloHelloHello
C. Hello<break-line>World,World,World,World,World
D. Hello<break-line>World5
View Answer
Q32.
निम्नलिखित में कौन सा बिल्ट-इन फंक्शन नहीं है |<break-line><break-line>Which of the following is not the built-in function?
A. input()
B. tuple()
C. print()
D. dictionary()
View Answer
Q33.
निम्नलिखित कोड से कौन सा नंबर कभी भी जनरेट नहीं होगा |<break-line><break-line>Which of the following number can never be generated by the following code:<pre><code>random.randrange(0, 50)</code></pre>
B. 1
C. 49
D. 50
View Answer
Q34.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा |<break-line><break-line>What will be the output of the following Python code?<pre><code>from math import * ceil(3.4)</code></pre>
A. 4
B. 3
C. 3.5
D. None of these
View Answer
Q35.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा |<break-line><break-line>What will be the output of the following Python code?<pre><code>from math import factorial print(math.sqrt(25))</code></pre>
A. 5.0
B. Nothing is printed
C. Error, method sqrt doesn’t exist in math module
D. Error, the statement should be: print(sqrt(25))
View Answer