page-banner
Python M3-R5.1 MCQs SET-13
Q11.
निम्नलिखित का आउटपुट क्या होगा?

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
Q12.
सिंगल लाइन कमेंट लिखने के लिए किस सिंबल का प्रयोग किया जाता है?

Which symbol is used to write single line comment ?
A. *
B. #
C. /
D. ?
View Answer
Q13.
एक पायथन मॉड्यूल __________ फाइल एक्सटेंशन वाली एक फाइल है जिसमें वैध पायथन कोड होता है।

A Python module is a file with the __________ file extension that contains valid Python code.
A. .pym
B. .pymodule
C. .module
D. .py
View Answer
Q14.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?

What will following code segment print ?
a = True
b = False
c = False
if not a or b:
    print(1)
elif not a or not b and c:
    print (2)
elif not a or b or not b and a:
    print (3)
else:
    print (4)
A. 1
B. 3
C. 2
D. 4
View Answer
Q15.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
x = 2
if x < 5:
    print(x)
else:
    pass
A. 2 3 4
B. 1 2 3 4
C. 2
D. None of these
View Answer

Create Account