निम्नलिखित कोड का परिणाम क्या है?<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>
निम्नलिखित कोड का उद्देश्य क्या है?<break-line><break-line>What is the purpose of the following code?<pre><code>import numpy as np
z = [1, 2, 3]
y = np.array(z)</code></pre>
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What will be output for the following code?<pre><code>import numpy as np
a = np.array([[1, 2, 3], [0, 1, 4], [11, 22, 33]])
print(a.size)</code></pre>
Correct Answer: सभी तत्व 0 के साथ एक मैट्रिक्स बनाने के लिए / To make a matrix with all elements 0
Q15.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following?<pre><code>import numpy as np
a = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])
print(a[2, 2])</code></pre>