page-banner
Chapter-9 NumPy Basics
Q1.
संख्याओं का अनुक्रम बनाने के लिए, NumPy रेंज के अनुरूप एक फ़ंक्शन प्रदान करता है जो सूचियों के बजाय सरणी लौटाता है।<break-line><break-line>To create sequences of numbers, NumPy provides a function …………… analogous to range that returns arrays instead of lists.
A. arrange
B. unpickling
C. range
D. None of these
View Answer
Q2.
ndarray को ऐरे के ................ नाम से भी जाना जाता है।<break-line><break-line>ndarray is also known as the ……………. array.
A. alias
B. arrange
C. unpickling
D. None of these
View Answer
Q3.
निम्नलिखित का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following?<pre><code>import numpy as np print(np.minimum([2, 3, 4], [1, 5, 2]))</code></pre>
A. [1 2 5]
B. [1 5 2]
C. [2 3 4]
D. [1 3 2]
View Answer
Q4.
NumPy ऐरे के डेटा प्रकार को खोजने के लिए किस विशेषता का उपयोग किया जाता है?<break-line><break-line>Which attribute is used to find the data type of numpy array?
A. type(array)
B. dtype
C. objects.type(array)
D. numpy(type)
View Answer
Q5.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?<break-line><break-line>What will be output for the following code?<pre><code>import numpy as np a = np.array([1, 2, 1, 5, 8]) b = np.array([0, 1, 5, 4, 2]) c = a + b c = c * a print(c[2])</code></pre>
A. 6
B. 10
D. None of these
View Answer