page-banner
Chapter-9 NumPy Basics
Q31.
NumPy सरणियों का डिफ़ॉल्ट डेटा प्रकार क्या है?<break-line><break-line>What is the default data type of NumPy arrays?
A. int32
B. float64
C. object
D. None of the above
View Answer
Q32.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np a = np.arange(10) print(a[2:5])</code></pre>
A. [2, 3, 4]
B. [0, 1, 2]
C. [5, 6, 7]
D. [2, 4, 6]
View Answer
Q33.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np a = np.array([[1, 2], [3, 4]]) print(a.ndim)</code></pre>
B. 1
C. 2
D. 3
View Answer
Q34.
NumPy में आइडेंटिटी मैट्रिक्स बनाने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?<break-line><break-line>Which of the following is used to create an identity matrix in NumPy?
A. zeros()
B. ones()
C. arange()
D. eye()
View Answer
Q35.
NumPy ऐरे को नया आकार देने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?<break-line><break-line>Which of the following is used to reshape a NumPy array?
A. reshape()
B. resize()
C. Both A and B
D. None of the above
View Answer