page-banner
Python M3-R5.1 MCQs SET-8
Q21.
निम्नलिखित कोड का परिणाम क्या है ?<break-line><break-line>What is the output of the following code ?<pre><code>import numpy as np a = np.array([[1,2,3]]) print(a.ndim)</code></pre>
A. 1
B. 2
C. 3
View Answer
Q22.
निम्न में से कौन सा बिल्ट-इन फंक्शन नहीं है?<break-line><break-line>Which of the following is not the built-in function?
A. input()
B. tuple()
C. print()
D. dictionary()
View Answer
Q23.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?<break-line><break-line>What will the following code fragment print?<pre><code>a = True b = False c = False if a or b and c: print('HELLO') else: print('hello')</code></pre>
A. HELLO
B. Hello
C. HellO
D. None of these
View Answer
Q24.
निम्नलिखित में से कौन सी संख्या निम्नलिखित कोड द्वारा कभी भी उत्पन्न नहीं की जा सकती है:<break-line><break-line>Which of the following numbers can never be generated by the following code:<pre><code>random.randrange(0, 50)</code></pre>
B. 1
C. 49
D. 50
View Answer
Q25.
निम्नलिखित का आउटपुट क्या है?<break-line><break-line>What is the output of the following?<pre><code>x = 'abcd' for i in range(x): print(i)</code></pre>
A. a b c d
B. 0 1 2 3
C. error
D. none of the mentioned
View Answer