Programming quiz

Data Visualization Quiz: Matplotlib, Seaborn and Plotly MCQs

Find out whether you can pick the right chart and build it in Python. 60 questions on chart choice, matplotlib, seaborn, plotly, colour and accessibility and spotting misleading graphs, with explanations and a printable mark sheet.

✅ Free · no login60 questions⏱ Timer📝 Explanations🖨 Mark sheet & PDFBeginner to intermediate
Data Visualization Quiz: free online quiz with timer and mark sheet by Codanics
Loading…

Data Visualization Quiz

60 questions · 7 topics · timer · instant explanations · printable mark sheet.

  • Questions60 in the bank, 10–30 per attempt
  • Levels20 easy · 24 medium · 16 hard
  • TimeAbout 5–20 minutes
  • PriceFree, no login needed
  • Made byDr. Aammar Tufail, Codanics
  • Updated18 November 2026

In short: the Data Visualization Quiz is a free online multiple-choice quiz by Codanics with 60 questions on choosing the right chart; Matplotlib basics; Seaborn plots; Plotly basics; colour and accessibility; misleading charts; and EDA with plots. You choose the number of questions and the difficulty, answer against a timer, see an explanation after every answer and finish with a printable mark sheet.

🚀 Follow Codanics for more free quizzes and lessonsNew quizzes, free lessons, scholarships and PhD positions, straight to your phone.

What the Data Visualization Quiz covers

A good chart answers a question at a glance; a bad one hides the answer or, worse, suggests the wrong one. This quiz tests both the thinking (which chart, which scale, which colours) and the code (matplotlib, seaborn and plotly).

You will meet questions on distributions, comparisons, relationships, compositions and time series, plus the most common ways charts mislead readers.

  • Choosing the right chart 9 questions
  • Matplotlib basics 9 questions
  • Seaborn plots 10 questions
  • Plotly basics 7 questions
  • Colour and accessibility 8 questions
  • Misleading charts 8 questions
  • EDA with plots 9 questions

Who it is for: Data science and analytics students, researchers who make figures for papers and anyone who presents data in reports or dashboards.

How the quiz works

  1. Type your name if you want it printed on the mark sheet (optional; it never leaves your browser).
  2. Choose 10, 20 or 30 questions, a difficulty (Easy, Mixed or Hard) and the timer: Standard, Relaxed or none.
  3. Answer each question before the timer runs out. Press A–D or 1–4 on a keyboard, or tap an option on your phone.
  4. Read the explanation after every answer, then press Next.
  5. At the end, get your score, grade, topic-wise breakdown and a full answer review. Print it or save it as a PDF.
  6. Retake the quiz for a fresh random set, or practise only the topics you found hard.

Free video lessons from Codanics

Score lower than you hoped? These free lessons from the Codanics YouTube channel cover the same topics, explained step by step.

▶ Full playlist: Crash courses: data science, Python, ML and DL
Free on the Codanics YouTube channel, taught in Urdu/Hindi.

Sample questions with answers

Here are 9 questions from the bank, with answers and explanations. The quiz above draws from all 60.

1. You want to show how a company's monthly revenue changed over three years. Which chart fits best?
  1. Pie chart
  2. Histogram
  3. Box plot
  4. Line chart

Answer: D. Line chart
Line charts connect ordered points, so they show trends and changes over time clearly. Pie charts show parts of a whole at one moment.

2. What does the following code print? (matplotlib.use('Agg'))
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig, axes = plt.subplots(2, 3)
print(axes.shape)
  1. (3, 2)
  2. (2, 3)
  3. (6,)
  4. (1, 6)

Answer: B. (2, 3)
plt.subplots(nrows, ncols) returns the Figure and a NumPy array of Axes with shape (nrows, ncols). Use axes[0, 2] for row 0, column 2.

3. In many seaborn functions, what does the hue argument do?
  1. Sets the brightness of the whole plot
  2. Colours the data by a grouping variable
  3. Changes the background colour theme
  4. Sets the transparency of all points

Answer: B. Colours the data by a grouping variable
hue maps a column to colour, splitting the plot into coloured groups with a legend, e.g. hue='gender' in a scatter plot.

