Courseiva
Exploratory Data AnalysismediumMultiple SelectObjective-mapped

MLS-C01 Box plot Practice Question

A data scientist is performing EDA on a dataset with both numeric and categorical features. Which TWO techniques are appropriate for visualizing the relationship between a numeric feature and a binary categorical target?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Violin plot grouped by target

Correct options are C (violin plot grouped by target) and D (box plot grouped by target). Both are effective for visualizing the distribution of a numeric feature across two categories of a binary target. A violin plot combines a box plot and a density plot, showing the full distribution shape, while a box plot displays medians, quartiles, and outliers. Option A (histogram) shows distribution of a single numeric variable but does not directly compare groups. Option B (stacked bar chart) is for categorical vs categorical data. Option E (scatter plot) is for two numeric variables.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Histogram

    Why it's wrong here

    Histogram shows distribution of a single numeric variable.

  • Stacked bar chart

    Why it's wrong here

    Stacked bar chart is for categorical-categorical relationships.

  • Violin plot grouped by target

    Why this is correct

    Violin plots show distribution and density across categories.

  • Box plot grouped by target

    Why this is correct

    Box plots compare numeric distributions across categories.

  • Scatter plot

    Why it's wrong here

    Scatter plot is for two numeric variables.

About these practice questions

Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.