wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python plot

Total questions: 12

Worksheet time: 6mins

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.

Which code should we use to display our graphs?

a)

plt.display()

b)

plt.graph()

c)

plt.show()

d)

plt.chart()

4.

We can use matplotlib without installing the library.

a)

True

b)

False

5.

This is an example of a ___________.

a)

Scatter Chart

b)

Line Graph

c)

Bar Graph

d)

Pie Chart

6.

Which function is used to plot the graph in matplotlib ?

a)

plot()

b)

graph()

c)

show()

d)

scatter()

7.

Which graph is used to plot a continuous graph ?

a)

line plot

b)

scatter plot

c)

bar plot

d)

Histogram

8.

What does these 4 colour boxes on extreme right side called

a)

Title

b)

Legend

c)

Heading

d)

Label

9.

Markers are data points in the graph?

a)

True

b)

False

10.

Which Python Package is used for 2D graphics?

a)

matplotlib.pyplot

b)

matplotlib.pip

c)

matplotlib.numpy

d)

matplotlib.plt

11.

Method used to label x axis, the horizontal axis

a)

xlabel()

b)

ylabel

c)

x=

d)

none of the above

12.

Method used to label the y axis, the vertical axis

a)

ylabel()

b)

y=

c)

both

d)

none