SAMPLE QUESTION PAPER (2026-27)
CLASS XII | INFORMATICS PRACTICES (065)
SET – 7 (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 Series s is created with duplicate index labels ['a', 'b', 'a'], accessing s['a'] raises a ValueError because index labels in a Series must be strictly unique.
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 2 |
What will be the exact output of the following SQL query?
SELECT ROUND(4567.89, -3) - TRUNCATE(1299.99, -2);
(A) 3300 (B) 3800 (C) 3700 (D) 3400
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 3 |
Which networking device operates at the Network Layer (Layer 3), examines logical IP addresses, and uses routing tables to determine the optimal path for forwarding data packets across different networks?
(A) Switch (B) Repeater (C) Router (D) Passive Hub
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 4 |
In MySQL, if a column Grade in a table RESULTS contains the values ('A', 'B', NULL, 'A', 'C', NULL), what will SELECT COUNT(DISTINCT Grade) FROM RESULTS; return?
(A) 6 (B) 4 (C) 3 (D) 5
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 5 |
Under the Information Technology Act, 2000 (amended in 2008), which specific section deals with punishment for identity theft (fraudulently or dishonestly making use of the electronic signature, password, or other unique identification feature of any other person)?
(A) Section 43 (B) Section 65 (C) Section 66C (D) Section 66F
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 6 |
What will be the exact output of the following Python snippet?
import pandas as pd s1 = pd.Series([10, 20, 30], index=['x', 'y', 'z']) s2 = pd.Series([5, 15], index=['y', 'w']) print(s1.add(s2, fill_value=0)['w'])
(A)
NaN (B) 15.0 (C) 0.0 (D) KeyError
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 7 |
In Matplotlib, when plotting a horizontal bar chart using plt.barh(y, width), which parameter is used to control the vertical thickness of each horizontal bar?
(A)
width (B) height (C) thickness (D) linewidth
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 8 |
What will be the output of the following SQL query?
SELECT SUBSTR('ARTIFICIAL INTELLIGENCE', -12, 5);
(A)
INTEL (B) NTELL (C) AL IN (D) TELLI
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 9 |
A CSV file sales.csv contains 6 rows (1 header row followed by 5 data rows). What will be the row count in df.shape after executing df = pd.read_csv('sales.csv', header=None, nrows=3)?
(A) 3 (B) 2 (C) 4 (D) 6
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 10 |
Which toxic heavy metal found predominantly in old Cathode Ray Tube (CRT) glass monitors and lead-acid batteries causes severe damage to the human central nervous system and kidneys when dumped in landfills?
(A) Aluminum (B) Lead (C) Silicon (D) Copper
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 11 |
Consider the table EXPENSES:
SELECT AVG(Amount) - (SUM(Amount) / COUNT(*)) FROM EXPENSES;
(A) 0 (B) 1000 (C) 3000 (D) NULL
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 12 |
Which guided transmission medium uses total internal reflection of light pulses through a glass or plastic core, offering complete immunity to electromagnetic interference (EMI) over multi-kilometer distances?
(A) Coaxial Cable (B) Shielded Twisted Pair (C) Optical Fiber Cable (D) Unshielded Twisted Pair
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 13 |
Predict the output of the following Python snippet:
import pandas as pd s = pd.Series([15, 25, 35, 45, 55], index=['a', 'b', 'c', 'd', 'e']) print(s['d':'a':-2].sum())
(A) 60 (B) 70 (C) 80 (D) 90
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 14 |
What is the primary role of a Web Server in a client-server web architecture?
(A) Translating domain names into IP addresses
(B) Storing website files and responding to HTTP/HTTPS requests from web browsers (C) Converting analog signals into digital packets at the user’s home (D) Assigning dynamic IP addresses to local LAN devices |
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 15 |
Which Pandas DataFrame method is used to iterate over rows as (index, Series) pairs?
(A)
df.iteritems() (B) df.iterrows() (C) df.items() (D) df.rows()
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 16 |
Match the following SQL String & Date functions with their exact outputs:
(A) P-2, Q-3, R-4, S-1 (B) P-2, Q-4, R-3, S-1
(C) P-4, Q-3, R-2, S-1 (D) P-2, Q-3, R-1, S-4 |
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 17 |
Consider a Pandas DataFrame df with 4 rows and 3 columns. What will be the output of len(df) + df.ndim?
(A) 5 (B) 6 (C) 14 (D) 7
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 18 |
Which Matplotlib function is used to customize the tick locations and text labels displayed along the vertical Y-axis?
(A)
plt.ylabel() (B) plt.yticks() (C) plt.ylim() (D) plt.yaxis()
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 19 |
Which type of network is formed when multiple LANs across different buildings or branches within the same city are interconnected using high-speed fiber or wireless links?
(A) PAN (B) MAN (C) WAN (D) SAN
|
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): In Pandas, df.drop('ColA', axis=1) removes 'ColA' from the original DataFrame df in place.Reason (R): By default, the inplace parameter in df.drop() is set to False, returning a new DataFrame without modifying the original unless inplace=True is explicitly specified.
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| 21 |
Assertion (A): In SQL, the query SELECT Dept, Salary FROM EMP GROUP BY Dept; will execute without any error in strict SQL mode.Reason (R): Every non-aggregated column listed in the SELECT clause must also appear in the GROUP BY clause to ensure deterministic results per group.
|
1 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-B (7 × 2 = 14 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 22 |
(A) Differentiate between Series.head(n) and Series.tail(n), and state what happens when a negative integer (e.g., s.head(-2)) is passed as the argument in Pandas.
OR
(B) How does creating a Pandas DataFrame from a dictionary of Series differ from creating one from a list of dictionaries when index labels do not match across elements?
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 23 |
Meera copied several paragraphs and diagrams from an online research blog into her published project report without citing the original author, and simultaneously uploaded a cracked version of a commercial video editor to a public file-sharing drive. (i) Identify the two distinct unethical/illegal digital acts committed by Meera. (ii) Explain how Creative Commons (CC) licenses help creators legally share their digital work while retaining specific rights. |
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 24 |
Write single-line SQL queries for the following:
I. Extract the middle 4 characters
'DATA' from the string 'BIG_DATA_ANALYTICS' using SUBSTR() with negative indexing.II. Display the year and the 3-letter abbreviated or full month name for the date '2026-11-28' in a single SELECT statement.
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 25 |
(A) Differentiate between HTTP and HTTPS in terms of port numbers, encryption mechanisms (SSL/TLS), and data security during online banking transactions.
OR
(B) Explain the role of a Gateway in a network and distinguish it from a Router.
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 26 |
Observe the relation INVENTORY_LOG given below and answer the questions that follow:
SKU_Code and Batch_No individually fail to qualify as Candidate Keys.(ii) What will be the resulting Degree and Cardinality of INVENTORY_LOG if 2 new columns are added and 3 rows are deleted?
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| 27 | What is a Digital Footprint? Distinguish between Active and Passive digital footprints with one concrete example of each, and explain how browser cookies contribute to passive tracking. | 2 | |||||||||||||||||||||||||||||||||||||||||||||
| 28 |
(A) Predict the exact output of the following Python code:
import pandas as pd
df = pd.DataFrame({'P': [10, 20, 30], 'Q': [5, 10, 15]}, index=['r1', 'r2', 'r3'])
df.loc['r2'] = df.loc['r1'] + df.loc['r3']
print(df.iloc[1:, 0])
OR
(B) Kabir wrote the following Python code to create a DataFrame and display rows where Score is above 80, but it contains four errors. Identify the errors, rewrite the corrected code, and underline the corrections:
import pandas as pd
info = {'Player': ['A', 'B', 'C'], 'Score': [75, 90, 85]}
df = pd.Dataframe(info, index=['P1', 'P2'])
print(df[df.Score => 80])
|
2 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-C (4 × 3 = 12 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 29 |
During an inter-school online coding fest, a student created a fake social media handle impersonating the event coordinator, posted offensive comments targeting participants, and sent phishing links disguised as “winner certificates” to harvest login credentials. (i) Identify the two distinct cybercrimes committed in this scenario and state the relevant provisions under India’s IT Act, 2000. (ii) Explain why victims of cyberbullying should preserve digital evidence (screenshots, URLs, timestamps) before blocking or reporting the offender. (iii) Suggest two proactive browser/account security practices participants should follow to verify authentic event communications. |
3 | |||||||||||||||||||||||||||||||||||||||||||||
| 30 |
(A) Write a Python program to create the DataFrame EnergyDF shown below using a dictionary of lists, and then write Python statements to: (1) add a new column 'Net_Surplus' equal to Solar_MW - Demand_MW, and (2) display only the states where Net_Surplus is positive (> 0):
Solar_MW Demand_MW Rajasthan 1800 1550 Gujarat 1650 1700 Karnataka 1400 1250 Tamil Nadu 1300 1350 OR
(B) Consider two Pandas Series Q1 = pd.Series([250, 400, 320, 180], index=['East', 'West', 'North', 'South']) and Q2 = pd.Series([300, 280, 150], index=['West', 'North', 'Central']):Write Python statements to: (i) Calculate the half-yearly total H1 by adding Q1 and Q2 such that missing regional entries default to 0.(ii) Display regions whose H1 total is divisible by 100.(iii) Display the top 2 performing regions in descending order of H1.
|
3 | |||||||||||||||||||||||||||||||||||||||||||||
| 31 |
(i) Write an SQL statement to create a table named EXHIBITIONS with the following specifications:
('EX105', 'Quantum Robotics', '2026-12-10', 350.00, 'Pragati Maidan') into EXHIBITIONS and subsequently update Ticket_Price by adding 50 for all exhibitions held at 'Pragati Maidan'.
|
3 (2+1) |
|||||||||||||||||||||||||||||||||||||||||||||
| 32 |
(A) Consider the following two tables VENDORS and SUPPLIES: Table: VENDORS
(i) Display Ven_ID and total order value (SUM(Unit_Cost * Units)) only for vendors whose total supplied units are at least 100.(ii) Display Component, Ven_Name, and City for all components supplied by vendors from 'Lucknow' whose Unit_Cost exceeds 500.(iii) Display City and average Rating for each city, excluding vendors whose rating is NULL.
OR
(B) Predict the exact output of the following SQL queries based on the tables VENDORS and SUPPLIES given above:(i) SELECT City, COUNT(*), COUNT(Rating) FROM VENDORS GROUP BY City;(ii) SELECT Component, Ven_Name FROM VENDORS V, SUPPLIES S WHERE V.Ven_ID = S.Ven_ID AND Rating IS NOT NULL ORDER BY Unit_Cost DESC;(iii) SELECT Ven_ID, MAX(Unit_Cost) - MIN(Unit_Cost) FROM SUPPLIES GROUP BY Ven_ID HAVING COUNT(*) > 1;
|
3 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-D (2 × 4 = 8 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 33 |
An urban transport authority wants to analyze the daily commuter ridership (in thousands) across five metro corridors using a horizontal bar chart:
|
4 | |||||||||||||||||||||||||||||||||||||||||||||
| 34 |
(A) A space research agency maintains a table named SATELLITES to log orbital missions and payload mass:
I. Display
Sat_Name in uppercase along with its last 2 characters (e.g., 'II', '9G') for all satellites launched before '2025-07-01'.II. Display Orbit_Type and total Mass_Kg only for those orbit types having an average mass greater than 1700 Kg.III. Display Sat_ID, Sat_Name, and the full month name of Launch_Date for satellites whose Sat_Name contains 'SAT' (case-insensitive) and whose Mission_Cost is known.IV. Display all satellite details in descending order of Mass_Kg for 'LEO' and 'SSO' orbits.
OR
(B) Predict the exact output of the following SQL queries based on the table SATELLITES given above:
I.
SELECT Orbit_Type, COUNT(*), COUNT(Mission_Cost) FROM SATELLITES GROUP BY Orbit_Type;II. SELECT LEFT(Sat_Name, 4), DAYNAME(Launch_Date) FROM SATELLITES WHERE Mission_Cost IS NULL OR Mass_Kg > 4000;III. SELECT ROUND(AVG(Mission_Cost), -1) FROM SATELLITES WHERE Orbit_Type <> 'SSO';IV. SELECT Sat_Name, INSTR(Sat_Name, '-') FROM SATELLITES WHERE Orbit_Type = 'LEO';
|
4 | |||||||||||||||||||||||||||||||||||||||||||||
| Q No. | Section-E (3 × 5 = 15 Marks) | Marks | |||||||||||||||||||||||||||||||||||||||||||||
| 35 |
Vanguard Aerospace Ltd. is establishing its new R&D campus in Lucknow with four specialized wings: AVIONICS (V), PROPULSION (P), ADMIN (A), and SIMULATION (S), along with a flight-test facility in Bengaluru located 1,850 km away.
i. Identify the most suitable wing to install the main server and justify your choice using network traffic principles.
ii. Draw the minimum-cable-length layout connecting all four wings at the Lucknow campus and calculate the total cable length required. iii. Which hardware device is required between Wing S and Wing V (115 m apart) if Ethernet copper cabling (100 m limit) is laid? Name an alternative guided medium that avoids signal attenuation over 115 m without needing this device. iv. Suggest the exact placement of Switch and Firewall / Router in the campus network. v. Name the type of network formed when the Lucknow R&D campus connects with the Bengaluru flight-test facility, and suggest a protocol used for secure remote terminal login to servers at Bengaluru. |
5 | |||||||||||||||||||||||||||||||||||||||||||||
| 36 |
Consider the DataFrame Pharma given below:
Pharma:
I. Display
Drug_Name and Strips for rows 'M2' through 'M4' (both inclusive) using label-based slicing.II. Add a new computed column named 'Stock_Worth' equal to Strips * MRP.III. Display all details of medicines in 'Tablet' form whose MRP is strictly greater than 40.IV. Update the Strips count of 'M4' to 55 using .at[] or .loc[].V. Permanently delete row 'M5' and column 'Form' from Pharma.
|
5 | |||||||||||||||||||||||||||||||||||||||||||||
| 37 |
(A) Write suitable SQL queries for the following:
I. Display the
Department and maximum Salary from the FACULTY table only for departments where the total salary exceeds 300000.II. Display the first 4 characters of Student_Name in lowercase concatenated with the last 2 digits of Roll_No as Login_ID from the STUDENTS table.III. Display the Book_Title after removing leading spaces and converting it to uppercase from the LIBRARY table.IV. Display Emp_ID and the day of the year (1–366) of Join_Date for all employees who joined in the 1st quarter (January to March) from the STAFF table.V. Display the position of the first occurrence of substring 'CLOUD' and the total character count of Module_Name from the SYLLABUS table.
OR
(B) Predict the exact output of the following SQL queries:
I.
SELECT TRUNCATE(9876.543, -2) + ROUND(49.5, 0);II. SELECT MONTHNAME('2026-09-14'), DAYOFMONTH('2026-09-14');III. SELECT LENGTH(TRIM(' Python SQL '));IV. SELECT SUBSTR('OBJECT ORIENTED', -8, 6);V. SELECT CONCAT(LOWER(LEFT('SQL', 2)), UPPER(RIGHT('database', 4)));
|
5 | |||||||||||||||||||||||||||||||||||||||||||||
