---
title: "Class 12 Computer Science Viva Questions and Answers 2027"
description: "Class 12 computer science viva questions and answers for CBSE 083: 60 on the file, project, Python, files, stack, SQL and networks, with the follow-ups."
canonical: https://learn.modernagecoders.com/cbse-class-12-computer-science-viva-questions
source: src/pages/cbse-class-12-computer-science-viva-questions.html
---
> Class 12 computer science viva questions and answers for CBSE 083: 60 on the file, project, Python, files, stack, SQL and networks, with the follow-ups.

Start here

## Courses behind this viva practice

The Class 11 and 12 course that covers the 083 syllabus with its file and project, plus one course for each half of the viva that students find hardest to talk about.

[![Computer Science Class 11 and 12 course thumbnail](/images/ip-cs-class-11-12.webp)  083 / Full syllabus Computer Science 11 and 12 The CBSE track teaches Python, files, stack, SQL, networks and connectivity, with help on the practical file, the project and the viva. Open the course →](/courses/cbse-icse-computer-science-class-11-12-python-java-complete-course)[![Python for Teens course thumbnail](/images/python-teens.webp)  Python / From the base Python for Teens For a student who can copy a program but not explain it: functions, data structures and files, rebuilt through small projects of their own. Open the course →](/courses/python-complete-masterclass-teens)[![MySQL for Teens course thumbnail](/images/mysql-teens.webp)  SQL / Tables to apps MySQL for Teens SELECT to joins, then a Python program on top. It goes past the board syllabus, which helps if your project is a database app. Open the course →](/courses/mysql-mastery-for-teens)

Ans. The short version

Class 12 computer science viva questions and answers for CBSE 083 come from three places: your report file, your project, and the Python, SQL and networks behind them. The viva carries 3 of the 30 practical marks in 2026-27, beside the lab test (12), report file (7) and project (8). A strong answer names the idea, gives the reason, and points to a line in your own work. Modern Age Coders rehearses the viva live, personalised one to one, on your own file and project, at your own days and timing. A priority demo lets you try one full class first.

Q1. What is the viva worth, and how is it won?

## How many marks is the viva in Class 12 Computer Science?

The viva voce is 3 marks out of the 30 for the practical, in the CBSE 083 syllabus for 2026-27. The same short conversation also shows whether the file and project, 15 marks between them, are really yours.

| Practical head | Share | Marks |
| --- | --- | --- |
| Lab test: Python program 8, SQL queries 4 |   | 12 |
| Project |   | 8 |
| Report file |   | 7 |
| **Viva voce** |   | 3 |
| Practical total |   | 30 |

### The three-part answer

- **Name it.** One sentence with the correct term: "That is a default parameter."
- **Give the reason.** "It lets me call the function without passing a limit."
- **Point to the line.** "In program 6 I call it both ways, here and here."

Then stop. The next question tends to pick up the last word you said, so make it one you can defend.

**When.** For schools on the regular session, CBSE schedules practicals from 1 January 2027; winter-bound schools have 9 November to 19 December 2026. Your school fixes your own day, so ask for it now.

**What is not published.** CBSE gives no list of viva questions and no split of the 3 marks. Nobody can promise you the questions, only the kinds.

### Follow-ups climb a ladder: what, why, what if

| The opening question | An answer that stalls | An answer that stands | The likely "what if" |
| --- | --- | --- | --- |
| Why `rb` here? | "Because it is a binary file." | "The records were pickled, so they are bytes. I only read here, so I do not need `rb+`." | And if you had typed `wb`? |
| What is the primary key? | "The unique one." | "`mid`. Two members can share a name, so a name cannot identify a row." | Can it be left empty? |
| Where is the stack's top? | "At the end." | "At the last index, because `append()` and `pop()` both work there." | What if the list is empty? |
| Why `commit()`? | "To save." | "An INSERT is not permanent until it is committed. My add function commits after `execute()`." | Does the SELECT need it? |

If you do not know, say which part you do know: "I have not used `seek()` in my file, but it moves the file pointer."

Q2. What will they ask about your own work?

## Viva questions on the project and report file, Class 12 Computer Science

Questions 1 to 11 have no textbook answer. The samples use an invented project, a canteen pre-order program: swap in yours.

### The report file

