page-banner
Python M3-R5.1 MCQs SET-8
Q21.
निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?
import numpy as np
a = np.array([[1,2,3]])
print(a.ndim)
A. 1
B. 2
C. 3
View Answer
Q22.
निम्न में से कौन सा बिल्ट-इन फंक्शन नहीं है?

Which of the following is not the built-in function?
A. input()
B. tuple()
C. print()
D. dictionary()
View Answer
Q23.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?

What will the following code fragment print?
a = True
b = False
c = False
if a or b and c:
    print('HELLO')
else:
    print('hello')
A. HELLO
B. Hello
C. HellO
D. None of these
View Answer
Q24.
निम्नलिखित में से कौन सी संख्या निम्नलिखित कोड द्वारा कभी भी उत्पन्न नहीं की जा सकती है:

Which of the following numbers can never be generated by the following code:
random.randrange(0, 50)
B. 1
C. 49
D. 50
View Answer
Q25.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?
x = 'abcd'
for i in range(x):
    print(i)
A. a b c d
B. 0 1 2 3
C. error
D. none of the mentioned
View Answer

Create Account