Empowering Students with AI-Powered Assessments & Intelligent Learning
Chapter Exam

Chapter-3 Plotting Data using Matplotlib — Online MCQ Test

INFORMATICS PRACTICES · Grade 12 · CBSE(NCERT)

Practice Chapter-3 Plotting Data using Matplotlib with a free chapter-wise online MCQ test for CBSE(NCERT) Grade 12 INFORMATICS PRACTICES. This chapter covers: Matplotlib - Pyplot - line chart - bar graph - histogram - labels - scales - titles - legends. AI-generated questions from basic to board-exam level, with instant results and explanations.

10
Questions
20m
Time Limit
3
Attempts Left
  • 10 random questions from this chapter (mixed difficulty)
  • Questions you've seen before won't repeat until the pool resets
  • You have 20 minutes — exam auto-submits when time is up
  • Maximum 3 attempts per chapter
  • Results and explanations shown immediately after submission
Login to Start This Exam →

New here? Register free — includes 3 free chapter exams.

Chapter-3 Plotting Data using Matplotlib — Important Questions & Answers (FAQ)

Frequently asked questions from CBSE(NCERT) Grade 12 INFORMATICS PRACTICES — Chapter-3 Plotting Data using Matplotlib, with answers and explanations. These are sample questions; the exam has its own separate question set.

Which module in Python is primarily used for data visualization and plotting?
  • A. NumPy
  • B. Matplotlib ✓
  • C. Pandas
  • D. SciPy
Answer: B. Matplotlib
Matplotlib is the primary Python library for creating static, animated, and interactive visualizations including charts and graphs.
What does 'pyplot' refer to in matplotlib?
  • A. A data structure for storing plot data
  • B. A state-based interface for matplotlib ✓
  • C. A function to export plots to PDF
  • D. A library for statistical analysis
Answer: B. A state-based interface for matplotlib
pyplot (matplotlib.pyplot) is a module that provides a MATLAB-like state-based interface for matplotlib, making it easy to create plots.
What does plt.xticks() function do?
  • A. Creates tick marks on the y-axis
  • B. Sets or gets the tick locations on the x-axis ✓
  • C. Rotates the x-axis label
  • D. Adds a legend to the plot
Answer: B. Sets or gets the tick locations on the x-axis
plt.xticks() is used to get or set the locations and labels of the tick marks on the x-axis for better readability.
What does plt.figsize=(10,6) do when creating a figure?
  • A. Sets the number of subplots
  • B. Sets the width and height of the figure in inches ✓
  • C. Sets the resolution of the plot
  • D. Sets the font size of labels
Answer: B. Sets the width and height of the figure in inches
plt.figsize=(10,6) specifies the figure dimensions as width=10 inches and height=6 inches, allowing customization of plot size.
Which statement is true about the linestyle parameter in plt.plot()?
  • A. It can only be set to 'solid'
  • B. It controls the thickness of the line only
  • C. It can be set to values like '-', '--', '-.', ':' for different line styles ✓
  • D. It is mandatory and must be specified in every plot
Answer: C. It can be set to values like '-', '--', '-.', ':' for different line styles
The linestyle parameter allows customization with '-' (solid), '--' (dashed), '-.' (dash-dot), and ':' (dotted) patterns.

Choose Your Plan & Start Practising

All plans cover every subject and chapter of your registered grade.

Free
₹0
3 exams · 1 year
Start Free →
Active
₹350
12 exams · 1 year
Get Active →
Pro
₹899
Unlimited exams · 1 year
Get Pro →

Compare all plans in detail →