1. What does your report file contain? Answer At least 15 Python programs, 5 sets of SQL queries and 4 Python to SQL programs, as the syllabus asks. Know your own totals.
2. Open any program and explain it. Answer Say what goes in, what comes out, then the one line that does the work. Do not read the code word by word. **Follow-up:** which line would you change to reverse the result?
3. Would this output be the same if I ran it now? Answer Yes, unless it uses `random`, takes typed input, or appends to a file that already has data.
4. Why are there comments and a docstring here? Answer They tell a reader the purpose of each part. In the lab test, documentation is 20% and code quality another 20% of the 8 program marks.

Still filling pages? [The Class 12 practical file](/blog/python-practical-file-class-12) has the format and programs with output.

**Say the failure, not only the rule.** "w erases the file" is a rule. "I lost my test data by opening with w, so this program now opens with a" is an answer only the person who wrote the program can give.

### The project

1. What problem does your project solve, and for whom? Sample answer "The canteen runs out of food because nobody knows the demand. Students order the evening before and the canteen sees one total per item." Name a real user, not "everyone".
2. You worked in a group. Which part is yours? Sample answer "I wrote the order module and its table. My partner wrote billing." Be ready to explain billing too.
3. Why a database, and not a CSV file? Sample answer "Orders change many times, and the primary key stops two orders sharing a number. A CSV would have to be rewritten for every change." If you used files, defend them: simple, no server needed.
4. Show me your tables. Why two and not one? Sample answer "Item prices are stored once in ITEM. ORDERS keeps only the item number as a foreign key, so a price change is one update."
5. What happens if I type letters where you ask for a quantity? Sample answer "`int()` raises ValueError, my except block prints a message and asks again." If yours crashes, fix it today.
6. How did you test it? Sample answer "A normal order, a wrong item number, quantity zero, and the last item deleted."
7. Which idea or code came from outside? Sample answer Tell the truth and show what you changed. The syllabus warns against plagiarism, and an honest source is easy to defend.

A complete worked project with its own viva questions is on [Class 12 CS project in Python and MySQL](/cbse-class-12-computer-science-project-python-mysql).

Q3. Can you read a program aloud?

## Python viva questions for Class 12: one program, eight questions

A short file program raises parameters, scope, exceptions and return values all at once. Talk through this one before you open the answers.

***Read this aloud**lab stock, binary file*

```
import pickle

LIMIT = 10                    # global variable

def low_stock(filename, limit=LIMIT):
    """Show items below limit, return the count."""
    found = 0                 # local variable
    try:
        with open(filename, "rb") as f:
            while True:
                item = pickle.load(f)
                if item["qty"] < limit:
                    print(item["name"], item["qty"])
                    found += 1
    except EOFError:
        pass                  # all records read
    finally:
        print("Search over")
    return found
```

Test data: lab.dat holds three dictionaries, Mouse 4, Cable 25 and Keyboard 9, each written with its own `pickle.dump()`.

***What it printed**two calls*

```
# print("Items to buy:", low_stock("lab.dat"))
Mouse 4
Keyboard 9
Search over
Items to buy: 2

# print("Items to buy:", low_stock("lab.dat", 5))
Mouse 4
Search over
Items to buy: 1
```

The function's own lines print before "Items to buy", because Python must finish the call to get the value it has to print.

### On this program

1. Name the positional and the default parameter. Answer`filename` is positional and must be given. `limit` has a default, so the first call uses 10 and the second replaces it with 5.
2. The loop says `while True`. How does it ever end? Answer After the last record, `pickle.load()` raises EOFError. Control leaves the loop and goes to the except.
3. Is `EOFError` a mistake in this program? Answer No. Here it is the signal that every record has been read, so `pass` is the right response.
4. What if lab.dat exists but is empty? Answer The first load raises EOFError at once. It prints "Search over" and returns 0.
5. What if the file does not exist? Answer`open()` raises FileNotFoundError, which this except does not catch. The finally still prints "Search over", then the program stops. **Fix:** add `except FileNotFoundError` with a message.
6. Where is `f.close()`? Answer The with statement closes the file when its block is left, even when an exception is what ends it.
7. Why return `found` when you could print it? Answer A returned value can be stored, compared or added by the caller.
8. Make it show only items that are finished. Answer Change the condition to `item["qty"] == 0`, or call it with a limit of 1 and change nothing.

### On Python in general

