page-banner
Chapter-6 (Part-2) Python Function
Q21.
निम्नलिखित में से कौन सा फ़ंक्शन पायथन में एक बिल्ट-इन फ़ंक्शन है

Which of the following functions is a built-in function in Python
A. factorial()
B. print()
C. seed()
D. sqrt()
View Answer
Q22.
निम्नलिखित कोड स्निपेट का आउटपुट क्या है?

What is the output of the following code snippet?
print([i.lower() for i in "HELLO"])
A. hello
B. [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
C. hel
D. HELLO
View Answer
Q23.
निम्नलिखित पाइथन कोड का आउटपुट क्या है?

What is the output of the following Python code?
Y = [2,5J, 6]
Y.sort()
A. [2, 6, 5J]
B. [5J, 2, 6]
C. [6, 5J, 2]
D. Error
View Answer
Q24.
निम्नलिखित कोड का आउटपुट क्या है?

What is the output of the following code?
def s(n1):
    print(n1)
    n1 = n1 + 2
n2 = 4
s(n2)
print(n2)
A. 6 4
B. 4 6
C. 4 4
D. 6 6
View Answer
Q25.
निम्नलिखित पाइथन कोड का आउटपुट क्या है?

What is the output of the following Python code?
def display(b, n):
    while n>0:
        print(b, end='')
        n = n-1
display('z', 3)
A. zzz
B. zz
C. Infinite Loop
D. An exception is thrown
View Answer

Create Account