page-banner
Chapter-9 NumPy Basics
Q11.
निम्नलिखित कोड का परिणाम क्या है?<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
Q12.
निम्नलिखित कोड का उद्देश्य क्या है?<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>
A. to convert z to array
B. to convert z to list
C. Both of the above
D. None of the above
View Answer
Q13.
निम्नलिखित कोड का परिणाम क्या है?<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>
A. 1
B. 3
C. 9
D. 4
View Answer
Q14.
NumPy सारणी में प्रयुक्त zeros() फ़ंक्शन का उद्देश्य क्या है?<break-line><break-line>What is the purpose of zeros() function used in NumPy array?
A. सभी विकर्ण तत्वों 0 के साथ एक मैट्रिक्स बनाने के लिए / To make a matrix with all diagonal element 0
B. पहली पंक्ति 0 के साथ एक मैट्रिक्स बनाने के लिए / To make a matrix with first row 0
C. सभी तत्व 0 के साथ एक मैट्रिक्स बनाने के लिए / To make a matrix with all elements 0
D. उपरोक्त में से कोई नहीं / None of the above
View Answer
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>
A. 7
B. 11
C. 10
D. 8
View Answer