wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Grade 9 Checkpoint 1 Revision

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

In the NumPy function, the data preparation technique that is used to help machine learning algorithms is called _________.

a)

reprint

b)

reshaping

c)

reimport

d)

rearrange

2.

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.

a)

Sum

b)

NumPy

c)

Array

d)

Reshape

3.

What would be the printed output of the Python code in the pic?

a)

np_Hamad

b)

['Hamad' '16' '60']

c)

['Hamad']

d)

['16' '60']

4.

The line of code in the pic will import the NumPy library. The "np" is an assigned name for the library.

a)

True

b)

False

5.

Data can be anything : a name, a number, the colors in a photograph, or the notes in a musical composition.

a)

True

b)

False

6.

In NumPy, the ________ function is used to change the rows to columns, and the columns to rows.

a)

array

b)

stack

c)

transpose

d)

reshape

7.

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.

a)

array

b)

transpose

c)

reshape

d)

dataframe

8.

The line of the code in the pic, will create a NumPy array from a list

a)

True

b)

False

9.

In NumPy, to append two arrays vertically the function __________ is used.

a)

sum()

b)

vstack()

c)

hstack()

d)

array()

10.

The line of the code in the pic, will create an array that carries values from 0 to 10 with step size 2

a)

True

b)

False

11.

In Python, the data structure that stores elements of the same data type is called an array.

a)

True

b)

False

12.

Array with multiple rows and columns

a)

one dimensional array

b)

two dimensional array

13.

Before working with libraries in Python, you must import them using the line of code shown below:


import library_name as New_Name

a)

True

b)

False

14.

To print the second item in the array we use index 1

a)

True

b)

False

15.

Data Representation: refers to the form in which data is stored, processed, and transmitted.

a)

True

b)

False