CBSE Class 12 · Informatics Practices, code 065 · Practice paper for 2027

Class 12 IP sample paper 2026-27, original, full length and solved.

Here is a class 12 IP sample paper for 2026-27 that you have not seen before: 37 new questions, 70 marks, five sections, with choices in the same seven questions as the official CBSE paper. Every pandas program was run, the histogram in Question 33 was drawn by the answer beside it, and the SQL outputs came from MySQL. Keep the worked answers folded until your three hours are over.

Live one to one · a complete 065 paper · pandas, Matplotlib and MySQL answers run · marks shown part by part · your own timing

Start here

Where each half of the paper is taught

Fifty of the seventy marks are pandas, charts and SQL. The IP course teaches all four units; the other two add depth to one half.

Ans. The short version

The Class 12 IP sample paper 2026-27 (CBSE Informatics Practices, code 065) has 37 compulsory questions for 70 marks in three hours: 21 of one mark, seven of two, four of three, two of four and three of five, with an internal choice in seven questions. pandas with charts and SQL carry 25 marks each, networks and societal impacts 10 each. This page is a full original paper in that design with solutions. Modern Age Coders marks such papers live, personalised one to one; start with a priority demo or a free demo class.

Before you begin

What is the design of the Class 12 IP sample paper 2026-27?

CBSE's sample question paper for Informatics Practices has five sections and no overall choice, and a footnote on its pages says the question paper design has not changed for 2026-27.

SectionQuestionsMarksWhat you meet there
A1 to 2121 x 115 MCQs, 2 true or false, 2 blanks, 2 assertion and reason
B22 to 287 x 2Definitions, differences, two-line code
C29 to 324 x 3A society case, pandas, SQL queries, SQL output
D33 and 342 x 4A Matplotlib program, then two tables
E35 to 373 x 5A network case, a DataFrame, five SQL commands
All3770Choice in 22, 25, 28, 30, 32, 34 and 37

The same paper sorted by unit

UnitWhere it sits in the official paperMarks
pandas and data visualization1, 4, 8, 12, 15, 18, 20, 22, 24, 28, 30, 33, 3625
Database query using SQL2, 6, 9, 11, 14, 17, 19, 21, 26, 31, 32, 34, 3725
Computer networks5, 10, 16, 25, 3510
Societal impacts3, 7, 13, 23, 27, 2910

We sorted the 37 official questions one at a time, and they add up to the syllabus split exactly. The paper below keeps each unit at the same question numbers, so your marks on it can be read unit by unit.

The official paper and marking scheme are free on cbseacademic.nic.in. For exam rules, dates and the practical, read the IP syllabus and paper pattern.

Read this after the official scheme

Six things the IP marking scheme 2026-27 tells you

The scheme is short, and it answers questions that students usually argue about.

In the official schemeWhat we take from it
Question 37 (B) (ii), names ending with s, is answered with RIGHT(PName, 1)LIKE is not in the 065 list of SQL keywords. The listed text functions are enough
Question 30 (A) (ii) shows three lines of output and no dtype linepandas does print dtype: float64 below them. Write it; it is what the screen shows
Question 33 gives one mark to the import, one to the plot with its label, and half marks to the restA chart program that only plots still earns. Title, axes, legend and show are four easy halves
Question 36 gives three marks to making the DataFrame and one each to the next two partsRead how it must be made: "dictionary of series" is part of the question
Question 34 gives two marks to each queryTwo tables, so write the joining condition before anything else
Question 35 (v) gives the reason with the place, a distance above about 100 mServer, switch, repeater: each needs its reason in the same sentence

In an MCQ the general instructions ask for the text of the correct answer too, so write "B. Trademark" and not "B".

Section A, 21 x 1 = 21 marks

IP class 12 sample paper with solutions: Section A

