Question 1
Question
Correct syntax of the reshape() function in Numpy array python is
Answer
-
array.reshape(shape)
-
reshape(shape,array)
-
reshape(array,shape)
-
reshape(shape)
Question 2
Question
Which of the following find the maximum number in the Numpy array ?
Answer
-
max(array)
-
array.max()
-
array(max)
-
None of the above
Question 3
Question
How we can change the shape of the Numpy array in python?
Answer
-
By Shape()
-
By reshape()
-
By ord()
-
By change()
Question 4
Question
How we can convert the Numpy array to the list in python?
Answer
-
list(array)
-
list.array
-
array.list
-
None of the above
Question 5
Question
How we can find the type of numpy array in python ?
Question 6
Question
How we install Numpy in the system ?
Answer
-
install numpy
-
pip install python numpy
-
pip install numpy
-
pip install numpy python
Question 7
Question
It is possible to convert the Numpy array to list in python ?
Answer
-
Yes
-
No
-
Sometimes
-
None of the above
Question 8
Question
Minimum number of argument to pass in full() function in Numpy array ?
Question 9
Question
Numpy in the Python provides the
Answer
-
Function
-
Lambda function
-
Type casting
-
Array
Question 10
Question
Numpy.array(list), what it does ?
Question 11
Question
Shape() function in Numpy array is used to
Question 12
Question
What is the use of the size attribute in Numpy array in python ?
Question 13
Question
what is the use of the zeros() function in Numpy array in python ?
Answer
-
To make a Matrix with all element 0
-
To make a Matrix with all diagonal element 0
-
To make a Matrix with first row 0
-
None of the above
Question 14
Question
What gets printed?
import numpy as np
ary=np.array([1,2,3,5,8])
ary=ary+1
print(ary[1])
Question 15
Question
Which of the following is correct way to import the Numpy module in your program ?
Answer
-
import numpy
-
import numpy as np
-
from numpy import *
-
All of the above