SHORT TYPE QUESTIONS
Q.1 What is an array?
Q.2 Define the following terms:
- ndarray
- array slice
- array subset
Q.3 What functions can you use for joining two or more ndarrays?
Q.4 What are covariance, correlation and liner regression?
Q.5 Name the function using which you can perform arithmetic operations on ndarrays.
Q.6 Find the output of the following code:
(i) a = np.array([9,5,7,2])
b = np.array([5,6,7,3])
c = np.concatenate([a, b])
print (c)
(ii) name = np.array([[6,7,8,9], [4,3,2,1]])
x = np.concatenate([name, name])
print(x)
(iii) a = np.array([5,4,3,2])
b = np.array([[7,6,4,3], [9,8,1,2]])
x = np.vstack([a, b])
print(x)