CBSE Class 12 Informatics Practices Question 35 of 73

Data Visualization using Matplotlib — Question 12

Back to all questions
12
Question

Question 12

Python Matplotlib ............... is used to compare different categorical or discrete variables.

  1. line plot
  2. bar graph
  3. histogram
  4. boxplot
Answer

bar graph

Reason — A bar graph is a type of plot that uses rectangular bars with heights or lengths proportional to the values they represent to compare different categorical or discrete variables.