array attributes
Qus. 1 : <p>What is the output of the following code ?</p><pre>import numpy as np<br>a = np.array([[1,2,3]])<br>print(a.shape)</pre>
- (2,3)
- (3,1)
- (1,3)
- None of These
- 1
- 3
- 9
- 4
- 4
- 5
- 6
- 7
- 10
- 9
- 4
- All of the mentioned above
- np.ndim(array_name)
- array_name.ndim()
- np.dim(array_name)
- array_name.dim
- the shape is the number of rows
- the shape is the number of columns
- the shape is the number of element in each dimension
- Total number of elements in array
- np.concatenate()
- np.join()
- np.array_join()
- np.join_array()
- shape, dtype, ndim
- objects, type, list
- objects, non vectorization
- Unicode and shape
- change in shape of array
- reshaping of array
- get the shape of the array
- All of above
- Number of Rows and Column in array
- Size of each items in array
- Number of elements in array
- Largest element of an array
- 10
- 21
- 12
- 28
- (2,3)
- (3,2)
- (1,1)
- none of these
- 1
- 5
- 6
- 4
- (3,)
- (4,)
- 1
- 3
- 1
- 2
- 3
- 0
Programs
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Write a program to find the intersection of two arrays