SAMPLE QUESTION PAPER (2026-27)
CLASS XII | INFORMATICS PRACTICES (065)
SET – 6 (Advanced Practice Paper)
Time Allowed: 3 Hours
Maximum Marks: 70
General Instructions:
- Please check this question paper contains 37 questions.
- All questions are compulsory. However, internal choices have been provided in some questions. Attempt only one of the choices in such questions.
- The paper is divided into 5 Sections – A, B, C, D and E.
- Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
- Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
- Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
- Section D consists of 2 case study type questions (33 to 34). Each question carries 4 Marks.
- Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
- All programming questions are to be answered using Python Language only.
- In case of MCQ, text of the correct answer should also be written.
| Q No. | Section-A (21 × 1 = 21 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 |
State whether the following statement is True or False: In Pandas, if a DataFrame df has custom string index labels ['r1', 'r2', 'r3'], executing df.iloc[-1] raises a KeyError because negative labels do not exist in the index.
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 2 |
What will be the exact output of the following SQL query?
SELECT TRUNCATE(689.99, -1) + ROUND(45.5, 0);
(A) 726 (B) 736 (C) 735 (D) 725
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 3 |
Which network device operates at the Data Link Layer (Layer 2) of the OSI model, maintains a MAC address table, and forwards data frames exclusively to the intended destination port rather than broadcasting to all ports?
(A) Active Hub (B) Switch (C) Repeater (D) Modem
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 4 |
In MySQL, if a table EMP has 6 rows and the Comm column contains NULL in 2 rows and 0 in 1 row, what will SELECT COUNT(*) - COUNT(Comm) FROM EMP; return?
(A) 3 (B) 2 (C) 1 (D) 0
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 5 |
An attacker secretly intercepts and monitors unencrypted data packets traveling between a user’s laptop and a public Wi-Fi router without altering the messages. This cyber attack is known as:
(A) Ransomware (B) Phishing (C) Eavesdropping (D) Cyberstalking
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 6 |
What will be the output of the following Python snippet?
import pandas as pd s = pd.Series([10, 20, 30], index=['a', 'b', 'c']) print(s.reindex(['b', 'd', 'a']).isnull().sum())
(A) 0 (B) 1 (C) 2 (D) KeyError
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 7 |
Which argument in Matplotlib’s plt.hist() function specifies the exact intervals or number of contiguous bars used to group numerical data?
(A)
bars (B) bins (C) intervals (D) width
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 8 |
What will be the output of the following SQL query?
SELECT INSTR(TRIM(' DATA SCIENCE '), 'SCI');
(A) 5 (B) 6 (C) 9 (D) 8
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 9 |
When exporting a Pandas DataFrame df to a CSV file using df.to_csv('out.csv', index=False, header=False), if df has 4 rows and 3 columns, how many lines of text will be written to out.csv?
(A) 5 (B) 4 (C) 3 (D) 12
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 10 |
Which software license strictly requires that any derivative work created by modifying the original open-source code must also be distributed under the exact same open-source license terms?
(A) Freeware (B) GNU GPL (Copyleft) (C) Shareware (D) Proprietary License
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 11 |
Consider the table EMPLOYEES:
SELECT SUM(Bonus) / COUNT(*) FROM EMPLOYEES;
(A) 4000 (B) 3000 (C) 6000 (D) NULL
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 12 |
In a network with 6 nodes arranged in a pure Mesh topology, how many dedicated point-to-point duplex cables are required to connect every node directly to every other node?
(A) 12 (B) 15 (C) 30 (D) 6
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 13 |
Predict the output of the following Python code:
import pandas as pd s = pd.Series([100, 200, 300, 400], index=[1, 2, 3, 4]) print(s.loc[1:3].count() + s.iloc[1:3].count())
(A) 4 (B) 5 (C) 6 (D) 3
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 14 |
Which protocol allows users to view and manage email messages directly on the mail server across multiple devices without automatically deleting them after download?
(A) SMTP (B) IMAP (C) FTP (D) VoIP
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 15 |
What will be the shape (df.shape) of a DataFrame created from a nested dictionary {'Col1': {'R1': 1, 'R2': 2}, 'Col2': {'R2': 3, 'R3': 4}}?
(A)
(2, 2) (B) (3, 2) (C) (2, 3) (D) (4, 2)
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 16 |
Match the following SQL String & Math expressions with their exact outputs:
(A) P-2, Q-1, R-4, S-3 (B) P-2, Q-4, R-1, S-3
(C) P-3, Q-1, R-4, S-2 (D) P-2, Q-1, R-3, S-4 |
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 17 |
Consider a DataFrame df having 5 rows (indexed 0 to 4) and 3 columns. What will df.iloc[1:4, :2].size return?
(A) 6 (B) 8 (C) 9 (D) 12
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 18 |
If plt.show() is called before plt.savefig('chart.png') in a Matplotlib script, what will happen to the saved file chart.png?
(A) It will raise a
FileNotFoundError(B) It will save a blank white image because plt.show() clears the figure buffer(C) It will save the chart in grayscale mode (D) It will automatically overwrite the title with 'chart'
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 19 |
Which protocol translates human-readable domain names (such as www.cbse.gov.in) into their corresponding numeric IP addresses?
(A) DHCP (B) DNS (C) VoIP (D) FTP
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
|
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose the correct option as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is the correct explanation of Assertion (A)
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation of Assertion (A) (C) Assertion (A) is True, but Reason (R) is False (D) Assertion (A) is False, but Reason (R) is True |
|||||||||||||||||||||||||||||||||||||||||||||||
| 20 |
Assertion (A): When a new column containing integer values is added to an existing Pandas DataFrame with a NaN entry in one row, the data type (dtype) of that column automatically becomes float64.Reason (R): In Pandas/NumPy, standard integer data types cannot natively represent missing ( NaN) values, so the column is upcast to floating-point.
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 21 |
Assertion (A): In SQL, SELECT NULL = NULL; evaluates to TRUE (1).Reason (R): In relational databases, NULL represents an unknown or missing value, so the IS NULL operator must be used instead of = to test for NULL.
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-B (7 × 2 = 14 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 22 |
(A) Differentiate between Series.add(s2, fill_value=0) and the standard arithmetic operator s1 + s2 when two Series have non-overlapping index labels, using a short example.
OR
(B) Explain the difference between df.drop() and del when removing a column from a Pandas DataFrame, specifically highlighting return behavior and permanent modification.
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 23 |
A hospital’s computer network was suddenly locked by malicious software demanding cryptocurrency to restore access to patient medical records. (i) Identify this specific type of malware attack. (ii) State any two preventive measures the hospital should implement to safeguard against such attacks in the future. |
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 24 |
Write single-line SQL queries for the following:
I. Extract the domain extension
'gov.in' from the string 'https://cbse.gov.in' using RIGHT() or SUBSTR().II. Display the exact number of days elapsed between '2026-03-01' and '2026-03-29', or display the day of the year (1–366) for '2026-02-15' using a single MySQL date function.
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 25 |
(A) Differentiate between a URL and a Domain Name, identifying each component in https://ncert.nic.in.
OR
(B) What is a Web Add-on / Plug-in? How does it differ from a standalone web browser, and give one security risk associated with installing unverified browser extensions?
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 26 |
Observe the relation SUBSCRIPTIONS given below and answer the questions that follow:
Email and Phone fail to qualify as Candidate Keys.(ii) If Sub_ID is designated as the Primary Key, what is the technical term for any remaining Candidate Keys (if any), and what will be the new Degree and Cardinality if 3 attributes are added and 2 tuples are deleted?
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 27 | Explain how Proprietary Software differs from Free and Open Source Software (FOSS) in terms of source code access and modification rights. Also state two specific medical conditions caused by prolonged poor posture and continuous screen glare while working on computers. | 2 | |||||||||||||||||||||||||||||||||||||||||||||
| 28 |
(A) Predict the exact output of the following Python code:
import pandas as pd
d = {'A': [10, 20, 30, 40], 'B': [5, 15, 25, 35]}
df = pd.DataFrame(d, index=['w', 'x', 'y', 'z'])
df['C'] = df['A'] - df['B']
print(df.loc['x':'z', ['B', 'C']])
OR
(B) Aarav wrote the following Python code to create a Series from a dictionary and filter elements greater than 50, but it contains four errors. Identify the errors, rewrite the corrected code, and underline the corrections:
import pandas as PD
marks = {'Math': 78, 'Eng': 45, 'Sci': 89, 'Hist': 49}
s = pd.series(marks, index=['Math', 'Eng', 'Sci', 'Geo'])
print(s[s > 50].keys)
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-C (4 × 3 = 12 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 29 |
A startup company discovered that a former employee copied its proprietary source code and customer database onto a personal drive and sold it to a rival firm. Meanwhile, the startup’s hardware team dumped 60 defective lithium-ion laptop batteries and motherboards into municipal garbage bins. (i) Identify the two distinct legal/ethical violations committed by the former employee and name the Indian legislation that governs such digital offenses. (ii) Explain why dumping lithium-ion batteries and circuit boards into municipal landfills poses severe environmental and human health risks (mention two toxic elements and their effects). (iii) State the proper responsibility of both the producer and the consumer under India’s E-Waste Management Rules. |
3 | |||||||||||||||||||||||||||||||||||||||||||||
| 30 |
(A) Write a Python program to create the DataFrame ResultDF shown below using a list of dictionaries, and then write Python statements to: (1) add a new column 'Total' as the sum of Term1 and Term2, and (2) display only the rows where Total is at least 160:
Term1 Term2 R101 78 85 R102 65 72 R103 90 88 R104 82 78 OR
(B) Given two Pandas Series S_Jan = pd.Series([120, 150, 90, 200], index=['P1', 'P2', 'P3', 'P4']) and S_Feb = pd.Series([140, 130, 110], index=['P1', 'P3', 'P5']):Write Python statements to: (i) Compute the combined two-month sales Total_Sales treating missing monthly values as 0.(ii) Display the product codes whose Total_Sales is strictly between 140 and 250.(iii) Display the bottom 2 products after sorting Total_Sales in ascending order.
|
3 | |||||||||||||||||||||||||||||||||||||||||||||
| 31 |
(i) Write an SQL statement to create a table named WORKSHOPS with the following specifications:
Topic to VARCHAR(60) and remove the column City permanently from the table WORKSHOPS.
|
3 (2+1) |
|||||||||||||||||||||||||||||||||||||||||||||
| 32 |
(A) Consider the following two tables AUTHORS and BOOKS: Table: AUTHORS
(i) Display Auth_ID and total revenue (SUM(Price * Copies_Sold)) only for authors whose total copies sold exceed 1000.(ii) Display Title, Auth_Name, and earned royalty (Price * Copies_Sold * Royalty_Pct / 100) as Net_Royalty for authors from 'India' whose Royalty_Pct is not NULL.(iii) Delete all records from BOOKS where Price is greater than 700 and Copies_Sold is less than 850.
OR
(B) Predict the exact output of the following SQL queries based on the tables AUTHORS and BOOKS given above:(i) SELECT Country, COUNT(*), COUNT(Royalty_Pct) FROM AUTHORS GROUP BY Country;(ii) SELECT Title, Auth_Name FROM AUTHORS A, BOOKS B WHERE A.Auth_ID = B.Auth_ID AND Copies_Sold >= 1200 ORDER BY Price DESC;(iii) SELECT Auth_ID, AVG(Price) FROM BOOKS GROUP BY Auth_ID HAVING COUNT(*) > 1;
|
3 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-D (2 × 4 = 8 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 33 |
An e-commerce logistics manager wants to visually compare the quarterly order volumes (in thousands) of Domestic and International shipments using a grouped (side-by-side) bar chart:
|
4 | |||||||||||||||||||||||||||||||||||||||||||||
| 34 |
(A) A Cloud Hosting provider maintains a table named SERVERS to monitor server allocations and uptime:
I. Display
Host_Name in uppercase along with the substring of 2 characters starting from position 7 (e.g., 'db', 'ai') for all servers launched in the year 2024.II. Display Region and total Monthly_Cost only for those regions having an average RAM of at least 50 GB.III. Display Srv_ID, Host_Name, and the weekday name of Launch_Date for servers whose Host_Name contains 'db' and whose Monthly_Cost is known.IV. Display all server records sorted in ascending order of Region and descending order of RAM_GB within each region.
OR
(B) Predict the exact output of the following SQL queries based on the table SERVERS given above:
I.
SELECT Region, COUNT(*), COUNT(Monthly_Cost) FROM SERVERS GROUP BY Region;II. SELECT RIGHT(Host_Name, 5), MONTH(Launch_Date) FROM SERVERS WHERE Monthly_Cost IS NULL OR RAM_GB > 64;III. SELECT ROUND(AVG(Monthly_Cost), -3) FROM SERVERS WHERE Region <> 'US-East';IV. SELECT Host_Name, INSTR(Host_Name, '-') FROM SERVERS WHERE RAM_GB = 64;
|
4 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-E (3 × 5 = 15 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 35 |
Nexus Bio-Research Institute is setting up an intranet across four research blocks at its Hyderabad campus: GENOMICS (G), CLINICAL (C), ADMIN (A), and SERVER-HUB (S), along with a regional testing center in Chennai located 630 km away.
i. Suggest the most suitable block to house the central database server and justify your answer using the 80–20 network traffic rule.
ii. Draw the optimal minimum-cable-length layout connecting all four blocks at the Hyderabad campus and calculate the total cable length required. iii. If Cat-6 twisted-pair cable (maximum segment length 100 m) is used to connect Block G and Block C (120 m apart), which hardware device must be installed along the path to prevent signal attenuation? Alternatively, suggest a guided medium that does not require this device at 120 m. iv. Specify the exact placement of Switch and Router/Modem to provide high-speed internal connectivity and external internet access. v. Name the type of network formed when the Hyderabad campus connects to the Chennai testing center, and suggest a protocol/technology to conduct real-time voice meetings over the internet between both centers. |
5 | |||||||||||||||||||||||||||||||||||||||||||||
| 36 |
Consider the DataFrame Telecom given below:
Telecom:
I. Display
Subscriber and Tariff for rows at integer positions 1 through 3 (excluding position 4) using positional indexing.II. Add a new computed column named 'Cost_Per_GB' calculated as Tariff / Data_GB rounded to 2 decimal places.III. Display all details of subscribers using 'Airtel' or 'Jio' whose Data_GB is at least 80.IV. Rename the index label 'SUB3' to 'SUB_VIP' and column 'Tariff' to 'Plan_Cost' in a single statement permanently.V. Permanently delete row 'SUB5' and column 'Operator' from Telecom.
|
5 | |||||||||||||||||||||||||||||||||||||||||||||
| 37 |
(A) Write suitable SQL queries for the following:
I. Display the
Category and total Revenue rounded to the nearest hundred (-2) from the RETAIL table only for categories where the minimum item price is at least 500.II. Display the first 3 characters of Cust_Name in uppercase concatenated with the last 4 digits of Mobile_No as User_Code from the MEMBERS table.III. Display the Article_Title after removing trailing spaces and replacing all spaces with underscores (or displaying its character length after trimming) from the BLOGS table.IV. Display Invoice_ID and the name of the month (e.g., January, February) of Bill_Date for all bills generated in the 4th quarter (October to December) from the BILLING table.V. Display the position of the first occurrence of substring 'NET' and the substring of 4 characters starting from position 3 of Course_Name from the INSTITUTE table.
OR
(B) Predict the exact output of the following SQL queries:
I.
SELECT ROUND(8465.789, -2) - TRUNCATE(349.95, -1);II. SELECT DAYOFMONTH('2026-08-19'), DAYNAME('2026-08-19');III. SELECT LENGTH(RTRIM(' Informatics '));IV. SELECT SUBSTR('STRUCTURED QUERY', -5, 4);V. SELECT CONCAT(UPPER(LEFT('mysql', 2)), LOWER(RIGHT('SERVER', 3)));
|
5 | |||||||||||||||||||||||||||||||||||||||||||||
