wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python: matlpotlib Online Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

which library we import if we want to draw chart

a)

numpy

b)

matplotlib

c)

pandas

2.

to add a title in the chart we use the function

a)

title("title of the chart")

b)

plt.title("title of the chart")

c)

plt.title(title of the chart)

3.

we can not change the color of the chart

a)

false

b)

true

4.

It is better to use pandas dataframe when putting title or labels in your chart.

a)

True

b)

False

5.

Which of the codes below should we use to rotate the data ticks on x-axis?

a)

plt.xticks(rotation=30)

b)

plt.ylabel(rotation=30)

c)

plt.yticks(rotation=30)

d)

plt.xlabel(rotation=30)

6.

Which code should we use to display our graphs?

a)

plt.display()

b)

plt.graph()

c)

plt.show()

d)

plt.chart()

7.

pyplot is also a python library.

a)

False

b)

True

8.

This is an example of a ___________.

a)

Scatter Chart

b)

Line Graph

c)

Bar Graph

d)

Pie Chart

9.

We can use matplotlib without installing the library.

a)

True

b)

False

10.

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

a)

4

b)

3

c)

2

d)

1