page-banner
Chapter-9 NumPy Basics
Q21.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]]) print(y.ndim)</code></pre>
A. 1
B. 2
C. 3
View Answer
Q22.
निम्नलिखित का आउटपुट क्या होगा?<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
Q23.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np a = np.array([2, 3, 4, 5]) print(a.dtype)</code></pre>
A. int32
B. int
C. float
D. None of these
View Answer
Q24.
x का डेटाटाइप क्या है?<break-line><break-line>What is the datatype of x?<pre><code>import numpy as np a = np.array([1, 2, 3, 4]) x = a.tolist()</code></pre>
A. int
B. array
C. tuple
D. list
View Answer
Q25.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np a = np.array([1, 2, 3, 5, 8]) b = np.array([0, 3, 4, 2, 1]) c = a + b c = c * a print(c[2])</code></pre>
A. 10
B. 21
C. 12
D. 28
View Answer