4. In a box plot, what does the line inside the box represent?
  1. The mean
  2. The median
  3. The mode
  4. The standard deviation

Answer: B. The median
The box spans the first to third quartile (the IQR), and the line inside it marks the median. Box plots do not show the mean by default.

5. What is the usual way to import Plotly's high-level plotting interface?
  1. import plotly.express as px
  2. import plotly as plt
  3. from plotly import pyplot
  4. import express.plotly as px

Answer: A. import plotly.express as px
Plotly Express (px) creates a full figure in one call, e.g. px.scatter(df, x='a', y='b'). plotly.graph_objects (go) is the lower-level interface.

6. Which type of colour palette suits a numeric variable that goes from low to high, such as population density?
  1. Qualitative
  2. Diverging
  3. Sequential
  4. Random

Answer: C. Sequential
A sequential palette goes from light to dark (or the reverse) in one hue family, so darker clearly means more.

7. Which palette type suits values with a meaningful midpoint, such as temperature anomalies above and below the average?
  1. Sequential
  2. Diverging
  3. Qualitative
  4. Single solid colour

Answer: B. Diverging
A diverging palette uses two contrasting hues that meet at a neutral midpoint, showing direction (above or below) as well as size.

8. A bar chart's y-axis starts at 95 instead of 0, making 97 look three times as tall as 96. What is this problem called?
  1. Overplotting
  2. Binning
  3. Truncated axis
  4. Faceting

Answer: C. Truncated axis
Bar length encodes the value, so cutting off the baseline exaggerates small differences. Bar charts should start at zero.

9. A histogram of household income has a long tail stretching to the right. How is this distribution described?
  1. Left-skewed (negatively skewed)
  2. Symmetric
  3. Uniform
  4. Right-skewed (positively skewed)

Answer: D. Right-skewed (positively skewed)
Skew is named after the tail. A long right tail means a few very large values; the mean is pulled above the median.

Free guides and blogs to study

Free tools for your studies and research

Codanics also has 160+ free online tools for students and researchers: statistics calculators, meta-analysis, PDF and writing tools. They run in your browser, with no login.

Browse all free tools →

Frequently asked questions

Is the Data Visualization Quiz free?

Yes. The Data Visualization Quiz is completely free, with no sign-up, no login and no limit on attempts.

How many questions are in the Data Visualization Quiz?

The question bank has 60 multiple-choice questions (20 easy, 24 medium and 16 hard) across 7 topics. Each attempt draws 10, 20 or 30 of them at random, so every attempt is different.

How does the timer work?

Each question has its own countdown: about 25 seconds for easy, 40 for medium and 55 for hard questions, plus 15 seconds when there is code to read. Choose Relaxed to double the time or switch the timer off to study at your own pace. Unanswered questions count as skipped.

Can I get a certificate or mark sheet?

Yes. When you finish, you get a mark sheet with your name, score, grade, time, topic-wise performance and every answer explained. Use Print or save as PDF to keep it. It is a self-assessment result, not an official certificate.

Are the answers and explanations correct?

Every question was written and reviewed for one clearly correct answer, and code questions were checked by running the code. If you think an answer is wrong, tell us on the Codanics WhatsApp channel or in the YouTube comments and we will fix it.

Does the quiz cover Power BI or Tableau?

No, it focuses on Python (matplotlib, seaborn and plotly) and on chart design principles that apply in any tool. Codanics has separate Power BI and Tableau courses and playlists.

Is there an older Codanics data visualization quiz?

Yes, the original data visualization quiz is still on the Codanics blog. This new quiz has a bigger question bank, difficulty levels, a timer and a mark sheet.

Is my data stored anywhere?

No. The quiz runs entirely in your browser. Your name, answers and score are not uploaded. Your best score and settings are remembered only in this browser so you can track your progress.

More free quizzes

See all Codanics quizzes → · Courses · Free tools · Blog

Follow Codanics

Created by Dr. Muhammad Aammar Tufail, Codanics. Published 18 November 2026, last updated 18 November 2026. Found a mistake or want a quiz on another topic? Tell us on the WhatsApp channel or contact us.