Every question carries one mark. Give this section about 28 minutes. In 20 and 21: A, both true and R explains A; B, both true but R does not explain A; C, A true and R false; D, A false and R true.

  1. 1. State True or False: a Series has four values, so S.tail() raises an error, because the default number is five.
    Worked answer False. When fewer values are available than asked for, tail() returns all of them. Here it returns the four values.
  2. 2. The Phone column of table VISITOR is empty (NULL) for some rows. Which expression counts only the visitors who gave a number?
    A. SUM(Phone)
    B. COUNT(*)
    C. COUNT(Phone)
    D. LENGTH(Phone)
    Worked answer C. COUNT(Phone). Counting a named column leaves out NULL. COUNT(*) counts rows, filled or not.
  3. 3. A weavers' cooperative wants legal protection for the logo stitched on its shawls. Which intellectual property right fits?
    A. Patent
    B. Trademark
    C. Copyright
    D. Open licence
    Worked answer B. Trademark. It protects a name, sign or logo that identifies goods. A patent is for an invention.
  4. 4. Which Matplotlib function shows how the ages of 300 runners are spread across age groups?
    A. plt.plot()
    B. plt.bar()
    C. plt.hist()
    D. plt.legend()
    Worked answer C. plt.hist(). It sorts one list of numbers into bins and draws the count of each bin.
  5. 5. A bank's network and a partner's network follow different protocols. Which device joins them and translates between the two?
    A. Repeater
    B. Hub
    C. Switch
    D. Gateway
    Worked answer D. Gateway. A repeater only strengthens a signal; hubs and switches work inside one network.
  6. 6. Which of these commands changes the structure of a table and not its rows?
    A. INSERT
    B. ALTER
    C. DELETE
    D. SELECT
    Worked answer B. ALTER. It is a DDL command: it can add, remove or change a column.
  7. 7. Breaking up discarded phones in a proper unit to recover copper and other useful material is called:
    A. Reducing
    B. Refurbishing
    C. Recycling
    D. Reselling
    Worked answer C. Recycling. The device itself is gone; its material is used again.
  8. 8. What will be displayed?
    Q8Series from a dictionary
    import pandas as pd
    s = pd.Series({"x": 3, "y": 5})
    print(s["y"] ** 2 - s["x"])
    A. 22
    B. 7
    C. 4
    D. Error
    Worked answer A. 22. The keys are the labels, so s["y"] is 5; 5 squared is 25, and 25 minus 3 is 22.
  9. 9. Fill in the blank: the MySQL function that removes spaces only from the right end of a string is ________.
    Worked answer RTRIM(). LTRIM() works on the left end and TRIM() on both.
  10. 10. Nisha installs a small program inside her browser that blocks advertisements on every page. It is best described as:
    A. A cookie
    B. An add-on
    C. A web server
    D. A URL
    Worked answer B. An add-on. It gives the browser an extra feature. A cookie is only a small text file kept by a site.
  11. 11. In SELECT * FROM RESULT ORDER BY Section, Marks DESC; which column is sorted in descending order?
    A. Section only
    B. Marks only
    C. Both
    D. Neither
    Worked answer B. Marks only. DESC applies to the column it follows. Section is ascending, and Marks is descending within each section.
  1. 12. price is a Series of 40 prices. Which statement gives all the prices raised by 5 percent?
    A. price * 1.05
    B. price + "5%"
    C. price[1.05]
    D. price.raise(5)
    Worked answer A. price * 1.05. The operation is applied to every value, and the labels stay.
  2. 13. Software whose source code is open, so that anyone may study, change and share it, is called:
    A. Shareware
    B. FOSS
    C. Proprietary software
    D. Malware
    Worked answer B. FOSS, free and open source software.
  3. 14. What does SELECT INSTR('Kanyakumari', 'kum'); return?
    A. 5
    B. 6
    C. 0
    D. 7
    Worked answer B. 6. SQL counts from 1: K, a, n, y, a are 1 to 5, and the match begins at 6.
  4. 15. rain.csv holds numbers from its very first line and has no line of column names. Which argument of read_csv() stops pandas from using that first line as headings?
    A. index=False
    B. sep=None
    C. header=None
    D. names=0
    Worked answer C. header=None. The columns are then numbered 0, 1, 2 and no row of data is lost.
  5. 16. Fill in the blank: the complete address that locates a page or file on the Web is its ________.
    Worked answer URL (Uniform Resource Locator).
  6. 17. The Bonus column of PAYROLL has three rows: 500, NULL and 700. What is AVG(Bonus)?
    A. 400
    B. 600
    C. 1200
    D. NULL
    Worked answer B. 600. NULL is ignored, so 1200 is divided by 2. MySQL prints it as 600.0000.
  7. 18. A DataFrame is made from a dictionary of two Series. The first has labels p and q, the second q and r. Its shape is:
    A. (2, 2)
    B. (3, 2)
    C. (4, 2)
    D. (2, 3)
    Worked answer B. (3, 2). The rows are all the labels found in either Series, p, q and r, and gaps become NaN. The two dictionary keys are the columns.
  8. 19. State True or False: one SELECT statement may contain both a WHERE clause and a HAVING clause.
    Worked answer True. WHERE filters the rows first, the rows left are grouped, and HAVING then filters the groups.
  9. 20. Assertion (A): On a DataFrame with the default index, df.loc[2:5] gives four rows. Reason (R): A loc slice includes both its first and its last label.
    Worked answer A. Both A and R are True and R is the correct explanation of A. The rows are 2, 3, 4 and 5.
  10. 21. Assertion (A): LENGTH(' Goa ') returns 3. Reason (R): LENGTH() counts every character in the string, including spaces.
    Worked answer D. A is False but R is True. Two spaces and three letters make 5.

