Wednesday , November 18 2026
Breaking News

Data Visualization with Python using Matplotlib Exam Answers 2026 (All 100 Questions)

Data Visualization with Python using Matplotlib exam answers 2026: This page lists all 100 questions of the official Data Visualization with Python using Matplotlib exam by Itronix Solutions, each with its four answer options and the correct answer highlighted in green. Use it to revise every topic before you attempt the test and earn your verifiable certificate.

About this certification: This course will guide you through all the possible techniques that are used to visualize data using the Matplotlib Python library.

Certification Data Visualization with Python using Matplotlib
Provider Itronix Solutions
Category Data Science & Analytics
Total questions 100 multiple-choice questions
Marks 1 mark per question (100 marks)
Passing score 80% (80 out of 100)
Retake Available if you do not pass
Certificate Verifiable online certificate

Take the exam: Data Visualization with Python using Matplotlib on Itronix Solutions. See every other Itronix exam in our complete list of Itronix certification answers.

Data Visualization with Python using Matplotlib Exam Questions and Answers

Questions 1 to 25

1. Matplotlib is a Python library for:

A. Sending email
B. Web servers
C. Databases
D. Creating static, animated and interactive plots ✔

Correct answer: D. Creating static, animated and interactive plots

2. The common import for Matplotlib’s plotting interface is:

A. import matplotlib.pyplot as plt ✔
B. from plot import matplotlib
C. import matplotlib as pyplot
D. import plot as mp

Correct answer: A. import matplotlib.pyplot as plt

3. plt.show() is used to:

A. Display the figure ✔
B. Save the figure only
C. Clear data
D. Close Python

Correct answer: A. Display the figure

4. plt.plot(x, y) creates a:

A. Heatmap
B. Pie chart
C. Histogram
D. Line plot ✔

Correct answer: D. Line plot

5. plt.bar() creates a:

A. Bar chart ✔
B. Box plot
C. Line chart
D. Scatter plot

Correct answer: A. Bar chart

6. plt.barh() creates a:

A. Horizontal bar chart ✔
B. Area chart
C. Histogram
D. Vertical bar chart

Correct answer: A. Horizontal bar chart

7. plt.scatter() creates a:

A. Line plot
B. Table
C. Pie chart
D. Scatter plot ✔

Correct answer: D. Scatter plot

8. plt.hist() creates a:

A. Map
B. Line chart
C. Bar chart of categories only
D. Histogram ✔

Correct answer: D. Histogram

9. plt.pie() creates a:

A. Bar chart
B. Pie chart ✔
C. Donut chart only
D. Histogram

Correct answer: B. Pie chart

10. plt.boxplot() shows:

A. Only the mean
B. A time series
C. Median, quartiles and outliers ✔
D. A map

Correct answer: C. Median, quartiles and outliers

11. plt.title() sets:

A. The plot title ✔
B. The colour map
C. The legend
D. The window size

Correct answer: A. The plot title

12. plt.xlabel() sets:

A. The title
B. The x-axis label ✔
C. The y-axis label
D. The legend

Correct answer: B. The x-axis label

13. plt.ylabel() sets:

A. The y-axis label ✔
B. The x-axis label
C. The title
D. The grid

Correct answer: A. The y-axis label

14. plt.legend() displays:

A. The grid
B. The title
C. A legend for labelled data series ✔
D. Axis ticks

Correct answer: C. A legend for labelled data series

15. The label argument in plt.plot() is used by:

A. The title
B. The file name
C. The legend ✔
D. The axis limits

Correct answer: C. The legend

16. plt.grid(True) adds:

A. A legend
B. Grid lines to the plot ✔
C. A colour bar
D. A title

Correct answer: B. Grid lines to the plot

17. plt.xlim(0, 10) sets:

A. The y-axis range
B. The figure size
C. The tick labels
D. The x-axis range ✔

Correct answer: D. The x-axis range

18. plt.savefig("chart.png") is used to:

A. Save the figure to a file ✔
B. Load an image
C. Delete the figure
D. Display the figure

Correct answer: A. Save the figure to a file

19. The dpi argument in savefig controls:

A. Line width
B. Image resolution ✔
C. Font
D. Colour

