array creation routines
Qus. 1 : What is the purpose of zeros() function used in NumPy array ?
- To make a Matrix with all diagonal element 0
- To make a Matrix with first row 0
- To make a Matrix with all elements 0
- None of the above
- [1 3 5]
- [1 3]
- [1,3]
- [1,2,3,4,5]
- [ ]
- [1 2 3 4 5]
- [5 4 3 2 1]
- [1 2 3 4]
- [2 4 1]
- [3 4 1]
- [2 3 1]
- [2 4 3]
- array_split()
- split()
- split_array()
- hstack() and vstack()
- np.array()
- np.zeros()
- np.empty()
- All of the above
- make a matrix with first column 0
- make a matrix with all elements 0
- make a matrix with diagonal elements 0
- All of the above
- Filled with Zero
- Filled with Blank space
- Filled with random garbage value
- Filled with One
- 0
- 1
- 2
- 3
- Shape
- Array
- both a) and b)
- None of the above.
- all_like
- ones_like
- one_alike
- all of the mentioned
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