1. Does `def total(rate=5, qty):` work? Answer No, it is a SyntaxError. A parameter without a default cannot follow one that has a default.
2. A function has no return statement. What does it give back? Answer`None`. So `print(show())` prints an extra None.
3. You read a global inside a function and it worked. You wrote `x += 1` and it failed. Why? Answer Assignment makes `x` local to that function, so it is read before it has a value: UnboundLocalError. Declare `global x`, or better, pass it in and return it.
4. Pass a list to a function and append to it. Does the caller's list change? Answer Yes, both names refer to one mutable list. Assigning a new list to the parameter would not affect the caller's.
5. There is a return inside try. Does finally still run? Answer Yes. finally runs first, then the value is returned.
6. What is the difference between `randint(1, 6)` and `randrange(1, 6)`? Answer`randint` can give 6. `randrange` stops at 5. For a dice program only the first is right.

More of this kind: [functions in Python for Class 12](/cbse-class-12-computer-science-functions).

Q4. Files, then the stack

## Class 12 CS viva: Python file handling and stack questions

File questions are nearly all "what if" questions. Every answer from 26 to 40 was checked by running the code.

### Text files

1. You call `f.read()` twice in a row. What does the second one return? Answer An empty string. The pointer is already at the end. Use `f.seek(0)` to read again.
2. How does `readline()` show a blank line, and how does it show the end? Answer A blank line comes back as the newline character. The end of the file comes back as an empty string.
3. `r+` and `w+` both read and write. Which one is dangerous? Answer`w+`, because it empties the file on opening. `r+` keeps the content, writes over it from the start, and needs the file to exist already.
4. You opened with `a+` and read nothing. Why? Answer In append mode the pointer starts at the end. Move it with `seek(0)` before reading.
5. Can `write()` take a list or a number? Answer No, only a string; anything else is a TypeError. For a list of strings use `writelines()`, which adds no line breaks of its own.

### Binary files

1. Why does Notepad show nonsense for your .dat file? Answer pickle stores Python objects as bytes. Notepad tries to read those bytes as characters.
2. Your program dumped three times. How many loads are needed? Answer Three, one for each dump. A fourth raises EOFError. One dumped list of three records needs a single load.
3. In `rb+`, how do you update one record in place? Answer Store `f.tell()` before each load. When the record matches, change it, `seek()` back to the stored position and dump. **Catch:** a longer record overwrites part of the next one, so reading all and rewriting is safer.
4. What goes wrong if you open with `w` and then dump? Answer TypeError. Text mode accepts only strings, and `dump()` writes bytes.

The programs behind these are on [CSV and binary files for Class 12](/cbse-class-12-computer-science-csv-and-binary-files).

### CSV files

1. You added marks from a CSV and Python joined them like words. Why? Answer`reader()` gives each field as a string. Convert with `int()` or `float()` before adding.
2. How do you skip the heading row? Answer Call `next()` on the reader once before the loop.
3. What does `writerow("Asha")` put in the file? Answer`A,s,h,a`, because it takes each item of a sequence as one field. Pass a list: `writerow(["Asha"])`. For many rows at once, `writerows()` takes a list of lists.

### Stack

1. Where do you meet a stack outside this chapter? Answer A browser's back button and the undo command: the last action is the first one reversed.
2. From an empty stack: push 4, push 9, pop, push 2, push 7, pop. What is left? Answer`[4, 2]`, with 2 on top. The values popped were 9, then 7.
3. What does your pop function do when the stack is empty? Answer It tests the length first and reports underflow. Without the test, `pop()` on an empty list raises IndexError. **Follow-up:** could a list give overflow? Not in our programs, since no maximum size is fixed.

More practice: [stack for Class 12](/cbse-class-12-computer-science-stack).

Q5. SQL and the link to Python

## SQL viva questions for Class 12, on two small tables

SQL questions are easiest to answer from rows you can see. Keep one pair of tables like these in your head and prove every answer on them.

### Table MEMBER

| mid | mname | cid | fee |
| --- | --- | --- | --- |
| 11 | Aarav | 1 | 600 |
| 12 | Diya | 2 | 400 |
| 13 | Kabir | 1 | NULL |
| 14 | Meher | 2 | 400 |
| 15 | Rohan | 1 | 600 |

### Table CLUB

| cid | cname | room |
| --- | --- | --- |
| 1 | Robotics | L2 |
| 2 | Debate | A1 |
| 3 | Chess | B4 |

### SQL

