page-banner
Chapter-9 NumPy Basics
Q36.
निम्नलिखित कोड का आउटपुट क्या है?

What is the output of following code?
import numpy as np
a = np.array([1, 2, 3])
b = np.array([4, 5, 6])
c = np.stack((a, b))
print(c)
A. [[1 2 3] [4 5 6]]
B. [[1 4] [2 5] [3 6]]
C. [1 2 3 4 5 6]
D. Error
View Answer
Q37.
NumPy ऐरे में अधिकतम तत्व खोजने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?

Which of the following is used to find the maximum element in a NumPy array?
A. max()
B. maximum()
C. amax()
D. All of the above
View Answer
Q38.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?
import numpy as np
a = np.array([1, 2, 3])
b = np.array([4, 5, 6])
c = a + b
print(c)
A. [1 2 3 4 5 6]
B. [[1 4] [2 5] [3 6]]
C. [5 7 9]
D. Error
View Answer
Q39.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?
import numpy as np
a = np.array([1, 2, 3])
b = np.array([4, 5, 6])
c = np.concatenate((a, b))
print(c)
A. [[1 2 3] [4 5 6]]
B. [[1 4] [2 5] [3 6]]
C. [1 2 3 4 5 6]
D. Error
View Answer
Q40.
पायथन में NumPy का उद्देश्य क्या है?

What is the purpose of NumPy in Python?
A. एक शक्तिशाली n-dimensional ऐरे ऑब्जेक्ट प्रदान करने के लिए/To provide a powerful N-dimensional array object
B. ऐरे पर गणितीय संचालन करने के लिए फ़ंक्शन प्रदान करना/To provide functions for performing mathematical operations on arrays
C. C/C++ और Fortran कोड को एकीकृत करने के लिए उपकरण प्रदान करना/To provide tools for integrating C/C++ and Fortran code with Python
D. उपरोक्त सभी/All of the above
View Answer

Create Account