Want forty more one-mark questions with reasons? Use the Class 12 IP MCQ test.

Section B, 7 x 2 = 14 marks

Section B: two-mark answers

Two marks means two points. Four or five lines are plenty, and 32 minutes should cover all seven.

  1. 22. (A) (i) Why is iterrows() used on a DataFrame? (ii) Which two things does it hand over in each pass of the loop? OR (B) Both del df["Min"] and df.drop(columns=["Min"]) remove a column. State one difference, with a small example.
    Worked answer (A) (i) To visit a DataFrame one row at a time. (ii) The row label, and the row itself as a Series. One mark each.
    22 (A) shownprints: 0 Asha 12, then 1 Megh 8
    import pandas as pd
    boats = pd.DataFrame({"Boat": ["Asha", "Megh"], "Seats": [12, 8]})
    for label, row in boats.iterrows():
        print(label, row["Boat"], row["Seats"])
    (B) del changes df itself at once. drop() returns a new DataFrame and leaves df as it was, unless inplace=True is given.
    22 (B) shownoutput in the comments
    import pandas as pd
    t = pd.DataFrame({"Day": ["Sat", "Sun"], "Min": [11, 9], "Max": [24, 26]})
    u = t.drop(columns=["Min"])
    print(list(t.columns))      # ['Day', 'Min', 'Max']  t is unchanged
    del t["Max"]
    print(list(t.columns))      # ['Day', 'Min']         t has changed
    One mark for the difference, one for the example.
  2. 23. Differentiate between plagiarism and copyright infringement.
    Worked answer Plagiarism is presenting somebody else's words, work or idea as your own by not giving credit. Copyright infringement is using a protected work without the owner's permission or outside its licence, and it can happen even when credit is given. Two marks for a clear difference.
  3. 24. (i) When is a histogram a better choice than a bar graph? (ii) What does the bins argument of hist() decide?
    Worked answer (i) When there is one long list of numbers, such as heights, and you want to see how they are spread over intervals. A bar graph compares named categories. (ii) The intervals into which the numbers are sorted: either how many, or where each one begins and ends. One mark each.
  4. 25. (A) Describe tree topology and give one disadvantage. OR (B) What is a web server, and how is it different from a web browser?
    Worked answer (A) In a tree topology several star networks are joined to one main cable, like branches on a trunk. Disadvantage: if the main cable fails, the branches can no longer reach each other. One mark each.
    (B) A web server is a computer, with its software, that stores the pages of a website and sends them when asked. A browser is the program on the user's device that asks for a page and displays it.
  5. 26. Write SQL statements to: (i) display the first four characters of the column Code of table ITEM; (ii) display the remainder when 47 is divided by 6.
    Worked answer (i) SELECT LEFT(Code, 4) FROM ITEM; (ii) SELECT MOD(47, 6); which returns 5. One mark each. SUBSTR(Code, 1, 4) is equally right for the first.
  6. 27. Write any two health problems linked to long hours on a screen, with one step to prevent each.
    Worked answer Eye strain: look away at something distant every twenty minutes or so and keep the screen at a comfortable distance. Neck and back pain: sit with the back supported, the screen at eye level, and stand up between tasks. Wrist pain, disturbed sleep and stress are also accepted kinds of answer. One mark for each problem with its step.
  7. 28. (A) Write Python code to make the DataFrame below from a dictionary of Series.
    RunsWickets
    Ganga1876
    Kaveri14210
    OR (B) What is the difference between to_csv() and read_csv()? Write a statement that saves the DataFrame score in rain.csv with a semicolon between the values.
    Worked answer (A)
    28 (A)dictionary of Series
    import pandas as pd
    teams = {"Runs": pd.Series([187, 142], index=["Ganga", "Kaveri"]),
             "Wickets": pd.Series([6, 10], index=["Ganga", "Kaveri"])}
    score = pd.DataFrame(teams)
    print(score)
    It printspandas 2.3
            Runs  Wickets
    Ganga    187        6
    Kaveri   142       10
    (B) to_csv() writes a DataFrame out to a CSV file; read_csv() loads a CSV file into a DataFrame. score.to_csv("rain.csv", sep=";") One mark each.

