NEW
Font size
S
M
L
XL
WorksheetsMatplotlib
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.
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)
4.
Which code should we use to display our graphs?
a)
plt.display()
b)
plt.graph()
c)
plt.show()
d)
plt.chart()
5.
pyplot is also a python library.
a)
False
b)
True
6.
This is an example of a ___________.
a)
Scatter Chart
b)
Line Graph
c)
Bar Graph
d)
Pie Chart
7.
We can use matplotlib without installing the library.
a)
True
b)
False
8.
The maximum number that you can assign for the color is ____.
a)
4
b)
3
c)
2
d)
1
9.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
10.
What syntax can you use to insert a line break between strings so that they appear over multiple lines?
a)
/
b)
\n
c)
\l
d)
n
Reset
