
Matplotlib Best Practice Quiz
Authored by Jason Walker
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary library used for data visualisation in Python?
Seaborn
Matplotlib
Pandas
NumPy
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create a basic line plot in Matplotlib?
plt.bar()
plt.scatter()
plt.plot()
plt.hist()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `plt.xlabel()` function in Matplotlib?
To set the title of the plot
To label the x-axis
To label the y-axis
To add a legend
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to display the plot in Matplotlib?
plt.show()
plt.display()
plt.render()
plt.exhibit()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you change the colour of a line in a Matplotlib plot?
By using the `color` parameter in `plt.plot()`
By using the `linecolor` parameter in `plt.plot()`
By using the `colour` parameter in `plt.plot()`
By using the `line_colour` parameter in `plt.plot()`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `plt.legend()` function do in a Matplotlib plot?
It adds a grid to the plot
It adds a legend to the plot
It sets the title of the plot
It labels the axes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create a bar chart in Matplotlib?
plt.plot()
plt.scatter()
plt.bar()
plt.hist()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
What is a computer
Quiz
•
KG - University
10 questions
EMPTECH L4 Q2
Quiz
•
12th Grade
10 questions
PRE-ASSESSMENT ETECH M1
Quiz
•
12th Grade
15 questions
emptech L1 A
Quiz
•
12th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
20 questions
Online Platform Block Q
Quiz
•
11th - 12th Grade
20 questions
City & Guilds Award in Business Processes
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade