MCQ Collection
Data Visualization MCQs
Practice Data Visualization questions with answers and explanations.
Choose an option to check your answer.
Correct Answer: C. The probabilities over all possible outcomes sum to 1
Explanation:
Total probability across the complete discrete sample space must equal one.
Individual probabilities must also lie between zero and one.
Choose an option to check your answer.
Correct Answer: C. It allows results and debugging steps to be repeated exactly
Explanation:
A fixed seed lets collaborators recreate the same simulated sample.
This supports verification and diagnosis of computational workflows.
Choose an option to check your answer.
Correct Answer: D. Decorative elements that do not improve understanding of the data
Explanation:
Chart junk consumes attention without adding information.
Examples include unnecessary gradients, textures, and three-dimensional effects.
Choose an option to check your answer.
Correct Answer: D. A logical vector indicating which elements of x are missing
Explanation:
is.na() tests each element for the NA missing-value marker.
The result can be used for filtering or counting missing observations.
Choose an option to check your answer.
Correct Answer: D. sample()
Explanation:
sample() draws elements with or without replacement.
It is commonly used for resampling, permutation, and simulation.
Choose an option to check your answer.
Correct Answer: A. To discover patterns, anomalies, and structure before formal modeling
Explanation:
EDA helps analysts understand what the data contains before choosing a model.
It emphasizes discovery, diagnosis, and informed question refinement.
Choose an option to check your answer.
Correct Answer: A. The display should highlight comparisons relevant to the decision
Explanation:
Decision-oriented visualization should foreground the quantities and trade-offs that matter.
Irrelevant detail can obscure actionable evidence.
Choose an option to check your answer.
Correct Answer: A. na.rm = TRUE
Explanation:
Setting na.rm to TRUE removes NA values for the calculation.
Without it, a missing value usually causes mean() to return NA.
Choose an option to check your answer.
Correct Answer: A. A compact set of descriptive statistics including quartiles and the mean
Explanation:
summary() reports values such as the minimum, quartiles, median, mean, and maximum.
It offers a quick numerical overview of a variable.
Choose an option to check your answer.
Correct Answer: B. Inspect the variables, data types, and data quality
Explanation:
Initial inspection reveals the structure and limitations of the dataset.
This prevents inappropriate summaries, charts, and transformations later.
Choose an option to check your answer.
Correct Answer: B. A quickly produced display used to investigate data and generate questions
Explanation:
Exploratory graphs support rapid investigation rather than polished publication.
They are often revised as the analyst learns more about the data.
Choose an option to check your answer.
Correct Answer: B. Categorical data with defined levels
Explanation:
Factors store categorical values together with their possible levels.
They are useful in summaries, models, and grouped visualizations.