Correct answer: B. Image resolution

20. plt.figure(figsize=(8, 4)) sets:

A. The number of subplots
B. The colour scheme
C. The dpi only
D. The figure width and height in inches ✔

Correct answer: D. The figure width and height in inches

21. A Figure in Matplotlib is:

A. A colour
B. The overall container for all plot elements ✔
C. An axis label
D. A single line

Correct answer: B. The overall container for all plot elements

22. An Axes object is:

A. A legend
B. An individual plot area with its own axes ✔
C. The whole window
D. A file

Correct answer: B. An individual plot area with its own axes

23. fig, ax = plt.subplots() creates:

A. Only a figure
B. Only data
C. A figure and an axes object ✔
D. A legend

Correct answer: C. A figure and an axes object

24. plt.subplots(2, 2) creates:

A. Four figures
B. A 2×2 grid of axes ✔
C. Two figures
D. A 2-line plot

Correct answer: B. A 2×2 grid of axes

25. The object-oriented approach uses methods like:

A. chart.add()
B. ax.plot() and ax.set_title() ✔
C. draw.line()
D. plt.only()

Correct answer: B. ax.plot() and ax.set_title()

Questions 26 to 50

26. ax.set_xlabel() sets:

A. The figure title
B. The dpi
C. The x-axis label for that axes ✔
D. The legend

Correct answer: C. The x-axis label for that axes

27. plt.tight_layout() helps to:

A. Remove axes
B. Add data
C. Change colours
D. Reduce overlapping of subplot elements ✔

Correct answer: D. Reduce overlapping of subplot elements

28. The color argument changes:

A. The data
B. The colour of plot elements ✔
C. The file type
D. The figure size

Correct answer: B. The colour of plot elements

29. linestyle="–" draws:

A. A dashed line ✔
B. No line
C. A dotted marker
D. A thick line

Correct answer: A. A dashed line

30. marker="o" adds:

A. A grid
B. A legend
C. Circle markers at data points ✔
D. A title

Correct answer: C. Circle markers at data points

31. linewidth controls:

A. The thickness of lines ✔
B. The font size
C. The figure width
D. The number of ticks

Correct answer: A. The thickness of lines

32. alpha controls:

A. Transparency ✔
B. Marker size
C. Line width
D. Axis range

Correct answer: A. Transparency

33. A colormap (cmap) is used to:

A. Set font style
B. Map numeric values to colours ✔
C. Add legends
D. Save files

Correct answer: B. Map numeric values to colours

34. plt.colorbar() adds:

A. A legend for lines
B. A scale showing how colours map to values ✔
C. A title
D. A grid

Correct answer: B. A scale showing how colours map to values

35. plt.imshow() is used to display:

A. Tables only
B. Line plots
C. Pie charts
D. Images or 2D arrays as heatmaps ✔

Correct answer: D. Images or 2D arrays as heatmaps

36. plt.text(x, y, "Hi") adds:

A. Text at a given data position ✔
B. A title
C. An axis label
D. A legend

Correct answer: A. Text at a given data position

37. plt.annotate() is used to:

A. Resize figures
B. Set limits
C. Add text with an optional arrow pointing to data ✔
D. Delete data

Correct answer: C. Add text with an optional arrow pointing to data

38. plt.xticks() is used to:

A. Set the title
B. Change dpi
C. Add legends
D. Set tick locations and labels on the x-axis ✔

Correct answer: D. Set tick locations and labels on the x-axis

39. Rotating x tick labels helps when:

A. The plot is empty
B. There is no data
C. Saving files
D. Labels are long and overlap ✔

Correct answer: D. Labels are long and overlap

40. A log scale on the y-axis is set with:

A. plt.scale("y")
B. plt.yscale("log") ✔
C. plt.ylog()
D. plt.logy(True)

Correct answer: B. plt.yscale("log")

41. plt.fill_between() is used to:

A. Shade the area between two curves ✔
B. Add markers
C. Draw bars
D. Make pie slices

Correct answer: A. Shade the area between two curves

42. A stacked bar chart shows:

A. A time series line
B. How parts contribute to totals across categories ✔
C. Only one value
D. Correlation only

