CBSE Class 12 Informatics Practices Question 1 of 147

Plotting with Pyplot — Question 1

Back to all questions
1
Question

Question 1

Assertion. The matplotlib library of Python is used for data visualization.

Reason. The PyPlot interface of matplotlib library is used for 2D plotting.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

Both A and R are true and R is the correct explanation of A.

Explanation
The Matplotlib library is used for data visualization in Python, providing a variety of tools and functionalities for creating different types of plots, charts, and graphs. The Pyplot module, which is a collection of methods within the Matplotlib library, allows users to construct 2D plots easily and interactively.