R4RIN
Articles
Java 8
MCQS
Python MCQ Quiz Hub
Python MCQS - Numpy
Choose a topic to test your knowledge and improve your Python skills
1. How we install Numpy in the system ?
install numpy
pip install python numpy
pip install numpy
pip install numpy python
2. Numpy in the Python provides the
Function
Lambda function
Type casting
Array
3. Which of the following is used to convert the list data type to the Numpy array ?
array(list)
array.list
Numpy.array(list)
None of the above
4. Which of the following is correct way to import the Numpy module in your program ?
import numpy
import numpy as np
from numpy import *
All of the above
5. Which of the following is not valid to import the numpy module ?
import numpy as np
import numpy as n
import numpy as p
None of the above
6. Which of the following keyword is used to access the numpy module in python ?
access
import
fetch
from
7. Numpy.array(list), what it does ?
It convert array to list
It convert list to array
It convert array to array
Error
8. It is possible to convert the Numpy array to list in python ?
Yes
No
Sometimes
None of the above
9. How we can convert the Numpy array to the list in python?
list(array)
list.array
array.list
None of the above
10. How we can change the shape of the Numpy array in python?
By Shape()
By reshape()
By ord()
By change()
11. Shape() function in Numpy array is used to
Find the shape of the array
Change the shape of the array
Both of the above
None of the above
12. Which of the following counts the number of elements in Numpy array ?
count()
return()
shape()
size()
13. What is the use of the size attribute in Numpy array in python ?
It find the direction
It find the number of items
It find the shape
All of the above
14. How we can find the type of numpy array in python ?
dtype
type
typei
itype
15. what is the use of the zeros() function in Numpy array in python ?
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
16. Minimum number of argument to pass in full() function in Numpy array ?
0
1
2
3
17. Which of the following is the essential argument to pass in full() function of Numpy array ?
shape
value
Both of the above
None of the above
18. Which of the following argument we need to pass in reshape() function?
Array
Shape
only array
Both array and shape
19. Correct syntax of the reshape() function in Numpy array python is -
array.reshape(shape)
reshape(shape,array)
reshape(array,shape)
reshape(shape)
20. Which of the following find the maximum number in the Numpy array ?
max(array)
array.max()
array(max)
None of the above
Submit