Section C, 4 x 3 = 12 marks

Section C: a case, a Series, and SQL twice

Each question has three parts of one mark, apart from 30 (A). Keep 28 minutes for this section.

  1. 29. Read each situation and answer. (i) A stranger guesses the password of Dev's school account and changes his settings. Name the cybercrime. (ii) A shopping app notes Reema's location in the background even when she is not using it. Which kind of digital footprint is this? (iii) Reema wants to print a photograph from a website in the school magazine. What should she do first?
    Worked answer (i) Hacking, entering an account or system without permission. (ii) A passive digital footprint: the data is collected without her entering it. (iii) Check the licence or ask the owner for permission, and then credit the source. One mark each.
  2. 30. (A) (i) Write a program to make a Series named Rain from a NumPy array of 182, 240, 96 and 31, with the labels Jun, Jul, Aug and Sep, and print it. (ii) Write the output of print(Rain[Rain > 100]). OR (B) Study the DataFrame df.
    StallAdultsChildren
    0Pottery6025
    1Puppets3540
    2Kites4852
    Write statements to: (i) add a column Total holding Adults plus Children; (ii) change the Children value of the row labelled 1 to 45; (iii) remove the row labelled 2 from df itself.
    Worked answer (A) (i) two marks, (ii) one mark.
    30 (A) (i)Series from an ndarray
    import pandas as pd
    import numpy as np
    mm = np.array([182, 240, 96, 31])
    Rain = pd.Series(mm, index=["Jun", "Jul", "Aug", "Sep"])
    print(Rain)
    30 (A) (ii)output
    Jun    182
    Jul    240
    dtype: int64
    (B) One mark each.
    30 (B)three statements
    df["Total"] = df["Adults"] + df["Children"]
    df.loc[1, "Children"] = 45
    df.drop(2, axis=0, inplace=True)
    df after all threelook at row 1
         Stall  Adults  Children  Total
    0  Pottery      60        25     85
    1  Puppets      35        45     75
    Total for Puppets stays 75. A column worked out earlier is not recalculated when a value it came from changes.
  3. 31. Table PARCEL is given.
    PNoSenderCityBooked
    501Ira MenonMysuru2026-08-03
    502Gurpreet GillAmritsar2026-06-19
    503Lalit RaoMysuru2026-09-27
    504Noor JahanLucknow2026-06-05
    505Tenzin BhutiaGangtok2026-08-21
    Write queries to display: (i) the parcel number and the first three letters of the city, for parcels booked after 31 July 2026; (ii) each parcel number with the name of the month in which it was booked; (iii) sender and booking date, latest booking first.
    Worked answer
    31one mark each
    SELECT PNo, LEFT(City, 3) FROM PARCEL WHERE Booked > '2026-07-31';
    
    SELECT PNo, MONTHNAME(Booked) FROM PARCEL;
    
    SELECT Sender, Booked FROM PARCEL ORDER BY Booked DESC;
    On this data (i) returns 501 Mys, 503 Mys and 505 Gan, and (iii) runs from Lalit Rao down to Noor Jahan.
  4. 32. (A) Table PLANTING is given.
    PIDTreePlanted
    1Neem2025-07-06
    2Gulmohar2026-01-19
    3Arjun2025-11-30
    Write the output:
    (i) SELECT MID(Tree, 2, 3), INSTR(Tree, 'j') FROM PLANTING WHERE PID = 3;
    (ii) SELECT DAYNAME(Planted), MONTH(Planted) FROM PLANTING WHERE PID = 2; (19 January 2026 was a Monday.)
    (iii) SELECT YEAR(Planted), COUNT(*) FROM PLANTING GROUP BY YEAR(Planted);
    OR (B) Write the output:
    (i) SELECT ROUND(386.47, -1), ROUND(386.47, 1);
    (ii) SELECT LOWER(LEFT('Coral Reef', 7));
    (iii) SELECT INSTR(LTRIM('  Lakshadweep'), 'dw');
    Worked answer (A) One mark each.
    32 (A)as MySQL printed it
    +-----------------+------------------+
    | MID(Tree, 2, 3) | INSTR(Tree, 'j') |
    +-----------------+------------------+
    | rju             |                3 |
    +-----------------+------------------+
    
    +------------------+----------------+
    | DAYNAME(Planted) | MONTH(Planted) |
    +------------------+----------------+
    | Monday           |              1 |
    +------------------+----------------+
    
    +---------------+----------+
    | YEAR(Planted) | COUNT(*) |
    +---------------+----------+
    |          2025 |        2 |
    |          2026 |        1 |
    +---------------+----------+
    (B) (i) 390 and 386.5: minus 1 rounds to the nearest ten, 1 keeps one decimal. (ii) coral r: seven characters, and the space is one of them. (iii) 7: LTRIM clears the two spaces first, then L, a, k, s, h, a are 1 to 6.