Correct answer: B. How parts contribute to totals across categories

43. A line chart is best for:

A. Showing trends over time ✔
B. Parts of a whole
C. Distributions only
D. Geographic data

Correct answer: A. Showing trends over time

44. A bar chart is best for:

A. Comparing values across categories ✔
B. Showing maps
C. Showing correlation
D. Showing continuous distributions

Correct answer: A. Comparing values across categories

45. A histogram is best for:

A. Showing text
B. Showing the distribution of a numeric variable ✔
C. Comparing named categories
D. Showing parts of a whole

Correct answer: B. Showing the distribution of a numeric variable

46. The bins argument in plt.hist() controls:

A. Title
B. The number or edges of intervals ✔
C. Colour
D. Legend

Correct answer: B. The number or edges of intervals

47. A scatter plot is best for:

A. Showing a single total
B. Showing the relationship between two numeric variables ✔
C. Showing parts of a whole
D. Showing text

Correct answer: B. Showing the relationship between two numeric variables

48. A pie chart is suitable when:

A. Comparing many categories precisely
B. Showing a few parts of a whole ✔
C. Showing trends over time
D. Showing correlations

Correct answer: B. Showing a few parts of a whole

49. A box plot is useful for:

A. Showing text
B. Drawing maps
C. Showing exact totals
D. Comparing distributions and spotting outliers ✔

Correct answer: D. Comparing distributions and spotting outliers

50. Seaborn is built on top of:

A. JavaScript
B. Tableau
C. Matplotlib ✔
D. Excel

Correct answer: C. Matplotlib

Questions 51 to 75

51. Seaborn is known for:

A. Web hosting
B. Attractive statistical plots with less code ✔
C. Database storage
D. Image editing

Correct answer: B. Attractive statistical plots with less code

52. sns.heatmap() is often used to visualise:

A. Text files
B. Single numbers
C. Audio
D. Correlation matrices ✔

Correct answer: D. Correlation matrices

53. pandas DataFrames can plot directly with:

A. df.draw()
B. df.chart()
C. df.graph()
D. df.plot() ✔

Correct answer: D. df.plot()

54. df.plot(kind="bar") creates:

A. A pie chart
B. A heatmap
C. A bar chart from the DataFrame ✔
D. A box plot

Correct answer: C. A bar chart from the DataFrame

55. Plotly differs from Matplotlib mainly because it:

A. Creates interactive web-based charts by default ✔
B. Cannot make line charts
C. Runs only in Excel
D. Only makes tables

Correct answer: A. Creates interactive web-based charts by default

56. plt.style.use("ggplot") changes:

A. The file format
B. The Python version
C. The overall visual style of plots ✔
D. The data values

Correct answer: C. The overall visual style of plots

57. plt.close() is used to:

A. Create a figure
B. Save a figure
C. Show a figure
D. Close a figure and free memory ✔

Correct answer: D. Close a figure and free memory

58. In Jupyter, %matplotlib inline makes plots:

A. Save automatically
B. Appear inside the notebook ✔
C. Disappear
D. Open in Excel

Correct answer: B. Appear inside the notebook

59. A twin axis (ax.twinx()) is useful for:

A. Adding titles
B. Plotting two series with different y-scales ✔
C. Making pie charts
D. Doubling data

Correct answer: B. Plotting two series with different y-scales

60. plt.errorbar() shows:

A. Only pies
B. Data points with error or uncertainty bars ✔
C. Only lines
D. Only text

Correct answer: B. Data points with error or uncertainty bars

61. An area chart emphasises:

A. Outliers
B. Exact categories
C. The magnitude of change over time ✔
D. Correlation

Correct answer: C. The magnitude of change over time

62. A heatmap uses:

A. Pie slices
B. Text only
C. Colour intensity to represent values ✔
D. Line thickness

Correct answer: C. Colour intensity to represent values

63. Violin plots show:

A. Distribution shape along with summary statistics ✔
B. Only totals
C. Only text
D. Only means

Correct answer: A. Distribution shape along with summary statistics

64. A pair plot shows:

A. A pie chart
B. Pairwise relationships between multiple variables ✔
C. A single histogram
D. A map