1. What are the degree and cardinality of MEMBER? Answer Degree 4, the columns. Cardinality 5, the rows.
2. Name a candidate, an alternate and a foreign key here. Answer In CLUB, `cid` and `cname` could both identify a row if club names never repeat, so both are candidates. `cid` is primary, `cname` is alternate. `MEMBER.cid` is a foreign key.
3. How is UNIQUE different from PRIMARY KEY? Answer Both refuse duplicates. A table has one primary key and it can never be NULL. Several columns can be UNIQUE, and they may hold NULL.
4. Why does `WHERE fee = NULL` return nothing? Answer NULL means unknown, so no comparison with it is true. `IS NULL` finds Kabir. **Follow-up:**`fee <> 600` also misses him and gives only Diya and Meher.
5. What do `COUNT(*)` and `COUNT(fee)` give? Answer 5 and 4. `COUNT(*)` counts rows, `COUNT(fee)` skips the NULL. AVG skips it too: 2000 over 4 members is 500.
6. Show clubs with more than two members. Answer`GROUP BY cid HAVING COUNT(*) > 2` leaves club 1 with 3. WHERE runs before grouping, so it cannot use the count.
7. Rows and columns in the Cartesian product of the two tables? Answer 5 times 3 is 15 rows, and 4 plus 3 is 7 columns.
8. And in an equi-join, and a natural join, on `cid`? Answer Both give 5 rows. With `SELECT *` the equi-join shows 7 columns, `cid` twice; the natural join shows 6. Chess is missing from both: it has no members.
9. Separate DELETE, DROP and ALTER. Answer DELETE removes rows and the table stays. DROP removes the table itself. ALTER changes its structure, such as adding a column. **Follow-up:** DELETE is DML, the other two are DDL.

### Python and SQL connectivity

1. Give the steps of a connectivity program in order. Answer Import the connector, `connect()` with host, user, password and database, create a `cursor()`, `execute()` the query, then `commit()` for a change or fetch for a SELECT, and close.
2. What is a cursor? Answer The object that sends queries over the connection and holds the rows that come back. The fetch functions belong to it. `commit()` belongs to the connection.
3. Three rows match. You call `fetchone()`, then `fetchall()`. What comes back, and what if you fetch again? Answer The first row as a tuple, then a list of the other two. Rows already fetched are not repeated. Fetch again and there is nothing left: with the standard connector on our MySQL run a further `fetchone()` raised `InternalError: No result set available`, while some cursor types return `None`. Run the query again instead.
4. How does your program know an update found nobody? Answer`rowcount` is 0 after the UPDATE. No error is raised, so check it.
5. Why `%s` when `format()` also works? Answer With `format()` I must add the quotes, and a name like D'Souza breaks the query. With `%s` and a tuple of values, the connector does the quoting. It also stops typed text from being run as part of the query.

**Expect the password question.** "Why is your database password visible in the code?" An honest reply: it is a school lab project, and in a real program it would be kept outside the source file.

Write the queries, not only the definitions: [Class 12 SQL questions](/cbse-class-12-computer-science-sql-queries) and [Python MySQL connectivity](/cbse-class-12-computer-science-python-mysql-connectivity).

Q6. The last topic, and the last week

## Networks viva questions, and how to rehearse all 60

Networks answers are short comparisons. Learn each pair by the one thing that separates them.

### Computer networks

1. Your lab has a switch. Why not a hub? Answer A hub repeats every signal to all its ports. A switch sends data only to the device it is meant for. **Follow-up:** a router joins different networks.
2. When would you add a repeater, and when a gateway? Answer A repeater when a signal weakens over a long cable. A gateway when two networks use different protocols.
3. Circuit or packet switching: which carries a web page? Answer Packet switching. Data travels in packets that may take different routes. Circuit switching holds one path for the whole call.
4. One cable is cut in a star network and in a bus network. Compare. Answer In a star, only that computer drops off. In a bus, a break in the main cable can stop the whole network. **Follow-up:** the star's weak point is its central device.
5. Which protocols send and receive your email? Answer SMTP sends it. POP3 brings it down from the mail server. HTTPS is the secure form of HTTP, used for web pages.
6. What separates HTML from XML? Answer HTML has fixed tags and describes how a page is shown. XML lets you define your own tags to describe and carry data.

The full unit, with comparison tables, is on [computer networks for Class 12](/cbse-class-12-computer-science-computer-networks).

### A seven-day rehearsal

1. #### Days 1 and 2: your own pages

  Explain every file program in two sentences, aloud. Mark the ones where you stop.