If 30 took long, go back to DataFrame for Class 12 IP. If 32 did, work through the IP SQL question set.

Section D, 2 x 4 = 8 marks

Section D: one chart and one pair of tables

Question 33 has no choice. In Question 34 pick the side you can finish, queries or outputs. About 22 minutes for both.

  1. 33. Write a Python program using Matplotlib to draw a histogram of the waiting times, in minutes, of 20 patients: 4, 13, 7, 19, 10, 23, 8, 15, 12, 27, 3, 14, 6, 18, 11, 9, 21, 16, 13, 8. Use the intervals 0 to 5, 5 to 10 and so on up to 30. Import the library, label the data "Patients", give the title "Waiting Time at the Clinic", label both axes, and display the legend and the plot.
    Worked answer
    33histogram with fixed bins
    import matplotlib.pyplot as plt
    
    minutes = [4, 13, 7, 19, 10, 23, 8, 15, 12, 27,
               3, 14, 6, 18, 11, 9, 21, 16, 13, 8]
    plt.hist(minutes, bins=[0, 5, 10, 15, 20, 25, 30],
             edgecolor="black", label="Patients")
    plt.title("Waiting Time at the Clinic")
    plt.xlabel("Minutes")
    plt.ylabel("Number of patients")
    plt.legend()
    plt.show()
    Histogram of waiting time at the clinic with bars of 2, 5, 6, 4, 2 and 1 patients for the six five-minute intervals
    The bars are 2, 5, 6, 4, 2 and 1. A value on a boundary, such as 10, is counted in the interval that begins with it. Marks in the official shape: import 1, plotting call with its label 1, and half each for the title, the two axis labels together, the legend and show. The edge colour is optional.
  2. 34. (A) Tables TRIP and ROUTE are given.
    TripNoDriverRouteIDFare
    1BashirR140
    2SavitaR265
    3BashirR140
    4MuruganR390
    5SavitaR270
    6DeepaR135
    RouteIDPlaceKm
    R1Bus Stand4
    R2Fort Gate7
    R3Airport12
    Write queries to display: (i) each driver with the number of trips made, only for drivers with more than one trip; (ii) the driver, place and fare of every trip on a route longer than 5 km. OR (B) Tables FILM and LANG are given.
    FIDTitleLangIDMinutes
    F1Monsoon PostL1118
    F2The Kite MakerL296
    F3Salt RoadL1132
    F4LadderL388
    F5Two HarboursL2105
    LangIDLName
    L1Malayalam
    L2Hindi
    L3Assamese
    Write the output:
    (i) SELECT LangID, COUNT(*), MIN(Minutes) FROM FILM GROUP BY LangID HAVING COUNT(*) > 1 ORDER BY LangID DESC;
    (ii) SELECT Title, LName FROM FILM, LANG WHERE FILM.LangID = LANG.LangID AND Minutes < 100;
    Worked answer (A) Two marks each.
    34 (A)group, then equi-join
    SELECT Driver, COUNT(*) FROM TRIP
    GROUP BY Driver HAVING COUNT(*) > 1;
    
    SELECT Driver, Place, Fare FROM TRIP, ROUTE
    WHERE TRIP.RouteID = ROUTE.RouteID AND Km > 5;
    The first returns Bashir 2 and Savita 2. The second returns three rows: Savita to Fort Gate for 65 and for 70, and Murugan to the Airport for 90. The two tables without any condition would give 18 rows.
    (B) Two marks each.
    34 (B)as MySQL printed it
    +--------+----------+--------------+
    | LangID | COUNT(*) | MIN(Minutes) |
    +--------+----------+--------------+
    | L2     |        2 |           96 |
    | L1     |        2 |          118 |
    +--------+----------+--------------+
    
    +----------------+----------+
    | Title          | LName    |
    +----------------+----------+
    | The Kite Maker | Hindi    |
    | Ladder         | Assamese |
    +----------------+----------+
    DESC puts L2 above L1, and L3 is dropped because it has one film only.

