NEW
Font size
WorksheetsGrade 9 Checkpoint 1 Revision
Total questions: 15
Worksheet time: 11mins
In the NumPy function, the data preparation technique that is used to help machine learning algorithms is called _________.
reprint
reshaping
reimport
rearrange
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
What would be the printed output of the Python code in the pic?
np_Hamad
['Hamad' '16' '60']
['Hamad']
['16' '60']
The line of code in the pic will import the NumPy library. The "np" is an assigned name for the library.
True
False
Data can be anything : a name, a number, the colors in a photograph, or the notes in a musical composition.
True
False
In NumPy, the ________ function is used to change the rows to columns, and the columns to rows.
array
stack
transpose
reshape
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 the code in the pic, will create a NumPy array from a list
True
False
In NumPy, to append two arrays vertically the function __________ is used.
sum()
vstack()
hstack()
array()
The line of the code in the pic, will create an array that carries values from 0 to 10 with step size 2
True
False
In Python, the data structure that stores elements of the same data type is called an array.
True
False
Array with multiple rows and columns
one dimensional array
two dimensional array
Before working with libraries in Python, you must import them using the line of code shown below:
import library_name as New_Name
True
False
To print the second item in the array we use index 1
True
False
Data Representation: refers to the form in which data is stored, processed, and transmitted.
True
False