Correct answer: B. Pairwise relationships between multiple variables

65. 3D plots in Matplotlib use the toolkit:

A. mpl_toolkits.mplot3d ✔
B. pyplot.three
C. plt3d
D. matplotlib3

Correct answer: A. mpl_toolkits.mplot3d

66. FuncAnimation is used to:

A. Create animations in Matplotlib ✔
B. Read CSV files
C. Send emails
D. Train models

Correct answer: A. Create animations in Matplotlib

67. Data visualisation helps people to:

A. Understand patterns and insights quickly ✔
B. Encrypt data
C. Store more data
D. Write code faster

Correct answer: A. Understand patterns and insights quickly

68. A good chart should have:

A. No labels
B. As many colours as possible
C. Random colours
D. A clear title, labelled axes and units ✔

Correct answer: D. A clear title, labelled axes and units

69. Truncating the y-axis on a bar chart can:

A. Exaggerate differences and mislead ✔
B. Add data
C. Remove bias
D. Always improve accuracy

Correct answer: A. Exaggerate differences and mislead

70. Using too many colours in one chart:

A. Always improves clarity
B. Makes it harder to read ✔
C. Adds data
D. Is required

Correct answer: B. Makes it harder to read

71. Colour-blind friendly palettes help to:

A. Hide data
B. Speed up code
C. Make charts accessible to more viewers ✔
D. Save space

Correct answer: C. Make charts accessible to more viewers

72. 3D pie charts are generally discouraged because they:

A. Distort the perception of proportions ✔
B. Are illegal
C. Use too little colour
D. Load slowly only

Correct answer: A. Distort the perception of proportions

73. Chart junk refers to:

A. Useful labels
B. Unnecessary decoration that distracts from the data ✔
C. Correct data
D. Axis titles

Correct answer: B. Unnecessary decoration that distracts from the data

74. A dashboard combines:

A. Only raw tables
B. Several related charts and metrics in one view ✔
C. Only text
D. Only code

Correct answer: B. Several related charts and metrics in one view

75. The default Matplotlib figure background can be changed with:

A. facecolor ✔
B. linecolor
C. cmap only
D. bgdata

Correct answer: A. facecolor

Questions 76 to 100

76. plt.axhline(y=0) draws:

A. A pie slice
B. A legend
C. A horizontal reference line ✔
D. A vertical bar

Correct answer: C. A horizontal reference line

77. plt.axvline(x=5) draws:

A. A vertical reference line ✔
B. A title
C. A horizontal line
D. A histogram

Correct answer: A. A vertical reference line

78. plt.suptitle() sets:

A. An axis label
B. A legend
C. A tick label
D. A title for the whole figure with subplots ✔

Correct answer: D. A title for the whole figure with subplots

79. sharex=True in plt.subplots() makes subplots:

A. Share the same x-axis ✔
B. Share colours
C. Share files
D. Share titles

Correct answer: A. Share the same x-axis

80. plt.gca() returns:

A. The current dataset
B. The current axes ✔
C. The current colour
D. The current file

Correct answer: B. The current axes

81. plt.gcf() returns:

A. The current axis label
B. The current function
C. The current legend
D. The current figure ✔

Correct answer: D. The current figure

82. The zorder parameter controls:

A. File order
B. Legend order only
C. Data order
D. Which elements are drawn on top ✔

Correct answer: D. Which elements are drawn on top

83. Matplotlib can save figures as:

A. Only DOCX
B. Only MP3
C. PNG, PDF, SVG and other formats ✔
D. Only TXT

Correct answer: C. PNG, PDF, SVG and other formats

84. SVG output is useful because it:

A. Is always smaller than text
B. Cannot be edited
C. Scales without losing quality ✔
D. Only works in Excel

Correct answer: C. Scales without losing quality

85. A legend location can be set with:

A. place="top"
B. loc="upper right" ✔
C. where="corner"
D. pos=1 only

Correct answer: B. loc="upper right"

86. Missing values (NaN) in a line plot usually:

A. Are drawn in red
B. Crash Python always
C. Become zero automatically
D. Create gaps in the line ✔

Correct answer: D. Create gaps in the line