All three plot types, with their code and pictures, are on Matplotlib charts for Class 12 IP.

Section E, 3 x 5 = 15 marks

Section E: network, DataFrame, SQL commands

Three questions, 15 marks, about 38 minutes. Only Question 37 has a choice.

  1. 35. Vanya Seeds is wiring four buildings at its farm-research centre near Nashik.
    FromToDistance
    OfficeLab70 m
    OfficeStore45 m
    OfficeTraining130 m
    LabStore55 m
    LabTraining90 m
    StoreTraining110 m
    BuildingComputers
    Office35
    Lab80
    Store12
    Training28
    (i) Suggest the building for the server, with a reason. (ii) Suggest a cable layout in which every building joins the server building directly, and name the topology. (iii) In your layout, is a repeater needed anywhere? Which of the six distances would need one if they were cabled? (iv) The centre is to be linked to the main office in Pune. Name the type of network, and a device that joins the centre's network to it. (v) Staff want to talk to Pune by voice over this internet link without using the telephone network. Which technology is this?
    Worked answer (i) Lab, as it has the most computers (80), so most of the traffic stays within that building.
    (ii) Star, with Lab in the middle:
    35 (ii)layout
     Office ----- 70 m ----+
                           |
     Store ------ 55 m --- Lab (server)
                           |
     Training --- 90 m ----+
    (iii) No. All three cables are under 100 m. Office to Training (130 m) and Store to Training (110 m) would need one.
    (iv) WAN, since Pune is another city; a router.
    (v) VoIP, Voice over Internet Protocol.
    One mark for each part. Part (iii) shows why you should draw the layout before writing about repeaters.
  2. 36. (i) Create the DataFrame SweetDF from a dictionary of Series.
    SweetBoxesPrice
    0Peda40220
    1Ladoo65180
    2Barfi30260
    Then write statements to: (ii) add a column Value holding Boxes multiplied by Price; (iii) display only the rows where Price is more than 200. (3 + 1 + 1)
    Worked answer
    36creation, column, Boolean filter
    import pandas as pd
    data = {"Sweet": pd.Series(["Peda", "Ladoo", "Barfi"]),
            "Boxes": pd.Series([40, 65, 30]),
            "Price": pd.Series([220, 180, 260])}
    SweetDF = pd.DataFrame(data)
    print(SweetDF)
    
    SweetDF["Value"] = SweetDF["Boxes"] * SweetDF["Price"]
    
    print(SweetDF[SweetDF["Price"] > 200])
    Output of the two printspandas 2.3
       Sweet  Boxes  Price
    0   Peda     40    220
    1  Ladoo     65    180
    2  Barfi     30    260
       Sweet  Boxes  Price  Value
    0   Peda     40    220   8800
    2  Barfi     30    260   7800
    The filter keeps the labels 0 and 2. Use Series for the columns: a dictionary of lists would show the same table but would not be what part (i) asks for.
  3. 37. (A) Write SQL commands to: (i) create the table INSTRUMENT with ICode (integer, primary key), IName (up to 20 characters), Family (up to 15 characters) and Rent (integer); (ii) insert the row 11, Veena, String, 450. Three more rows are then added:
    ICodeINameFamilyRent
    12TablaDrum300
    13BansuriWind150
    14MridangamDrum380
    (iii) raise the rent of every wind instrument by 30; (iv) delete the instruments whose rent is from 300 to 400; (v) add a column Keeper of type VARCHAR(25). OR (B) Table HOMESTAY has the columns HCode, HName, State, Rooms, Tariff and Opened (a date). Write queries to display: (i) each HName with its number of characters; (ii) the first three letters of State in capitals; (iii) HName and State of homestays opened in 2024 or later; (iv) the highest and the lowest tariff; (v) HName and Tariff, the costliest first.
    Worked answer (A) One mark each.
    37 (A)DDL and DML
    CREATE TABLE INSTRUMENT (ICode INT PRIMARY KEY, IName VARCHAR(20),
                             Family VARCHAR(15), Rent INT);
    INSERT INTO INSTRUMENT VALUES (11, 'Veena', 'String', 450);
    UPDATE INSTRUMENT SET Rent = Rent + 30 WHERE Family = 'Wind';
    DELETE FROM INSTRUMENT WHERE Rent BETWEEN 300 AND 400;
    ALTER TABLE INSTRUMENT ADD Keeper VARCHAR(25);
    The table at the end:
    SELECT * FROM INSTRUMENTas MySQL printed it
    +-------+---------+--------+------+--------+
    | ICode | IName   | Family | Rent | Keeper |
    +-------+---------+--------+------+--------+
    |    11 | Veena   | String |  450 | NULL   |
    |    13 | Bansuri | Wind   |  180 | NULL   |
    +-------+---------+--------+------+--------+
    The new column starts as NULL in every row.
    (B) One mark each.
    37 (B)five queries
    SELECT HName, LENGTH(HName) FROM HOMESTAY;
    SELECT UPPER(LEFT(State, 3)) FROM HOMESTAY;
    SELECT HName, State FROM HOMESTAY WHERE YEAR(Opened) >= 2024;
    SELECT MAX(Tariff), MIN(Tariff) FROM HOMESTAY;
    SELECT HName, Tariff FROM HOMESTAY ORDER BY Tariff DESC;
    All five were run on a three-row test table.

