CBSE Class 12 Informatics Practices
Question 4 of 73
Data Visualization using Matplotlib — Question 4
Back to all questions 4
Question Assertion (A): A histogram is basically used to represent data provided in the form of groups spread in non-continuous ranges.
Reasoning (R): matplotlib.pyplot.hist() function is used to compute and create histogram of a variable.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
A is false but R is true.
Explanation
A histogram is used to represent data provided in the form of discrete or continuous ranges. The matplotlib.pyplot.hist() function is used to compute and create a histogram of a variable.