Completed

Data Visualization — Line + Bar

Class 12 · Informatics Practices Sat, 10 Oct 2026 9:00 PM 60s / question 15 questions · 15 marks

Questions From This Challenge

Q1mcq1 mark
Which Matplotlib function is used to draw a line plot?
plt.plot() ✓
plt.line()
plt.draw()
plt.trend()
Q2mcq1 mark
Which Matplotlib function is used to draw a bar graph?
plt.bar() ✓
plt.column()
plt.block()
plt.rect()
Q3mcq1 mark
Which function is used to set the label of the x-axis on a Matplotlib chart?
plt.xlabel() ✓
plt.xaxis()
plt.x_title()
plt.setx()
Q4mcq1 mark
Which function is used to set the label of the y-axis on a Matplotlib chart?
plt.ylabel() ✓
plt.yaxis()
plt.y_title()
plt.sety()
Q5mcq1 mark
Which function sets the overall title displayed above a Matplotlib chart?
plt.title() ✓
plt.heading()
plt.caption()
plt.name()
Q6mcq1 mark
Which function displays a legend box identifying the different data series shown on a Matplotlib chart?
plt.legend() ✓
plt.key()
plt.labels()
plt.identify()
Q7mcq1 mark
Which function must typically be called to actually display the constructed Matplotlib chart on screen?
plt.show() ✓
plt.display()
plt.render()
plt.open()
Q8mcq1 mark
Which import statement is the standard convention used to bring Matplotlib's plotting interface into a Python program?
import matplotlib.pyplot as plt ✓
import matplotlib as plt
from matplotlib import pyplot
import pyplot as plt
Q9mcq1 mark
In the call plt.plot(months, sales), what do the 'months' and 'sales' arguments represent?
The x-axis data values and the y-axis data values respectively ✓
Only chart labels, not actual data
The chart title and its subtitle
Two separate legend entries
Q10mcq1 mark
A line plot (plt.plot()) is most appropriate for visualizing which kind of data?
A trend or change in a value over a continuous sequence, such as months ✓
The relative sizes of unrelated, unordered categories
The frequency distribution of a single numeric variable
A single isolated data point
Q11mcq1 mark
A bar graph (plt.bar()) is most appropriate for visualizing which kind of data?
Comparing values across distinct, separate categories ✓
The continuous trend of a single variable over time
The internal structure of a single data point
Random noise in a dataset
Q12mcq1 mark
Which parameter of plt.plot() supplies the text that plt.legend() later displays for that line?
label ✓
name
title
caption
Q13mcq1 mark
Which of the following chart types is explicitly NOT part of the CBSE Class 12 IP (065) Matplotlib syllabus?
Pie chart ✓
Line plot
Bar graph
Histogram
Q14mcq1 mark
In the call plt.bar(cities, population), what does the first argument 'cities' represent on the resulting chart?
The category labels placed along the x-axis, one per bar ✓
The height of each bar
The color of each bar
The chart's title
Q15mcq1 mark
What is the primary purpose of data visualization tools like Matplotlib in data analysis?
To present numeric data visually so patterns and comparisons are easier to understand at a glance ✓
To permanently store data on disk
To validate that a DataFrame has no missing values
To convert a DataFrame into a CSV file
Next Live Challenge
Network Types
Class 12 · Informatics Practices Fri, 23 Oct 2026, 9:00 PM
View Live Challenges →

← Back to Live Challenge History · Practice MCQs

CodeBuddy
Hi there! 👋 I'm CodeBuddy, your KV Coders assistant.

To help me give you the most accurate answers, please select your class and subject below, or just type your question!
Buddy is typing...