Class 12 Informatics Practices Mock Tests: Chapter-Wise, Free

Loading educational resources and study material...

Wondering how well you know Informatics Practices? These Class 12 mock tests, made for CBSE 2026-27, give you an instant score after each attempt, so you always know where you stand.

Informatics Practices Mock Tests for Class 12, by Chapter

Below, you'll find one test for each Informatics Practices chapter in Class 12, matched to the CBSE 2026-27 marking scheme. Pick any chapter to start right away - no login required, and you can attempt it again and again.

Click Here for Chapter-wise Class 12 Informatics Practices Practice Tests

Quick Practice - Class 12 Informatics Practices (Python Pandas, Matplotlib, SQL & Societal Impacts)

Select any chapter below to test your data handling, visualization, database queries, and digital ethics knowledge with 5 high-yield multiple-choice questions, instant scoring, and verified model explanations.

Q1.What is the primary difference in dimensions and mutability between a Pandas Series and a Pandas DataFrame?

(a) Series is 1D (1-dimensional) with size-immutability; DataFrame is 2D (2-dimensional) tabular structure with both value and size mutability
(b) Series is 2D and DataFrame is 3D
(c) Both are 1D data structures with identical memory usage
(d) Series holds only integer data types

Q2.What is the output of the following Pandas code?
import pandas as pd
s = pd.Series([10, 20, 30], index=['x', 'y', 'z'])
print(s['y'])

(a) 10
(b) 20
(c) 30
(d) KeyError: 'y'

Q3.Which attribute of a Pandas DataFrame returns a tuple representing the total number of rows and columns (rows, columns)?

(a) df.ndim
(b) df.size
(c) df.shape
(d) df.axes

Q4.What is the primary difference between the loc[] and iloc[] indexing methods in a DataFrame?

(a) loc[] is label-based indexing (inclusive of end limits); iloc[] is integer position-based indexing (exclusive of stop index)
(b) iloc[] is used only for columns
(c) loc[] accepts only negative integers
(d) Both are completely identical in execution

Q5.How can a new column named 'Total' with a constant value of 100 be added to an existing DataFrame df?

(a) df.append('Total', 100)
(b) df.addColumn('Total' = 100)
(c) df.insert('Total', 100)
(d) df['Total'] = 100

Q1.What is the role of the axis parameter when applying aggregate functions (like df.sum() or df.mean()) in a DataFrame?

(a) axis=0 operates across rows horizontally; axis=1 operates vertically down columns
(b) axis=0 (or 'index') computes aggregates vertically down each column; axis=1 (or 'columns') computes aggregates horizontally across each row
(c) axis controls table font color
(d) axis=1 deletes the DataFrame

Q2.Which method is used in Pandas to export DataFrame data into a local CSV (Comma-Separated Values) file?

(a) df.to_csv('output.csv')
(b) df.write_csv('output.csv')
(c) df.save_as('output.csv')
(d) df.export('output.csv')

Q3.Which function is used in Pandas to detect and identify missing or NaN (Not a Number) values in a DataFrame?

(a) df.empty()
(b) df.checknull()
(c) df.isna() or df.isnull()
(d) df.find_nan()

Q4.What is the output of df.tail(2) if the DataFrame df contains 8 rows of data?

(a) The first 2 rows of the DataFrame
(b) The top 5 rows of the DataFrame
(c) All rows except the first 2
(d) The last 2 rows of the DataFrame

Q5.What operation is performed when using df.sort_values(by='Marks', ascending=False)?

(a) Sorts the DataFrame in descending order based on the values in the 'Marks' column
(b) Sorts the index alphabetically
(c) Deletes rows with duplicate marks
(d) Sorts the DataFrame in ascending order

Q1.Which Pyplot function is used to create a vertical Bar Chart in Python?

(a) matplotlib.pyplot.plot() (Line Chart)
(b) matplotlib.pyplot.bar()
(c) matplotlib.pyplot.hist() (Histogram)
(d) matplotlib.pyplot.pie()

Q2.What is the primary difference between a Bar Chart and a Histogram?

(a) A histogram is drawn with circular slices
(b) Bar charts are only used for temperatures
(c) A Bar Chart compares discrete categorical data with spaces between bars; a Histogram displays continuous frequency distribution across class intervals (bins) with touching bars
(d) Histograms cannot show numbers

Q3.Which Pyplot function is executed to display the final rendered figure window on the screen?

(a) plt.show()
(b) plt.display()
(c) plt.draw()
(d) plt.render()

Q4.Which parameter in plt.plot() is used to customize the line style to a dashed line?

(a) color='blue'
(b) marker='o'
(c) linewidth=2
(d) linestyle='--' or linestyle='dashed'

Q5.To save a generated plot directly as an image file (e.g., PNG or JPEG) on the computer disk, which method is used?

(a) plt.save()
(b) plt.savefig('my_chart.png')
(c) plt.export_img()
(d) plt.to_file()

