page-banner
Chapter-6 (Part-2) Python Function
Q6.
निम्नलिखित फ़ंक्शन का रिटर्न प्रकार क्या है?<break-line><break-line>What is the return type of following function?<pre><code>def func1(): return 'mnp', 22</code></pre>
A. List
B. dictionary
C. string
D. tuple
View Answer
Q7.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>def fun(a, b=6): a = a + b print(a) fun(5, 4)</code></pre>
A. 11
B. 9
C. 5
D. 4
View Answer
Q8.
निम्नलिखित पाइथन कोड का परिणाम क्या है?<break-line><break-line>What will be the output of the following Python code?<pre><code>from math import pow print(math.pow(2,3))</code></pre>
A. Nothing is printed
B. 8
C. Error, method pow doesn’t exist in math module
D. Error, the statement should be: print(pow(2, 3))
View Answer
Q9.
एक एल्गोरिदम जो स्वयं को प्रत्यक्ष या अप्रत्यक्ष रूप से कॉल करता है, उसे कहा जाता है।<break-line><break-line>An algorithm that calls itself directly or indirectly is called as.………
A. Sub Function
B. Recursion
C. Reverse Polish Notation
D. Traversal Algorithm
View Answer
Q10.
randint() फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल इम्पोर्ट किया जाना है?<break-line><break-line>Which module is to be imported for using randint() function?
A. random
B. randrange
C. randomrange
D. rand
View Answer