2. #### Day 3: the project

  Questions 5 to 11 with your whole group. Each person explains a part written by somebody else.
3. #### Days 4 and 5: the bank

  Questions 12 to 60, mixed. Anything you missed goes on a list of at most ten.
4. #### Day 6: a stranger asks

  Somebody who has not seen your code opens the file and points.
5. #### Day 7: ten minutes

  Only the list of ten, and one run of the project from start to exit.

### In a one to one class

The teacher plays the examiner on your file: opens a page, points at a line, asks what, why and what if, and does not help until you finish.

### Marked on three things

Correct term, reason, and a line from your own work. You see which of the three you keep leaving out.

### Edits under the clock

"Now change it so that..." is asked with the editor open, so the lab test and the viva are practised together.

After the practical comes the theory paper on 31 March 2027. The path between them is on [the Class 12 CS revision plan](/cbse-class-12-computer-science-revision-plan).

One to one, with a class to try first

## Viva practice needs one student and one examiner

Nobody can rehearse a viva by listening to another student answer. So these classes are personalised one to one only, at the days and timing you choose, and they start from your own report file. Try a priority demo before you enrol: the fee is adjusted against the first month if you go ahead. A free demo class is there as well. Billing is monthly, there is no admission fee, and you can stop at any month end.

Before you enrol · Try a class

### Priority demo, at a slot you pick

a full live class of about 45 to 60 minutes

- A teacher opens your file or project and asks you about it, as an examiner would
- You hear which answers stand and which ones stall
- One weak program taken apart line by line and corrected
- A written skill report afterwards, with what to rehearse first

[Book a priority demo](/book-demo)

The classes · Choose your own timing

### Personalised one to one

₹4,999

per month, 4 private classes, fully flexible timing

- Your own programs, tables and project are the material
- Spoken answers, follow-ups and live edits in the class
- SQL and connectivity gaps closed before the practical date
- Theory for the 70-mark paper in the same plan

Ask for a personalised plan

If your school has already fixed the practical date, tell us when you call, and the plan is built backwards from it. If the report file is not complete yet, you write the missing programs yourself in the first classes with the teacher checking each one, since a viva on a half-done file goes badly however well you speak. Fees are shown in your own currency.

Studying outside India?

## CS 083 viva practice for CBSE students outside India

A CBSE school in Muscat, Riyadh or Singapore uses the same 083 syllabus, the same 30-mark practical and the same 3 marks for the viva. Classes are held after your school day, in your own time.

| Where you live | Time difference | Usual class window, local time | Format |
| --- | --- | --- | --- |
| India every Indian city | Indian time | Any time you choose | Personalised 1-on-1 |
| UAE and Oman Dubai, Abu Dhabi, Sharjah, Muscat | 1 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Saudi Arabia, Qatar, Kuwait, Bahrain Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama | 2 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Nepal Kathmandu | 15 min ahead of India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Ethiopia and East Africa Addis Ababa and East Africa Time | 2 h 30 min behind India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Singapore and Malaysia Singapore, Kuala Lumpur | 2 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 1-on-1 |

Screen sharing is all a viva rehearsal needs: your editor, your file and your voice. Practical dates differ between schools abroad too, so send us yours and we plan from it.

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 Computer Science series, grouped by what you need.

### Practicals, project and viva

- [Class 12 CS project with source code](/cbse-class-12-computer-science-project-python-mysql)
- [Class 12 CS project topics](/cbse-class-12-computer-science-project-topics)

### Exam, papers and marks

- [Class 12 CS sample paper practice](/cbse-class-12-computer-science-sample-paper-2026-27)
- [Class 12 CS exam date, pattern and marks](/cbse-class-12-computer-science-paper-pattern-and-marking-scheme)
- [Class 12 CS important questions](/cbse-class-12-computer-science-important-questions)

### Questions and practice

- [Class 12 CS MCQ test](/cbse-class-12-computer-science-mcq-test)
- [Class 12 CS output questions](/cbse-class-12-computer-science-output-questions)
- [Class 12 CS case study questions](/cbse-class-12-computer-science-case-study-questions)
- [Class 12 CS SQL questions](/cbse-class-12-computer-science-sql-queries)

### Chapter by chapter