Q1.Which single-row mathematical SQL function is used to calculate $M$ raised to the power of $N$ ($M^N$)?

(a) POW(M, N) or POWER(M, N)
(b) EXP(M, N)
(c) SQRT(M, N)
(d) CALC(M^N)

Q2.What will be the output of the SQL query: SELECT MID("INFORMATICS PRACTICES", 5, 6);?

(a) INFO
(b) FORMAT
(c) RMATI
(d) ORMATI

Q3.Which SQL date function extracts and returns the name of the day (e.g., 'Monday', 'Friday') from a specified date?

(a) DAY()
(b) DAYNAME()
(c) MONTHNAME()
(d) WEEKDAY()

Q4.What is the evaluated output of the SQL function ROUND(156.785, 2)?

(a) 156.79
(b) 156.78
(c) 156.80
(d) 160.00

Q5.Which SQL clause is used in conjunction with the GROUP BY statement to filter and place conditions on grouped records?

(a) WHERE
(b) ORDER BY
(c) DISTINCT
(d) HAVING

Q1.What type of computer network spans across cities, countries, or the entire globe (e.g., the Internet)?

(a) LAN (Local Area Network)
(b) WAN (Wide Area Network)
(c) PAN (Personal Area Network)
(d) MAN (Metropolitan Area Network)

Q2.Which network hardware device is an intelligent device that receives incoming data packets, inspects the destination MAC address, and forwards the packet directly to the specific destination port?

(a) Passive Hub (broadcasts to all ports)
(b) Repeater
(c) Switch
(d) RJ-45 Connector

Q3.What is the primary role of a Modem (Modulator-Demodulator) in data communication?

(a) Converts digital signals from a computer into analog signals for transmission over telephone cables, and vice-versa
(b) Amplifies WiFi range only
(c) Encrypts SQL passwords
(d) Stores website cookies

Q4.In a static web page vs. dynamic web page comparison, dynamic web pages are characterized by:

(a) Having unchanged content for every visitor
(b) Requiring zero internet connection
(c) Written only in plain text without CSS
(d) Generating customized interactive content in real time from databases using server-side scripting (e.g., user profiles, search results)

Q5.Which protocol is responsible for resolving user-friendly domain names (e.g., www.cbse.gov.in) into machine-readable IP addresses (e.g., 164.100.54.21)?

(a) HTTP
(b) DNS (Domain Name System)
(c) FTP
(d) SMTP

Q1.The unique trail of data, traces, and personal browsing history left behind whenever an individual accesses the Internet is termed their:

(a) Digital Copyright
(b) Intellectual Property
(c) Digital Footprint (Active and Passive)
(d) Firewall Log

Q2.The unethical practice of taking someone else's literary work, software code, ideas, or research and presenting them as one's own without attribution is called:

(a) Plagiarism
(b) Phishing
(c) Hacking
(d) Cyberstalking

Q3.What is the primary legislation in India that provides a legal framework for electronic commerce, cyber crimes, and data protection?

(a) Indian Penal Code 1860 only
(b) Information Technology Act, 2000 (IT Act 2000, amended in 2008)
(c) Consumer Protection Act 2019
(d) Companies Act 2013

Q4.Free and Open Source Software (FOSS) licenses (such as GNU GPL or Creative Commons) provide users with the freedom to:

(a) Run the software for test periods only
(b) Use the program without accessing the code
(c) Pay mandatory annual royalties
(d) Run, inspect the source code, modify the program, and redistribute copies freely

Q5.Discarded electronic devices such as obsolete computer motherboards, broken smartphones, and CRT monitors are classified as:

(a) Municipal compost
(b) E-Waste (Electronic Waste), which requires specialized recycling due to toxic lead and mercury content
(c) Biodegradable waste
(d) Non-hazardous dry trash

FAQs

How do I access the 2026-27 Class 12 Informatics Practices Online Mock Tests?

You can start the latest Informatics Practices mock tests for Class 12 by selecting your chapter from the links above. These tests are free, dont need login and are optimized for the 2026-27 academic session.

Are the Class 12 online tests based on the new CBSE MCQ pattern?

Yes, our Informatics Practices online tests are strictly as per the latest CBSE pattern with 20% MCQ weightage and main focus on competency-based and case-study questions.

Can I see my score and answers instantly after the Informatics Practices test?

After submitting your Class 12 Informatics Practices test, you can see score report and correct/incorrect answers.

Is there a limit to how many times I can attempt these Class 12 mock tests?

There are no limits. You can re-attempt any Informatics Practices online test as many times for free, master concepts, improve your speed and accuracy.

Do these Class 12 Informatics Practices tests work on smartphones?

Yes, the StudiesToday online test platform is mobile-first. Class 12 Informatics Practices students can take these tests on any smartphone.

How do online mock tests help in Class 12 Informatics Practices exam preparation?

Online tests help Class 12 students build confidence and time management. By solving above tests MCQs you can apply theoretical knowledge which is important for 2026-27 exams.