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

Chapter-1 Data Handling using Pandas - I — Online MCQ Test

INFORMATICS PRACTICES · Grade 12 · CBSE(NCERT)

Practice Chapter-1 Data Handling using Pandas - I with a free chapter-wise online MCQ test for CBSE(NCERT) Grade 12 INFORMATICS PRACTICES. This chapter covers: Pandas - Series - DataFrame - dictionaries - lists - ndarray - indexing. 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-1 Data Handling using Pandas - I — Important Questions & Answers (FAQ)

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

Which of the following is the primary data structure in Pandas used to handle one-dimensional labeled data?
  • A. Series ✓
  • B. DataFrame
  • C. ndarray
  • D. Dictionary
Answer: A. Series
A Pandas Series is a one-dimensional labeled array capable of holding any data type, with an associated index for labeling.
What does 'ndarray' stand for in NumPy?
  • A. Named data array
  • B. N-dimensional array ✓
  • C. Numeric data array
  • D. New dimensional array
Answer: B. N-dimensional array
ndarray stands for N-dimensional array, which is the fundamental data structure in NumPy for storing homogeneous numerical data.
Which data structure in Pandas is best suited for handling two-dimensional tabular data with rows and columns?
  • A. Series
  • B. DataFrame ✓
  • C. Dictionary
  • D. List
Answer: B. DataFrame
A DataFrame is a two-dimensional labeled data structure with rows and columns, similar to a spreadsheet or SQL table.
In Pandas, what is the index of a Series used for?
  • A. To store numerical values only
  • B. To label and access elements ✓
  • C. To increase memory usage
  • D. To sort the data automatically
Answer: B. To label and access elements
The index in a Pandas Series provides labels for each element, allowing for easy and intuitive data access and retrieval.
In Pandas, how can you access a single element from a Series using label-based indexing?
  • A. Using square brackets with integer position
  • B. Using the iloc[] method
  • C. Using square brackets with the label ✓
  • D. Using the at[] method
Answer: C. Using square brackets with the label
Label-based indexing in Pandas uses square brackets with the label (index) to access specific elements: series['label'].
What is the difference between loc[] and iloc[] in Pandas?
  • A. loc[] uses labels while iloc[] uses integer positions ✓
  • B. loc[] uses integer positions while iloc[] uses labels
  • C. Both are identical methods
  • D. iloc[] is faster than loc[]
Answer: A. loc[] uses labels while iloc[] uses integer positions
loc[] provides label-based indexing, while iloc[] provides integer position-based indexing in Pandas data structures.
What is the primary advantage of using Pandas over Python lists for data manipulation?
  • A. Lists are always faster
  • B. Pandas provides labeled indexing, vectorized operations, and built-in data analysis functions ✓
  • C. Lists can handle larger datasets
  • D. Pandas requires less memory
Answer: B. Pandas provides labeled indexing, vectorized operations, and built-in data analysis functions
Pandas provides labeled data access, vectorized operations without loops, and integrated statistical and data manipulation functions unavailable in basic lists.
Which of the following statements about DataFrame columns is TRUE?
  • A. All columns must have identical data types
  • B. Each column is internally a Pandas Series with its own index ✓
  • C. Columns cannot be added after DataFrame creation
  • D. DataFrame columns must be numeric
Answer: B. Each column is internally a Pandas Series with its own index
Each column in a DataFrame is stored as a Pandas Series, maintaining the same index for all rows and allowing different data types per column.
In a competitive exam scenario, a student needs to select specific rows from a DataFrame where a condition is true. Which approach is most efficient?
  • A. Using a for loop to check each row
  • B. Boolean indexing: df[df['column'] > threshold] ✓
  • C. Using .filter() method with string patterns
  • D. Converting to list and filtering manually
Answer: B. Boolean indexing: df[df['column'] > threshold]
Boolean indexing with vectorized conditions is the most efficient and Pythonic way to filter DataFrame rows, leveraging Pandas' optimized operations.
Given a Series with mixed data types stored as objects, which operation would require special handling and is prone to errors?
  • A. Accessing elements by label
  • B. Applying mathematical operations across the entire Series without type conversion ✓
  • C. Sorting the Series
  • D. Changing index labels
Answer: B. Applying mathematical operations across the entire Series without type conversion
Mathematical operations on a Series with mixed/object data types require explicit type conversion; attempting operations directly will cause errors for non-numeric types.

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 →
NEET
₹999
Unlimited exams · 1 year
Get NEET →

Compare all plans in detail →