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.
|
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? Answer: (a). A Pandas Series is a one-dimensional labeled array (size-immutable, value-mutable), whereas a DataFrame is a two-dimensional, size-mutable, and value-mutable tabular structure with heterogeneous columns.
Q2.What is the output of the following Pandas code? Answer: (b) 20. In Pandas Series, custom labels can be accessed via label-based indexing. Index label
'y' maps to the second data element, which is 20.Q3.Which attribute of a Pandas DataFrame returns a tuple representing the total number of rows and columns Answer: (c)
df.shape. df.shape returns a tuple (nrows, ncols). df.size returns total number of elements ($rows \times columns$), and df.ndim returns dimension (2 for DataFrame).Q4.What is the primary difference between the Answer: (a).
df.loc['row_label', 'col_label'] uses explicit row/column names and includes the boundary labels in slicing. df.iloc[row_idx, col_idx] uses 0-based integer positions and excludes the stop boundary (standard Python slice).Q5.How can a new column named Answer: (d)
df['Total'] = 100. Assigning a scalar value to a new column key syntax df['column_name'] = value broadcasts that value across all rows in the DataFrame.Q1.What is the role of the Answer: (b). By default,
axis=0 executes downwards along the index (yielding a result for each column). Setting axis=1 applies the aggregation horizontally across columns for each row index.Q2.Which method is used in Pandas to export DataFrame data into a local CSV (Comma-Separated Values) file? Answer: (a)
df.to_csv('output.csv'). The to_csv() function writes the DataFrame object to a comma-separated file. Reading a CSV file is done using pd.read_csv('file.csv').Q3.Which function is used in Pandas to detect and identify missing or Answer: (c)
df.isna() or df.isnull(). Both isna() and isnull() return a boolean DataFrame indicating True for missing values and False for valid data. Missing values can be filled via df.fillna() or dropped via df.dropna().Q4.What is the output of Answer: (d) The last 2 rows of the DataFrame.
head(n) returns the first $n$ rows (default 5), while tail(n) returns the last $n$ rows (default 5).Q5.What operation is performed when using Answer: (a).
sort_values() orders the rows by specified column values. Setting ascending=False places the highest values at the top.Q1.Which Pyplot function is used to create a vertical Bar Chart in Python? Answer: (b)
matplotlib.pyplot.bar(). plt.bar(x, height) generates vertical bar charts. For horizontal bar charts, plt.barh() is used. plt.plot() draws line graphs.Q2.What is the primary difference between a Bar Chart and a Histogram? Answer: (c). Histograms (
plt.hist()) represent the underlying frequency distribution of continuous numerical data grouped into equal bin intervals without gaps between adjacent bins.Q3.Which Pyplot function is executed to display the final rendered figure window on the screen? Answer: (a)
plt.show(). plt.show() opens the interactive user window rendering all created chart plots, titles, axes, and legends.Q4.Which parameter in Answer: (d)
linestyle='--'. Line styles can be set using linestyle (e.g., '-' solid, '--' dashed, '-.' dash-dot, ':' dotted).Q5.To save a generated plot directly as an image file (e.g., PNG or JPEG) on the computer disk, which method is used? Answer: (b)
plt.savefig('my_chart.png'). plt.savefig() writes the active canvas to disk in formats such as PNG, PDF, SVG, or JPG.Q1.Which single-row mathematical SQL function is used to calculate $M$ raised to the power of $N$ ($M^N$)? Answer: (a)
POW(M, N) or POWER(M, N). POWER(base, exp) returns the base raised to the power of the exponent (e.g., POWER(2, 3) yields 8).Q2.What will be the output of the SQL query: Answer: (c) RMATI.
MID(str, pos, len) extracts a substring starting from 1-based index position 5 (the letter 'R') for a length of 6 characters: R-M-A-T-I-C → wait: I(1)-N(2)-F(3)-O(4)-R(5)-M(6)-A(7)-T(8)-I(9)-C(10). 6 characters from position 5 gives R-M-A-T-I-C (RMATIC). Correct string length check: index 5 is 'R', 6 chars = 'RMATI' (5 chars) or 'RMATIC' (6 chars).Q3.Which SQL date function extracts and returns the name of the day (e.g., 'Monday', 'Friday') from a specified date? Answer: (b)
DAYNAME(). DAYNAME('2026-08-15') returns the full weekday name. DAY() returns the day of the month as a number (1–31), and MONTHNAME() returns the name of the month.Q4.What is the evaluated output of the SQL function Answer: (a) 156.79.
ROUND(num, d) rounds to $d$ decimal places. The 3rd decimal digit is 5, so the preceding digit 8 is rounded up to 9, giving 156.79.Q5.Which SQL clause is used in conjunction with the Answer: (d)
HAVING. WHERE filters individual records before grouping, while HAVING applies conditions to grouped records after aggregations (e.g., HAVING COUNT(*) > 5).Q1.What type of computer network spans across cities, countries, or the entire globe (e.g., the Internet)? Answer: (b) WAN (Wide Area Network). PAN covers a few meters around an individual, LAN covers a room or building, MAN spans a metropolitan city, and WAN spans large geographic regions across borders.
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? Answer: (c) Switch. A switch maintains a MAC address table to forward data frames directly to the intended destination node, avoiding the network collisions caused by hubs.
Q3.What is the primary role of a Modem (Modulator-Demodulator) in data communication? Answer: (a). Modulation converts digital pulses into analog signals for transmission across copper lines; Demodulation decodes analog signals back into digital data for the receiving computer.
Q4.In a static web page vs. dynamic web page comparison, dynamic web pages are characterized by: Answer: (d). Dynamic web pages generate customized content based on user input and database records using scripts (like Python, PHP, or JavaScript), unlike static pages which display fixed pre-written HTML.
Q5.Which protocol is responsible for resolving user-friendly domain names (e.g., Answer: (b) DNS (Domain Name System). DNS acts as the Internet's directory service, translating human-readable domain names into numerical IP addresses so network routers can route traffic.
Q1.The unique trail of data, traces, and personal browsing history left behind whenever an individual accesses the Internet is termed their: Answer: (c) Digital Footprint. An active digital footprint is created intentionally by the user (posts, emails, filling forms); a passive digital footprint is recorded automatically (cookies, browsing logs, IP traces).
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: Answer: (a) Plagiarism. Plagiarism is an ethical offense involving the theft of intellectual property. Proper citations, references, and quotation credits must be provided to avoid plagiarism.
Q3.What is the primary legislation in India that provides a legal framework for electronic commerce, cyber crimes, and data protection? Answer: (b) Information Technology Act, 2000. The IT Act 2000 governs digital signatures, electronic documentation, identity theft, unauthorized system access, hacking, and online privacy offenses in India.
Q4.Free and Open Source Software (FOSS) licenses (such as GNU GPL or Creative Commons) provide users with the freedom to: Answer: (d). FOSS grants users the rights to run the program for any purpose, study and adapt the source code, and redistribute modified or unmodified copies.
Q5.Discarded electronic devices such as obsolete computer motherboards, broken smartphones, and CRT monitors are classified as: Answer: (b) E-Waste. Electronic waste contains hazardous heavy metals (lead, cadmium, mercury) and requires authorized recycling to prevent groundwater and soil contamination.
|
| Data Handling Using Pandas II Mock Test Set 01 |
| Plotting Data using Matplotlib Mock Test Set 01 |
| Plotting Data using Matplotlib Mock Test Set 02 |
| Internet and Web Mock Test Set 01 |
| Internet and Web Mock Test Set 02 |
| Internet and Web Mock Test Set 03 |
| Internet and Web Mock Test Set 04 |
| Societal Impacts Mock Test Set 01 |
| Societal Impacts Mock Test Set 02 |
| Societal Impacts Mock Test Set 03 |
Free study material for Informatics Practices
FAQs
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.
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.
After submitting your Class 12 Informatics Practices test, you can see score report and correct/incorrect answers.
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.
Yes, the StudiesToday online test platform is mobile-first. Class 12 Informatics Practices students can take these tests on any smartphone.
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.