How the Class 12 IP practical is marked (CBSE 2026-27)
The short answer: Informatics Practices has a 70-mark theory paper and a 30-mark practical. The split below is from the CBSE IP syllabus for 2026-27. CBSE's marks circular of 5 November 2026 lists a Board-appointed external examiner for the Class XII IP practical, who assesses you together with an internal examiner appointed by your principal (often your IP teacher).
What the viva really checks
CBSE's practical rules say viva questions should relate to the practical in hand or your project, not general questions. So the examiner will point at your own code and ask what a line does, what happens if the input changes, or why you chose a bar chart. Every answer below is written for that kind of follow-up.
CBSE does not publish a list of viva questions. The questions on this page are original practice questions built on the prescribed syllabus and the suggested practical list, so you can prepare for whatever the examiner picks.
The 10 IP viva questions asked in almost every lab
Pandas Series viva questions
What is a Series? How is it different from a Python list?
A Series is a one-dimensional labelled array. Every value has an index label, which can be numbers or strings like subject names. A list only has positions. A Series also supports vectorised maths, so marks plus 5 adds 5 to every element without a loop.
In how many ways can you create a Series? Show one from a dictionary.
From a list or ndarray, from a dictionary and from a scalar value. For a dictionary I write pd.Series({'Maths': 92, 'IP': 95}). The keys become the index labels and the values become the data, in the same order.
How do you create a Series from a scalar value?
I must give an index, for example pd.Series(10, index=['a', 'b', 'c']). The scalar 10 is repeated for every label. Without an index the Series would have just one element.
What happens when you add two Series with different indexes?
Pandas aligns them on the index labels. Labels present in both are added. A label present in only one gives NaN, because the other value is missing. If I want zero instead, I use s1.add(s2, fill_value=0).
How do you print elements above the 75th percentile of a Series?
First I find the cut-off with q = s.quantile(0.75). Then I use boolean indexing and keep only the values greater than q. That is the program from the CBSE suggested list, and it shows I understand both quantile and filtering.
What is the difference between s[1:3] and s['b':'d']?
Slicing by position excludes the end, so s[1:3] gives the elements at positions 1 and 2. Slicing by labels includes the end label, so s['b':'d'] gives b, c and d. That inclusive end often surprises students.
Name some attributes of a Series.
index gives the labels, values gives the data as an array, dtype gives the data type, size gives the number of elements, shape gives a tuple like (6,), and empty tells me whether it has no elements. name sets a name for the Series itself.
What do head() and tail() do on a Series?
head() returns the first five elements and tail() the last five. I can pass a number, so tail(2) gives the last two. I use them to check a large Series quickly without printing all of it.
DataFrame viva questions: create, select, add, delete, rename
What is a DataFrame? Give its main features.
A DataFrame is a two-dimensional labelled table, like a sheet. It has a row index and column labels, each column can hold a different data type, and its size can change, so I can add or delete rows and columns. Each column is itself a Series.
How did you create the examination result DataFrame?
I made a dictionary where each key is a column name, like Name, Maths and IP, and each value is a list of marks. Then pd.DataFrame(result, index=['R1', 'R2', 'R3']). I could also build it from a list of dictionaries, one dictionary per student.
How do you display row labels, column labels, data types and dimensions?
df.index gives the row labels, df.columns the column labels, df.dtypes the data type of each column, df.shape the rows and columns as a tuple, and df.ndim the number of dimensions, which is 2. df.size gives the total number of values.
How do you add a new column and a new row?
For a column I assign a list or a calculation, for example df['Total'] = df['Maths'] + df['IP']. For a row I use loc with a new label, df.loc['R4'] = ['Asha', 88, 91], and the list must match the number of columns.
How do you delete a column or a row?
df.drop('Total', axis=1) deletes a column and df.drop('R2', axis=0) deletes a row. drop returns a new DataFrame, so I either store it or pass inplace=True. For a column I can also write del df['Total'].
How do you rename columns?
df.rename(columns={'IP': 'Informatics'}) changes that one label and keeps the rest. For rows I pass index= instead. Again it returns a new DataFrame unless I set inplace=True.
What is boolean indexing? Give an example from your file.
It selects rows using a condition that gives True or False for each row. In my file I kept students who scored above 80 in IP with df[df['IP'] greater than 80], written with the comparison sign. Only rows where the condition is True are returned.
How do you select one column, several columns and a single value?
df['Maths'] gives one column as a Series. df[['Name', 'Maths']] with a list inside gives a smaller DataFrame. df.loc['R1', 'Maths'] gives one value by labels, and df.iloc[0, 1] gives it by position.
How do you iterate over a DataFrame?
iterrows() gives each row as an index label and a Series, so I can print each student's marks. items() gives each column label with its Series; older books call it iteritems(). For simple calculations I avoid loops and use column operations, which are faster.
How did you group the quarterly sales by category?
I created a DataFrame with Category, Item and Expenditure columns. Then df.groupby('Category')['Expenditure'].sum() gave the total spent per category. groupby splits the rows into groups, applies the function and combines the results.
How do you find and remove duplicate rows?
df.duplicated() returns True for every row that repeats an earlier row. df.drop_duplicates() returns the DataFrame without those repeats. I can pass subset=['Name'] to check only some columns, and keep='last' to keep the last copy instead of the first.
What is NaN and how do you deal with it?
NaN means not a number, a missing value. isnull() shows where values are missing, fillna(0) replaces them with a value I choose, and dropna() removes the rows that contain them. I decide based on the data: a missing mark is not the same as zero.
CSV import and export viva questions
What is a CSV file and why do we use it?
CSV means comma-separated values. It is a plain text file where each line is a record and commas separate the fields. Almost every tool, from spreadsheets to databases, can read and write it, so it is an easy way to move data into Pandas.
Explain the parameters of read_csv() you used.
The file path is required. sep sets the separator if it is not a comma, header=None says the file has no heading row, names gives my own column names, and index_col makes one column the row index. nrows reads only the first few lines.
How do you export a DataFrame to a CSV file?
df.to_csv('report.csv'). By default it also writes the row index as the first column. If I do not want that I add index=False. I can also set sep and header in the same way as read_csv.
Your CSV has no heading row. What goes wrong and how do you fix it?
Pandas treats the first data row as column labels, so I lose one record and get odd column names. I fix it with header=None and names=['Roll', 'Name', 'Marks'], so every row is read as data.
Where did you get the data for your open-source data program?
I downloaded a CSV from data.gov.in on state-wise rainfall, as the CBSE practical list suggests using open data. I read it with read_csv, grouped by state, took the mean and plotted a bar chart. I mention the source on the program printout.
Matplotlib and data visualisation viva questions
What is the purpose of plotting data?
A chart shows patterns that a table hides: a trend over months, a comparison between classes or the spread of marks. The examiner can see in two seconds that Section B did better in IP, which would take much longer from the raw numbers.
When do you use a line plot, a bar graph and a histogram?
A line plot shows change over an ordered axis like months. A bar graph compares separate categories like subjects or sections. A histogram shows how continuous values like marks are distributed across ranges called bins.
What is the difference between a bar graph and a histogram?
Bars in a bar graph stand for separate categories, so there are gaps and the order can change. A histogram groups numerical data into continuous intervals, so the bars touch and the order is fixed. A bar graph uses counts or values given; a histogram counts them for me.
How do you add a title, axis labels and a legend?
plt.title('IP marks by section'), plt.xlabel('Section') and plt.ylabel('Average marks'). For the legend I give each plot a label, like label='2025', and then call plt.legend(). Without labels the legend has nothing to show.
What are bins in a histogram?
Bins are the intervals the values are grouped into. bins=5 makes five equal intervals between the minimum and maximum. I can also pass a list like [0, 33, 60, 75, 90, 100] to match grade boundaries, which made my marks histogram easier to read.
How can you plot directly from a DataFrame?
A DataFrame has its own plot() method that uses Matplotlib, for example df.plot(kind='bar', x='Subject', y='Average'). I still call plt.title and plt.show() after it. It saves time when the data is already in a DataFrame.
How do you change colour, line style and marker in a line plot?
I pass arguments to plot(): color='green', linestyle='dashed', marker='o' and linewidth=2. Markers make each data point visible, which helps when there are only a few points, like four quarterly sales figures.
Your chart shows but the saved file is blank. Why?
I called savefig() after show(). show() displays and then clears the current figure, so nothing was left to save. The fix is to call savefig() first and show() last.
SQL viva questions: math, text, date and aggregate functions
What do POWER(), ROUND() and MOD() return? Give examples.
POWER(2, 3) returns 8. ROUND(15.193, 1) returns 15.2, and ROUND(1563, -2) returns 1600 because a negative position rounds to the left of the decimal point. MOD(11, 4) returns 3, the remainder.
What will SUBSTRING('Informatics', 3, 4) return?
It returns form. Counting starts at 1, so position 3 is f, and it takes four characters: f, o, r, m. MID() works the same way. If I leave out the length it returns everything from position 3 to the end.
What do INSTR(), LEFT() and RIGHT() do?
INSTR('Informatics', 'mat') returns 6, the position where mat first starts, and 0 if it is not found. LEFT('Delhi', 3) gives Del and RIGHT('Delhi', 2) gives hi.
Difference between TRIM(), LTRIM() and RTRIM()?
LTRIM removes spaces from the left, RTRIM from the right and TRIM from both ends. None of them removes spaces in the middle. I use TRIM when names have been typed with extra spaces, so that comparisons work.
What is the difference between NOW() and DATE()?
NOW() returns the current date and time together. DATE() takes a date-time value and returns only the date part, so DATE(NOW()) gives today's date. MONTH(), YEAR() and DAY() then pick out parts of a date.
MONTH() versus MONTHNAME(), and DAY() versus DAYNAME()?
MONTH('2027-01-15') returns the number 1, while MONTHNAME returns January. DAY returns the day of the month, 15, while DAYNAME returns the weekday name, here Friday.
What is the difference between single-row and aggregate functions?
A single-row function like UPPER or ROUND works on each row and returns one value per row. An aggregate function like SUM or AVG works on a set of rows and returns one value for the whole set or for each group.
How did you find the minimum, maximum, sum and average marks?
SELECT MIN(marks), MAX(marks), SUM(marks), AVG(marks) FROM student. Each returns one value for the table. I gave them aliases with AS, like AS average_marks, so the output headings are readable.
COUNT of all rows versus COUNT(column): what is the difference?
COUNT with the asterisk counts every row, including rows with NULL values. COUNT(marks) counts only rows where marks is not NULL. COUNT(DISTINCT country) counts each different country once. In a class of 40 where 2 marks are missing, they return 40 and 38.
Why can't you write WHERE marks = NULL?
NULL means unknown, so any comparison with the equals sign gives unknown, not true, and no row is returned. The correct form is WHERE marks IS NULL or IS NOT NULL.
What is the difference between DELETE, DROP and ALTER?
DELETE removes rows and keeps the table; it is DML. DROP TABLE removes the whole table with its structure; it is DDL. ALTER TABLE changes the structure, for example adding a column. In my file I used DELETE to remove one student by roll number.
How did you create the student table with a primary key?
CREATE TABLE student (sid INT PRIMARY KEY, name VARCHAR(30), marks INT). Then INSERT INTO student VALUES (101, 'Kabir', 86). If I insert another row with sid 101, MySQL rejects it because the primary key must be unique.
GROUP BY, HAVING, ORDER BY and equi-join viva questions
How did you count customers from each country?
SELECT country, COUNT(customer_id) FROM customer GROUP BY country. GROUP BY puts the rows of each country together and COUNT runs once per group, so I get one line per country with its total.
Why is HAVING needed when we already have WHERE?
WHERE works on individual rows before grouping, so it cannot use COUNT or SUM. HAVING works on the groups. To list countries with more than five customers I group by country and write HAVING COUNT(customer_id) greater than 5.
Write the order of clauses in a SELECT statement.
SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY. MySQL logically filters rows with WHERE, forms groups, filters groups with HAVING, and sorts last. Writing them in the wrong order gives a syntax error.
How do you sort marks in descending order? What is the default?
ORDER BY marks DESC. The default is ascending, ASC, so I only write ASC for clarity. I can sort on two columns, for example ORDER BY class, marks DESC, which sorts by class first and by marks within each class.
What is an equi-join?
A join where the tables are matched using equality on a common column. For example student and fees joined where student.sid equals fees.sid. Only rows with matching values appear in the result.
What happens if you forget the join condition?
I get a Cartesian product: every row of the first table paired with every row of the second. With 10 students and 10 fee records that is 100 rows, most of them meaningless.
Why do we prefix column names with the table name in a join?
Because both tables may have a column with the same name, like sid. Writing student.sid or using aliases like s.sid removes the ambiguity, otherwise MySQL gives an error that the column is ambiguous.
What are degree and cardinality of a table?
Degree is the number of columns, cardinality is the number of rows. My student table with sid, name and marks has degree 3; with 25 students its cardinality is 25. Adding a row changes cardinality, adding a column changes degree.
What is the difference between DISTINCT and GROUP BY?
DISTINCT only removes repeated values from the output, so SELECT DISTINCT country lists each country once. GROUP BY also forms groups that aggregate functions can work on, so I can count or total the rows of each country.
Networks and societal impacts: short answers for the closing questions
These two units are assessed in the theory paper, but an examiner sometimes ends with one question from them, especially if your project uses the internet or open data. One line each is enough.
IP project viva questions with model answers
Tell me about your project in one minute.
Our project analyses the canteen sales of our school in Jaipur for three months. We collected daily sales in a CSV file, read it into Pandas, grouped it by item and by weekday, and plotted bar and line charts. The result showed samosa sales fall on Fridays, so the canteen now makes fewer.
Where did your data come from and how did you clean it?
The canteen manager gave us the sales register, and we typed it into a CSV. We removed duplicate rows with drop_duplicates(), filled two missing days with fillna using the weekly average, and renamed columns to short names before analysis.
Which part of the project did you do yourself?
We were a group of three. I wrote the grouping and plotting code and made the five charts; Riya entered and cleaned the data and Arjun wrote the report. I can explain every line of the plotting module, and I know how the cleaning works.
Why did you choose a bar graph here instead of a line plot?
Items like samosa, sandwich and juice are separate categories, so a bar graph compares them fairly. I used a line plot only for total sales by date, because time is ordered and the line shows the trend.
How would you improve the project with more time?
I would store the data in a MySQL table instead of a CSV, so new days can be added by the canteen staff, and read it into Pandas with a query. I would also compare terms, and add a simple chart for the canteen notice board.
Did you use any material from the internet? How did you credit it?
We used one open dataset on food prices from data.gov.in and a Matplotlib example from the official documentation. Both are listed in the bibliography with links. CBSE asks students to avoid plagiarism and reference every resource, so we wrote all our code ourselves.
How the IP viva goes, and the mistakes that cost marks
- CBSE sets no fixed length for the viva; expect a short conversation at the examiner's table, usually starting with the program you just ran.
- Do not say 'Pandas is a language'. It is a library for Python.
- Do not mix up loc and iloc, or forget that label slicing includes the end label.
- Do not write WHERE with an aggregate function; that belongs in HAVING.
- Know every program in your practical file. Examiners open it at random and ask you to explain one.
- If your output is wrong, say what you think caused it and how you would fix it. That earns more than silence.
- Use the words from your syllabus: Series, DataFrame, boolean indexing, aggregate function, equi-join.
A two-day revision plan before the IP practical
- 1
Day 1 morning: Pandas
Run five programs from your file again: a Series from a dictionary, the 75th percentile filter, the result DataFrame with its attributes, groupby on sales, and read_csv with to_csv. Say aloud what each line does.
- 2
Day 1 evening: plots
Draw one line plot, one bar graph and one histogram with title, labels and legend, and save each with savefig. Practise explaining why each chart type fits its data.
- 3
Day 2 morning: SQL
On one student table and one customer table, run every math, text, date and aggregate function in the syllabus, then GROUP BY with HAVING, ORDER BY DESC and one equi-join.
- 4
Day 2 evening: project and viva
Rehearse a one-minute summary of your project, your own part, the data source and one improvement. Then answer ten questions from this page out loud without looking.
Practicals for 2027 run in a window set by CBSE. The regular-session window is 1 January to 13 February 2027. Your school tells you the exact day, and the CBSE practical exam 2027 guide has the full rules.
Practise the IP viva out loud with an AI examiner
Reading answers is not the same as saying them to an examiner who interrupts. In the ExamPilot mock, an AI external examiner asks about your program, your SQL queries and your project, follows up when an answer is vague (for example 'what exactly does groupby return?'), and gives you a scored transcript showing which answers were clear and which need another try. Ten minutes a day in the last week builds the habit of answering in two or three crisp sentences.
Frequently asked questions
- How many marks is the viva in the Class 12 IP practical?
- In CBSE Informatics Practices (065) for 2026-27 the viva voce is 5 of the 30 practical marks. The rest is 8 for Pandas and Matplotlib programs, 7 for SQL queries, 5 for the practical file and 5 for the project. The viva also affects the other marks, because examiners ask you to explain your program and project.
- How many programs should be in the IP practical file?
- The 2026-27 syllabus asks for at least 15 programs based on Pandas, 4 based on Matplotlib and 15 SQL queries. Keep each program with its output printed or written neatly, and be ready to explain any one of them, because the examiner may open the file at random.
- Is the IP viva different from the Computer Science viva?
- Yes. Computer Science (083) asks about Python functions, file handling, the stack and Python-MySQL connectivity. Informatics Practices focuses on Pandas, Matplotlib and SQL functions, grouping and joins. Both ask about SQL and the project. See the Class 12 computer science viva guide if you take CS.
- Can I do the IP project alone?
- Yes. The syllabus says the project can be done individually or in a group of 2 to 3 students and should be started at least 6 months before the submission deadline. In a group, each member must be able to explain the whole project and say clearly which part they built.
- Who conducts the Class 12 IP practical?
- CBSE appoints an external examiner for the Class XII IP practical, and your school principal appoints an internal examiner, usually your IP teacher. Both can ask viva questions, and the marks are uploaded on the same day as the exam.
- What if my program gives an error during the practical?
- Stay calm and read the error message aloud to yourself. Most errors are a missing bracket, a wrong column name or a wrong file path. If you cannot fix it, explain to the examiner what the program should do and where you think the bug is. Clear reasoning still earns marks.
Practise out loud
Practise your IP practical viva out loud
An AI external examiner asks about your Pandas program, SQL queries and project, follows up on weak answers and gives you a scored transcript.
School practical viva · Class 12 Science practical viva — Physics, Chemistry, Biology, Biotechnology, Computer Science, IP, Maths, PE, English and Hindi
