CBSE Class 12 Informatics Practices
Question 4 of 147
Plotting with Pyplot — Question 4
Back to all questions 4
Question Assertion. For the same sets of data, you can create various charts using plot(), scatter(), pie(), bar() and barh().
Reason. All the data sets of a plot(), scatter(), bar() cannot be used by pie() ; it will work with only a single set of data.
- 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
We can create various charts using plot(), scatter(), bar(), and barh() for the same datasets, but not using pie(). The pie() function specifically works with a single set of data, whereas the other functions can handle multiple datasets or series.