page-banner
Chapter-6 (Part-2) Python Function
Q26.
फ़ंक्शन द्वारा .......... इंटरवल का मान जनरेट किया जाएगा<break-line><break-line>What is the interval of the value generated by the function<pre><code>import random random.random()</code></pre>
A. (0,1)
B. (0,1]
C. [0,1]
D. [0,1)
View Answer
Q27.
निम्नलिखित पायथन कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following Python code?<pre><code>def power(x, y=2): r = 1 for I in range(y): r = r * x return r print(power(3)) print(power(3, 3))</code></pre>
A. 212 32
B. 9 27
C. 567 98
D. None of these
View Answer
Q28.
निम्नलिखित में से कौन से पायथन में वैध स्ट्रिंग मैनिपुलेशन फ़ंक्शन हैं?<break-line><break-line>Which of the following are valid string manipulation functions in Python?
A. count()
B. upper()
C. strip()
D. All of these
View Answer
Q29.
निम्नलिखित में से कौन सा त्रुटि के बिना चलेगा?<break-line><break-line>Which of the following will run without errors?
A. round(45.8)
B. round(6352.898,2,5)
C. round()
D. round(7463.123,2,1)
View Answer
Q30.
निम्नलिखित स्टेटमेंट के बाद आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = 18 def nop(): print(m) nop()</code></pre>
A. m
B. nop
C. 18
D. Mnop
View Answer