NEW
Font size
WorksheetsMatplotlib Quiz Class 12th
Total questions: 20
Worksheet time: 10mins
What is the primary purpose of the Matplotlib library?
Data analysis
Creating static, animated, and interactive 2D plots
Web development
Creating 3D plots
Which command is used to install Matplotlib?
pip install matplotlib
install matplotlib
pip get matplotlib
matplotlib install
What is the alias used for the Pyplot module in Matplotlib?
mpl
py
plt
pyp
What function is used to create a figure in Matplotlib?
draw()
figure()
create()
plot()
What should be included to make charts easily understood?
No additional information
Only a legend
Only axis labels
Chart title and axis labels
Which function is used to display the figure created?
display()
view()
show()
render()
What is a marker in a line chart?
A title for the chart
A color for the line
A symbol representing a data value
A type of chart
What does the linewidth property control?
The style of the line
The width of the line
The color of the line
The height of the line
Which parameter can be used to change the style of a line chart?
format
style
linestyle
design
What type of plot is used to visualize growth or decline over time?
Histogram
Scatter plot
Line plot
Bar chart
What is the purpose of the df.plot(kind='hist') function?
To create a histogram
To create a line plot
To create a scatter plot
To create a bar chart
What does the fill property do in a histogram?
Changes the height of the columns
Controls the color of the histogram
Determines if the histogram is filled with color
Sets the border color
Which of the following is NOT a valid linestyle?
curved
dashed
dotted
solid
What does the edgecolor property control in a bar chart?
The color of the title
The background color
The border color of the bars
The color of the bars
What is the default line width in Matplotlib?
1 pixel
3 pixels
0.5 pixels
2 pixels
Which of the following is NOT a type of plot that Matplotlib can create?
Scatter plot
Bar chart
3D pie chart
Line plot
Which module in Matplotlib is commonly used for plotting?
numpy
scipy
pyplot
pandas
What is the purpose of the plt.grid() function in Matplotlib?
To add grid lines to the plot
To display the plot
To change the color of the plot
To save the plot
Which of the following is a method to save a figure in Matplotlib?
plt.export()
plt.savefig()
plt.save()
plt.store()
What does the 'xlabel' method do in a Matplotlib plot?
Sets the title of the plot
Labels the y-axis
Defines the limits of the x-axis
Labels the x-axis