- [Functions in Python Class 12](/cbse-class-12-computer-science-functions)
- [Exception handling Class 12](/cbse-class-12-computer-science-exception-handling)
- [Text file handling Class 12](/cbse-class-12-computer-science-file-handling)
- [CSV and binary files Class 12](/cbse-class-12-computer-science-csv-and-binary-files)
- [Stack Class 12 Computer Science](/cbse-class-12-computer-science-stack)
- [Computer networks Class 12](/cbse-class-12-computer-science-computer-networks)
- [Python MySQL connectivity Class 12](/cbse-class-12-computer-science-python-mysql-connectivity)

### Notes, revision and help

- [Class 12 CS syllabus 2026-27](/cbse-class-12-computer-science-syllabus-2026-27)
- [Class 12 CS notes](/cbse-class-12-computer-science-notes)
- [Class 12 CS revision plan](/cbse-class-12-computer-science-revision-plan)
- [Class 12 CS crash course](/cbse-class-12-computer-science-crash-course)

**CBSE Class 12 Informatics Practices (065):** [Class 12 IP practical file](/cbse-class-12-informatics-practices-practical-file)  [Class 12 IP project with source code](/cbse-class-12-informatics-practices-project)  [Class 12 IP sample paper practice](/cbse-class-12-informatics-practices-sample-paper-2026-27)  [Class 12 IP important questions](/cbse-class-12-informatics-practices-important-questions)

**CBSE Class 12 Information Technology (802):** [IT 802 practical and project file](/cbse-class-12-it-802-practical-and-project-file)  [IT 802 Java notes and programs](/cbse-class-12-it-802-java-programs)  [IT 802 notes](/cbse-class-12-it-802-notes)

**CBSE Class 11 CS, IP and AI:** [Class 11 CS practical file](/cbse-class-11-computer-science-practical-file)  [Class 11 IP practical file](/cbse-class-11-informatics-practices-practical-file)  [CS or IP in Class 11](/computer-science-or-informatics-practices-class-11)

**ISC Computer Science (868):** [ISC Class 12 CS syllabus 2027](/isc-class-12-computer-science-syllabus-2027)  [ISC Class 12 CS practice paper](/isc-class-12-computer-science-specimen-paper-practice)  [ISC Class 12 practical questions solved](/isc-class-12-computer-science-practical-questions)  [ISC Boolean algebra and K-maps](/isc-class-12-computer-science-boolean-algebra)

**Program lists with output:** [Class 12 CS practical file](/blog/python-practical-file-class-12)  [20 Python programs for Class 12](/blog/python-programs-for-cbse-class-12)  [Menu-driven programs in Python](/blog/how-to-build-menu-driven-program-in-python)

Questions about the CS viva

## What students and parents ask about the Class 12 CS practical viva

### How many marks is the viva in Class 12 Computer Science?

The viva voce is 3 marks in the CBSE 083 syllabus for 2026-27. The practical is 30 marks in all: lab test 12, report file 7, project 8 and viva 3. Informatics Practices (065) is different, with 5 marks for the viva.

### What questions are asked in the CBSE Class 12 computer science practical viva?

CBSE does not publish a list. Expect questions on the programs in your report file, the purpose and tables of your project, file modes, pickle and CSV, functions and scope, exceptions, the stack, SQL clauses and joins, and the connectivity functions. This page has 60 of those kinds with short spoken answers.

### How many viva questions will I be asked?

There is no fixed number in the syllabus. For 3 marks the conversation is short, and it often grows out of one answer: a question, the reason behind your reply, then a "what if". Prepare to go three levels deep on your own programs.

### When is the Class 12 computer science practical and viva in 2027?

For schools on the regular session, CBSE schedules practical, project and internal assessment from 1 January 2027. Winter-bound schools have 9 November to 19 December 2026. Each school sets its own day, so confirm yours with your teacher.

### What are the viva questions on the project in Class 12 computer science?

Why you chose the problem, who uses it, which part you wrote, why you used files or a database, what each table and key does, what happens on wrong input, how you tested it, and where any outside code came from. Questions 5 to 11 on this page are the project set, with sample answers.

### Which SQL viva questions are important for Class 12?

Be ready for primary, candidate, alternate and foreign keys, degree and cardinality, NULL with IS NULL, COUNT(*) against COUNT(column), WHERE against HAVING, the size of a Cartesian product, equi-join against natural join, and DELETE, DROP and ALTER.

### Are file handling questions asked in the Class 12 CS viva?

Very likely, because text, binary and CSV programs usually fill much of the report file. Prepare for what goes wrong: a second read that returns nothing, w+ erasing a file, EOFError, and CSV values arriving as strings.

