Class 12 Informatics Practices
CBQ Practice
Competency Based Questions · 5 chapters · 10 CBQ sets
Pandas — Series and DataFrame
2 setsRead the passage
To find the average Maths marks in the DataFrame df, the correct Pandas code is:
1MTo filter students who scored above 80 in Maths, the correct code is:
1MTo handle missing values by filling them with 0, the correct code is:
1MExplain the difference between a Pandas Series and a DataFrame. How is a DataFrame created from a dictionary?
1MIn Pandas, `df.dropna()` and `df.fillna()` serve different purposes for missing data.
`df.dropna()` removes rows (or columns) containing missing values entirely, while `df.fillna(value)` replaces missing values with a specified value — preserving the data structure but substituting a meaningful value for NaN.
Data Visualisation with Matplotlib
2 setsRead the passage
To add a title 'Monthly Sales' to a Matplotlib chart, the correct code is:
1MA histogram is most appropriate for visualising:
1MTo display the chart on screen after drawing it, the correct Matplotlib command is:
1MWhen should you use a pie chart vs a bar chart? Give the appropriate scenario for each.
1MA scatter plot is used to identify the relationship between two numerical variables.
By plotting each data point as a pair (x, y) on a coordinate system, scatter plots reveal patterns like positive correlation (both increase together), negative correlation (one increases as the other decreases), or no correlation (random spread).
SQL — Database Queries
2 setsRead the passage
The SQL query to find all students in Class 12 is:
1MThe SQL command to find the average MarksObtained for each Subject is:
1MTo join STUDENT and MARKS tables and show Name with MarksObtained, the correct query uses:
1MExplain the difference between WHERE and HAVING clauses in SQL. When is HAVING used?
1MPRIMARY KEY in a database table cannot contain NULL values.
A Primary Key uniquely identifies each row in a table — if NULL were allowed, two rows could both have NULL as their key, making unique identification impossible and violating the entity integrity rule.
Computer Networks
2 setsRead the passage
In a star topology, if the central switch fails:
1MA router is used to connect the school network to the internet. A router operates at which layer of the OSI model?
1MThe subnet 192.168.1.0/24 provides how many usable host IP addresses?
1MDistinguish between HTTP and HTTPS. Why is HTTPS important for online banking websites?
1MA switch is more efficient than a hub for connecting computers in a LAN.
A hub broadcasts data to all connected devices regardless of the destination, wasting bandwidth and creating collisions, while a switch learns MAC addresses and sends data only to the specific destination port, reducing collisions and improving efficiency.
Emerging Trends and Society
2 setsRead the passage
The AI system that learns from 2 million labelled X-ray images to classify new X-rays is an example of:
1MNatural Language Processing (NLP) in the context of reading patient records refers to:
1MThe concern about patient data safety in the AI system relates to which aspect of digital ethics?
1MWhat is the Internet of Things (IoT)? Give two examples of IoT in healthcare.
1MCloud computing allows users to access computing resources without owning physical hardware.
Cloud providers like AWS, Google Cloud, and Microsoft Azure own vast data centres and provide computing power, storage, and software over the internet on a pay-per-use model — users access these resources through a browser or API without purchasing servers.