Pens down

How do you mark your own IP sample paper?

Mark it unit by unit, not section by section, because a weak unit is hidden when its questions are spread over five sections.

Your marks on this paper

UnitAdd the marks of questionsOut ofIf you scored under two thirds
pandas and charts1, 4, 8, 12, 15, 18, 20, 22, 24, 28, 30, 33, 3625Type five outputs a day and predict each before running it
SQL2, 6, 9, 11, 14, 17, 19, 21, 26, 31, 32, 34, 3725One small table, one query for each listed function
Networks5, 10, 16, 25, 3510Two cases with the layout drawn, and the device list
Society3, 7, 13, 23, 27, 2910Differences in pairs, one line each

How the 180 minutes divide

StepMinutes
Reading the paper, choosing sides of each OR10
Sections A and B60
Sections C and D50
Section E38
Reading back: quotes, brackets, semicolons, labels22

This is how we teach the time, not a CBSE rule. Some students do Section E second, while the DataFrame is easy to think about.

Then move to IP important questions for the unit that lost most.

Type what you wrote

In class your handwritten pandas answer is typed letter for letter and run. A missing bracket around a condition is remembered after one ValueError.

Run the query on rows

Your SQL is tried on a small table, so you see the 18 rows that a forgotten joining condition brings back.

Cut the long answers

Theory answers of ten lines are cut to the two sentences that carry the marks, and you rewrite them from memory next time.

One to one, at your own timing

Bring this paper, marked by you or not at all

Paper practice is done with one student at a time, on the days and at the hour you choose. A priority demo is a simple way to begin: a full class on a paper you have written, with its fee adjusted against the first month if you enrol. A free demo class is offered as well.

Before you enrol · Try a class

Priority demo, at a slot you pick

a full live class of about 45 to 60 minutes

  • One section of your paper is marked live, part by part
  • A pandas answer and a query are run exactly as written
  • You learn which unit is costing the most, with proof
  • A written skill report follows the class
Book a priority demo

The classes · Choose your own timing

Personalised one to one

₹4,999

per month, 4 private classes, fully flexible timing

  • New 065 papers, set when you are ready for them
  • Your scripts marked the way the official scheme splits marks
  • Outputs predicted on paper before any code is run
  • Short, scoring answers for networks and society
Ask for a personalised plan

If your school pre-board is near, we mark that paper too once it comes back, since a real script says more than a mock. The fee is charged monthly, there is no admission fee, and you can stop at any month end.

Studying outside India?

IP papers marked for students in other time zones

The 065 theory paper is the same for CBSE schools in India and abroad. Write it on your weekend and bring it to a class in your own evening.