87. Normalising data before plotting helps to:

A. Change titles
B. Delete outliers
C. Add colours
D. Compare series on different scales ✔

Correct answer: D. Compare series on different scales

88. A time series plot should usually have:

A. Time on the y-axis
B. Time on the x-axis ✔
C. Categories on the x-axis only
D. No axis

Correct answer: B. Time on the x-axis

89. plt.xticks(rotation=45) is used to:

A. Hide ticks
B. Change tick colour
C. Rotate the whole figure
D. Rotate x-axis tick labels by 45 degrees ✔

Correct answer: D. Rotate x-axis tick labels by 45 degrees

90. Grouped bar charts are used to:

A. Compare sub-categories side by side ✔
B. Show a map
C. Show a distribution
D. Show a single total

Correct answer: A. Compare sub-categories side by side

91. A KDE plot shows:

A. A smoothed estimate of a distribution ✔
B. A network
C. A table
D. A pie chart

Correct answer: A. A smoothed estimate of a distribution

92. sns.countplot() shows:

A. Counts of observations in each category ✔
B. Images
C. Correlations
D. Line trends

Correct answer: A. Counts of observations in each category

93. plt.stackplot() creates:

A. A scatter plot
B. A stacked area chart ✔
C. A pie chart
D. A box plot

Correct answer: B. A stacked area chart

94. The main goal of a data visualisation is to:

A. Use maximum effects
B. Look decorative only
C. Hide insights
D. Communicate data clearly and accurately ✔

Correct answer: D. Communicate data clearly and accurately

95. Matplotlib was originally created by:

A. John D. Hunter ✔
B. Wes McKinney
C. Guido van Rossum
D. Linus Torvalds

Correct answer: A. John D. Hunter

96. plt.step() creates:

A. A step plot ✔
B. A pie chart
C. A heatmap
D. A 3D surface

Correct answer: A. A step plot

97. plt.polar() or a polar projection is used for:

A. Saving files
B. Reading CSV
C. Making tables
D. Plotting data in polar coordinates ✔

Correct answer: D. Plotting data in polar coordinates

98. plt.contour() draws:

A. Legends
B. Bar charts
C. Pie slices
D. Contour lines of a 2D function ✔

Correct answer: D. Contour lines of a 2D function

99. The markersize argument controls:

A. The size of markers ✔
B. The font size
C. The figure size
D. The line width

Correct answer: A. The size of markers

100. plt.legend(frameon=False) removes:

A. The plot data
B. The axes
C. The box around the legend ✔
D. The legend text

Correct answer: C. The box around the legend

How to Pass the Data Visualization with Python using Matplotlib Exam

  • Read every question carefully; most options look similar, so look for the most precise answer.
  • Revise the questions above topic by topic rather than memorising letters, because option order can change in the live test.
  • You need 80 correct answers out of 100 to pass, so aim to understand at least 85 to stay safe.
  • If you do not clear it on the first attempt, review the questions you missed and use the retake option.

Frequently Asked Questions

How many questions are in the Data Visualization with Python using Matplotlib exam?

The exam has 100 multiple-choice questions, each worth 1 mark.

What is the passing score for the Data Visualization with Python using Matplotlib?

You need at least 80% (80 out of 100) to pass and receive the certificate.

Can I retake the Data Visualization with Python using Matplotlib exam?

Yes. If you score below 80%, you can retry the test after reviewing the topics.

Is the Itronix certificate verifiable?

Yes. Every certificate issued by Itronix Solutions has a unique ID that can be checked on the Itronix verify-certificate page.

More Data Science & Analytics Certification Answers

Disclaimer: These answers are provided for learning and revision. Questions and answers are checked regularly; if you find a mistake, let us know in the comments.

About Priya Dogra

Priya Dogra runs priyadogra.com, where she shares free certification courses, internships, jobs, scholarships and exam preparation guides for Indian students and freshers. Follow her on YouTube, LinkedIn and Instagram for the latest opportunities.

Check Also

Unix/ Linux Certification exam answers 2026

Unix/ Linux Certification Exam Answers 2026 (All 100 Questions)

All 100 Unix/ Linux Certification exam questions with correct answers highlighted - updated 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *