page-banner
Chapter-6 (Part-2) Python Function
Q11.
प्रोग्रामर की आवश्यकता के अनुसार किसी कार्य को प्राप्त करने के लिए परिभाषित फ़ंक्शन को ………………… कहा जाता है।

Function defined to achieve some task as per the programmer’s requirement is called a …………………….
A. user defined function
B. library function
C. built in functions
D. All of the above
View Answer
Q12.
निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following?
def iq(a, b):
    if a == 0:
        return b
    else:
        return iq(a - 1, a + b)

print(iq(3, 6))
A. 9
B. 10
C. 11
D. 12
View Answer
Q13.
निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following?
example = "helle"
example.rfind("e")
A. 1
B. 2
C. 4
D. 5
View Answer
Q14.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
from math import *
floor(11.7)
A. 12
B. 11
C. 11.0
D. None of these
View Answer
Q15.
पायथन …………… नामक निर्माण का उपयोग करके रनटाइम पर अज्ञात कार्यों के निर्माण का समर्थन करता है।

Python supports the creation of anonymous functions at runtime, using a construct called ……………
A. pi
B. anonymous
C. lambda
D. None of these
View Answer

Create Account