Where you liveTime differenceUsual class window, local timeFormat
India
every Indian city
Indian timeAny time you choosePersonalised 1-on-1
UAE and Oman
Dubai, Abu Dhabi, Sharjah, Muscat
1 h 30 min behind India3:00 PM to 9:00 PMPersonalised 1-on-1
Saudi Arabia, Qatar, Kuwait, Bahrain
Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama
2 h 30 min behind India3:00 PM to 9:00 PMPersonalised 1-on-1
Nepal
Kathmandu
15 min ahead of India4:30 PM to 9:00 PMPersonalised 1-on-1
Ethiopia and East Africa
Addis Ababa and East Africa Time
2 h 30 min behind India4:30 PM to 9:00 PMPersonalised 1-on-1
Singapore and Malaysia
Singapore, Kuala Lumpur
2 h 30 min ahead of India3:30 PM to 9:00 PMPersonalised 1-on-1

Send clear photographs of the pages before the class so that the time goes into marking. If your school uses another edition of the textbook, nothing changes, because the paper follows the syllabus.

What families say

Rated 4.9 across 547 Google reviews

Real reviews from real families. We neither write nor commission them.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

The rest of the Class 12 series

More pages for Class 12 students

Every page in the CBSE Class 12 Informatics Practices series, grouped by what you need.

Questions about the IP sample paper

What students ask about the Class 12 IP sample paper 2026-27

Has CBSE released the Class 12 IP sample paper 2026-27?

Yes. The sample question paper and marking scheme for Informatics Practices (065), Class XII 2026-27, are on cbseacademic.nic.in. The paper is for 70 marks and three hours, and it notes that there is no change in the question paper design and assessment pattern for this session.

How many questions come in the Class 12 IP paper?

Thirty-seven, all compulsory. Section A has 21 questions of 1 mark, Section B seven of 2, Section C four of 3, Section D two of 4 and Section E three of 5. Seven of them offer an internal choice in the 2026-27 sample paper.

Where can I get a Class 12 IP sample paper with solutions?

This page has an original 70-mark paper with a worked answer under each question. The official paper and its marking scheme are separate files on the CBSE academic site. Solve the official one first, then this one, so that you meet two papers of the same design.

Which questions have a choice in the Informatics Practices sample paper?

Questions 22, 25, 28, 30, 32, 34 and 37 in the 2026-27 paper. There is no choice in Section A, in the society case, the single-table queries of Section C, the Matplotlib program, the network case or the DataFrame question of Section E, so prepare those fully.

Is the IP paper easier than the Computer Science paper?

It is different. Both have 37 questions and 70 marks, but IP gives 25 marks each to pandas with charts and to SQL, and 10 to societal impacts. Computer Science gives 40 marks to Python programming with files and stack. Choose by the work you like, not by a rumour about difficulty.

Does the IP sample paper have pie charts or subqueries?

No. The 2026-27 syllabus names line plot, bar graph and histogram only, and SQL up to functions, GROUP BY, HAVING, ORDER BY and an equi-join of two tables. The sample paper stays inside that, with a line graph program and no subquery.

Will import pandas lose marks if I forget it?

In the chart question the import alone is one mark, so never skip it there. In the DataFrame answers the scheme prints the import line but gives the marks for correct creation as a whole. Writing it every time costs five seconds.

Do I need to write the output with the program in IP?

Only when the question asks for output. When it does, copy the shape pandas uses: labels on the left, values on the right, NaN where a value is missing, and the dtype line under a Series. For SQL, write the heading row as well as the values.

When is the CBSE Class 12 IP exam in 2027?

Informatics Practices (065) is on Wednesday 31 March 2027, 10:30 AM to 1:30 PM, according to the CBSE date sheet of 6 November 2026. Computer Science (083) and Information Technology (802) are in the same slot.

Can someone check my IP sample paper and tell me my mistakes?

Yes. Modern Age Coders marks your own script live in a personalised one to one class, runs your pandas and SQL answers, and shows which unit to repair. You can begin with a priority demo, which ends with a written skill report, or with a free demo class.

Start

Three hours alone, then one class with a teacher

Write the paper above in one sitting. Then book a priority demo at a time that suits you: in a full live class of about 45 to 60 minutes the teacher marks a section with you, runs one of your programs and sends a written skill report. If you enrol, the demo fee is adjusted against the first month.

Only want to look first? Choose the free demo class. To rehearse the other 30 marks, use the IP viva questions.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Every class is live video. The form requests a callback and reserves nothing.

We call within a few hours. No card, no enrolment fee.

Want it sooner? Book a priority demo

A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.

Book a priority demo

Keep exploring Modern Age Coders

By class and age

Learn more

Free resources

From the blog

Start here