NEW
Font size
Worksheetscp1Gr9Adv
Total questions: 10
Worksheet time: 5mins
Ali has created a small program in Python, but he wants to store his data in a multi-dimensional array. He would like to use advanced mathematical and scientific calculations in his program. Ali should add the ___________ library to his program.
Sum
NumPy
Array
Reshape
In NumPy, the ________ function is used to change the rows to columns, and the columns to rows.
array
stack
transpose
reshape
In Python, the data structure that stores elements of the same data type is called an array.
True
False
Meera has created a small program in Python. She wants to store elements of the same data type in an organized data structure using the NumPy library. To do this Meera should use the NumPy __________ function.
array
transpose
reshape
dataframe
The line of code to the right will import the NumPy library. The "np" is an assigned name for the library.
True
False
What would be the printed output of the Python code to the right?
np_Hamad
['Hamad' '16' '60']
['Hamad']
['16' '60']
The line of the code to the right, will create an array that carries values from 0 to 10 with step size 2.
True
False
In the NumPy function, the data preparation technique that is used to help machine learning algorithms is called _________.
reprint
reshaping
reimport
rearrange
In NumPy, to append two arrays vertically the function __________ is used.
sum()
vstack()
hstack()
array()
The line of the code to the right, will create a NumPy array from a list.
True
False