### Are recursion, queues or linked lists asked in the viva?

They are not in the Class 12 CS syllabus for 2026-27. The only data structure listed is the stack, built with a list. SQL subqueries, views and triggers are not listed either. If your project uses something extra, be ready to explain it.

### What should I say if I do not know a viva answer?

Say so briefly, then offer the nearest thing you do know: "I have not used natural join in my file, but it joins on the column both tables share." A confident wrong guess tends to draw more questions on the same point.

### Do you help with viva preparation one to one?

Yes. Classes are live and personalised one to one at your own days and timing, and the teacher questions you on your actual file and project. Try a priority demo first: a full class of about 45 to 60 minutes with a written skill report, its fee adjusted against the first month if you enrol. There is a free demo class too.

Start

## Bring your file. We will ask the questions.

In the free demo class, share one program from your report file and the teacher asks what, why and what if, the way a viva would. You hear which answers held up and which need work.

For a full class at a slot you pick, book a **priority demo**: the questions cover your file and your project, one weak program is corrected with you, and a written skill report follows. If you enrol, its fee is adjusted against the first month.

Want more programs to practise explaining? Start with [20 Python programs for CBSE Class 12](/blog/python-programs-for-cbse-class-12).

[WhatsApp us](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders.%20I%20want%20one%20to%20one%20viva%20and%20practical%20preparation%20for%20CBSE%20Class%2012%20Computer%20Science%20083.) · [+91 91233 66161](tel:+919123366161) · [connect@modernagecoders.com](mailto:connect@modernagecoders.com)

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

### 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](/book-demo)

## Keep exploring Modern Age Coders

### By class and age

- [Class 12 IP Computer Networks Notes: Unit 3 for 2026-27](/cbse-class-12-informatics-practices-computer-networks)
- [Class 12 IP Crash Course 2027: Live One to One Classes](/cbse-class-12-informatics-practices-crash-course)
- [DataFrame Class 12 IP: Notes, loc and iloc, Programs](/cbse-class-12-informatics-practices-dataframe)
- [Class 12 IP Data Visualization: Line, Bar, Histogram](/cbse-class-12-informatics-practices-matplotlib-charts)
- [Class 12 IP MCQ with Answers 2026-27: a 40-Question Test](/cbse-class-12-informatics-practices-mcq-test)
- [Pandas Series Class 12 IP: Notes, Outputs and Questions](/cbse-class-12-informatics-practices-pandas-series)
- [ISC Class 12 Computer Science Important Questions, Pattern](/isc-class-12-computer-science-paper-pattern-and-important-questions)
- [Class 12 IT 802 Syllabus 2026-27: Units, Marks and Dates](/cbse-class-12-it-802-syllabus-2026-27)
- [Class 12 IT 802 Sample Paper with Solutions, 2026-27](/cbse-class-12-it-802-sample-paper)

### Learn more

- [Informatics Practices (IP) Class 11-12: CBSE Python & SQL](/courses/cbse-informatics-practices-ip-class-11-12-python-pandas-sql-complete-course)
- [IB DP Computer Science (New Guide, First Assessment 2027)](/courses/ib-diploma-computer-science-course)
- [Coding and AI Classes in Winnipeg](/coding-and-ai-classes-in-winnipeg)
- [Computer Science Personal Statement Projects for UCAS 2027](/computer-science-personal-statement-projects-uk)

### Free resources

- [Python Tutorial for Beginners: Complete Guide](/resources/python)
- [Lambda, Map, Filter, and Reduce](/resources/python/lambda-map-filter-reduce)
- [Functions - Regular, Arrow, and Callback | JavaScript Tutorial](/resources/javascript/functions-in-javascript)
- [Pattern Printing in Python](/resources/python/pattern-printing)

### From the blog

- [Python Programs for Class 11 CBSE (CS and IP) With Output](/blog/python-programs-for-class-11)
- [The IB Computer Science IA No Longer Needs a Client](/blog/ib-computer-science-ia-client-rule-2027)
- [File Organization in Python: A Beginner's Guide to Managing Your](/blog/file-organization-in-python)

### Start here

- [About Modern Age Coders, teaching since 2020](/about)
- [Modern Age Coders pricing, one honest price per plan](/pricing)

---

*Canonical: https://learn.modernagecoders.com/cbse-class-12-computer-science-viva-questions*
