Completed

Data Visualization — Histogram + Unit 1 Revision

Class 12 · Informatics Practices Sun, 11 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 histogram?
plt.hist() ✓
plt.frequency()
plt.distribution()
plt.bins()
Q2mcq1 mark
What does a histogram primarily show about a dataset?
The frequency distribution of numeric data grouped into intervals (bins) ✓
The exact sequence in which data values were recorded
A comparison of totally unrelated categorical labels
The correlation between two different variables
Q3mcq1 mark
Which parameter of plt.hist() controls how many intervals (bins) the data range is divided into?
bins ✓
intervals
groups
buckets
Q4mcq1 mark
What is the key difference between a bar graph and a histogram?
A bar graph compares distinct categories, while a histogram shows the frequency of continuous numeric data grouped into ranges ✓
A bar graph can only be drawn from a DataFrame, while a histogram cannot
A histogram always uses more colors than a bar graph
There is no real difference between the two
Q5mcq1 mark
Which Pandas object represents a single one-dimensional column of data along with an associated index?
Series ✓
DataFrame
Array
Table
Q6mcq1 mark
Which Pandas object represents a two-dimensional, labeled data structure with rows and columns?
DataFrame ✓
Series
ndarray
dict
Q7mcq1 mark
Which method returns the first n rows of a DataFrame or Series (5 rows by default)?
head() ✓
top()
first()
start()
Q8mcq1 mark
Which DataFrame indexing method, covered this unit, selects rows and columns using their labels?
.loc[] ✓
.iloc[]
.at[0]
.pos[]
Q9mcq1 mark
Which function, covered this unit, reads a CSV file's contents directly into a DataFrame?
pd.read_csv() ✓
pd.DataFrame.load()
pd.open()
pd.csv()
Q10mcq1 mark
Boolean indexing on a DataFrame, such as df[df['Age'] > 18], filters rows based on what?
A condition that evaluates to True or False for each row ✓
The alphabetical order of the row labels
The number of columns present
The file the DataFrame was loaded from
Q11mcq1 mark
To visualize how a company's monthly revenue changed continuously across all 12 months of a year, which chart type is most appropriate?
Line plot ✓
Bar graph
Histogram
None of the three are suitable
Q12mcq1 mark
To compare the total population of five different, unrelated cities side by side, which chart type is most appropriate?
Bar graph ✓
Line plot
Histogram
None of the three are suitable
Q13mcq1 mark
To show how 60 students' marks (out of 100) are distributed across 10-mark ranges (0-10, 11-20, etc.), which chart type is most appropriate?
Histogram ✓
Line plot
Bar graph
None of the three are suitable
Q14mcq1 mark
Which of the following operations is explicitly NOT permitted under the CBSE Class 12 IP (065) Pandas syllabus?
df.groupby('col') ✓
df.loc['a']
df.head()
df['col']
Q15mcq1 mark
Which method, covered this unit, exports a DataFrame's contents into a CSV file?
to_csv() ✓
export()
save()
write()
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...