wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

matplotlib-2

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

The maximum number that you can assign for the color is ____.

a)

4

b)

3

c)

2

d)

1

2.

This is an example of a ___________.

a)

Scatter Chart

b)

Line Graph

c)

Bar Graph

d)

Pie Chart

3.

The maximum number that you can assign for the color is ____.

a)

4

b)

3

c)

2

d)

1

4.

Which function is used to assign the title of the graph ?

a)

name()

b)

title()

c)

heading()

d)

none

5.

names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])

print(names([2))

Mark the right output from the below options

a)

[ 'Haya' ]

b)

[ 'Maryam' ]

c)

[ 'Reem' ]

d)

[ 'Salah' ]

6.

names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])

names[2] = "Omar"

print([names])

Mark the right output from the below options

a)

[ "Reem" , "Salah" , "Haya" , "Maryam" , "Fatema" ]

b)

[ "Reem" , "Salah" , "Omar" , "Maryam" , "Fatema" ]

c)

[ "Reem" , "Haya" , "Salah" , "Maryan" , "Fatema" ]

7.

names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])

names[2] = "Omar"

print([names])

Mark the right output from the below options

a)

[ "Reem" , "Salah" , "Haya" , "Maryam" , "Fatema" ]

b)

[ "Reem" , "Salah" , "Omar" , "Maryam" , "Fatema" ]

c)

[ "Reem" , "Haya" , "Salah" , "Maryan" , "Fatema" ]

8.

names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])

print(names([2))

Mark the right output from the below options

a)

[ 'Haya' ]

b)

[ 'Maryam' ]

c)

[ 'Reem' ]

d)

[ 'Salah' ]

9.

What does these 4 colour boxes on extreme right side called

a)

Title

b)

Legend

c)

Heading

d)

Label

10.

________________function is used to create a horizontal bar chart.

a)

barchart()

b)

barh()

c)

bar()

d)

None of the above

11.

Among the following which chart type is used to visualize a trend in data over intervals of time.

a)

Histogram

b)

Bar chart

c)

Pie chart

d)

Line chart

12.

The ______ argument of legend() provides the location for legend, which by default is one or upper right

a)

Title()

b)

Loc

c)

X label()

d)

Y label()

13.

The graphical or visual representation of information and data using visual elements like charts, graphs, etc are called_____

a)

Data visualization

b)

Pyplot

c)

Line chart

d)

Bar chart

14.

Name the function used to create an array?

a)

np.aray()

b)

np.array()

c)

Np.array()

d)

np.arange()

15.

np.arange(2,8,1) ----> what output will be produced?

a)

2,3,4,5,6,7,8

b)

2,3,4,5,6,7,8,9

c)

2,3,4,5,6,7

d)

2,4,6,8