page-banner
Chapter-6 (Part-1) Python Function
Q31.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
def say(message, times = 1):
    print(message * times)

say('Hello')
say('World', 5)
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.
निम्नलिखित में कौन सा बिल्ट-इन फंक्शन नहीं है |

Which of the following is not the built-in function?
A. input()
B. tuple()
C. print()
D. dictionary()
View Answer
Q33.
निम्नलिखित कोड से कौन सा नंबर कभी भी जनरेट नहीं होगा |

Which of the following number can never be generated by the following code:
random.randrange(0, 50)
B. 1
C. 49
D. 50
View Answer
Q34.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा |

What will be the output of the following Python code?
from math import *
ceil(3.4)
A. 4
B. 3
C. 3.5
D. None of these
View Answer
Q35.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा |

What will be the output of the following Python code?
from math import factorial
print(math.sqrt(25))
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

Create Account