★★★★★
"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
CBSE Class 12 · Computer Science, code 083 · Situation-based questions
A case question hides a familiar task inside a story. These class 12 computer science case study questions cover the three kinds the 083 paper uses: a campus to be networked, a file or stack to be handled in Python, and tables to be queried. Every layout is drawn, every program was run, and each answer says why, because the reason is where the mark usually is.
Live one to one · 11 cases and 8 short decisions · invented data, checked results · you fix day and hour
Start here
Cases mix chapters, so the weak chapter decides the course. The first one carries the whole 083 syllabus.

083 / Complete
Files, stack, networks, SQL and connectivity for the CBSE track, so each part of a case has been studied before it is mixed.
Open the course →
For Q33 and Q36
When the story is clear but the function will not come: Python from basics to programs you plan yourself.
Open the course →
For Q34 and Q35
One table, two tables, joins, then a Python program that talks to them, at a slower pace than the board class.
Open the course →Ans. The short version
Class 12 computer science case study questions in CBSE 083 give a situation and ask for decisions: a five-mark network layout, Python functions on CSV or binary files, and SQL on one or two tables. In the 2026-27 sample paper, Questions 33 to 37 work this way and carry 22 of the 70 marks. For the network case, choose the server block by number of computers, draw the cables, then place switches and repeaters with a reason each. Modern Age Coders practises these live, personalised one to one, at your own timing. Try a priority demo before you enrol.
Q1. What is a case question, and how is it answered?
Underline the facts, match each part to one idea from the syllabus, answer in the order of the parts, and add a reason to every choice.
The 083 sample paper never prints the words "case study". It simply begins some questions with a person and a problem: an agency with rentals, a college with enrolments, a university with blocks. In 2026-27 these are Questions 33 to 37. Schools and guide books call them case-based or competency-based questions, and so do we.
| Question | The story holds | You write | Marks |
|---|---|---|---|
| 33 | A business with a CSV file | Two functions | 4 |
| 34 | Two related tables | Four queries | 4 |
| 35 | A database, a table, a login | One Python-MySQL program | 4 |
| 36 | Records for a binary file | Two functions | 5 |
| 37 | Blocks, distances, computers | Five short answers and a drawing | 5 |
The scheme gives one mark to each of the five parts of Question 37, so a short part is worth as much as the drawing.
They tell you which numbers in the story matter.
File name, column order, "more than", "append", "guided".
Write CSV, star, join or stack in the margin of each part.
Choice first in one line, reason in the next.
Same names, same spelling, nothing the story did not ask for.
| When the part says | Look at | Answer | The reason to write |
|---|---|---|---|
| House the server | Computers in each block | Block with the most; on a tie, the one with less cable | Most traffic stays inside that block |
| Each block directly, or central management | The server block | Star | Every block has its own cable to the centre |
| Least or economical cable | All distances, shortest first | Join blocks until all are connected, no loops | Total length is the smallest |
| Repeater | Only the cables you drew | On those longer than 100 m | The signal weakens beyond that |
| Switch | The number of computers | In each block | Joins the computers of the block |
| Guided and fast | The word guided | Fiber-optic cable | Highest speed among cables |
| Hills between | Line of sight | Radio waves; microwaves if the view is clear | Microwaves need a straight path |
| Connect to the internet | The edge of the LAN | Router | It joins different networks |
The definitions behind these rows are in our computer networks notes.
Q2. Can you network a campus?
Each is worth five marks, one for each part. Copy the site sketch, draw your cables, and only then open the answer.
Kaveri Looms in Erode is joining the four blocks of its mill. The sketch, not to scale, shows where they stand; distances are between centres.
| Blocks | Distance |
|---|---|
| Weaving to Dyeing | 65 m |
| Weaving to Design | 80 m |
| Weaving to Stores | 150 m |
| Dyeing to Design | 55 m |
| Dyeing to Stores | 95 m |
| Design to Stores | 110 m |
| Block | Computers |
|---|---|
| Design | 70 |
| Weaving | 40 |
| Stores | 25 |
| Dyeing | 15 |
(I) Where should the server be housed? Justify. (II) Draw a cable layout in which every block reaches the server directly. (III) Place (a) a switch (b) a repeater. (IV) The mill wants a fast guided link to its showroom in Chennai. Which medium? (V) Which protocol moves large pattern files from Weaving to the server?
Falak Studios has four rooms on one lot. Money is short, and the owner asks for the layout that uses the least cable.
| Rooms | Distance |
|---|---|
| Edit to Sound | 45 m |
| Edit to Costume | 120 m |
| Edit to Accounts | 90 m |
| Sound to Costume | 85 m |
| Sound to Accounts | 60 m |
| Costume to Accounts | 50 m |
| Room | Computers |
|---|---|
| Edit | 60 |
| Sound | 35 |
| Accounts | 20 |
| Costume | 10 |
(I) Suggest the room for the server. (II) Draw the layout with the shortest total cable and state its length. (III) Does your layout need a repeater? Give the reason. (IV) An outdoor set stands on a hilltop 6 km away, in clear view, with no road to it. Suggest a wireless medium of high capacity. (V) A technician in Mumbai has to log in to the server and run commands on it. Name the protocol.
A public library has computers on three floors: Reading 30, Catalogue 18, Archive 12. The floors are one above another, about 8 m apart. Each floor must keep working if another floor has a fault.
| Floor | Section | Computers | Also there |
|---|---|---|---|
| Ground | Reading | 30 | Public printer |
| First | Catalogue | 18 | Barcode scanners on Bluetooth |
| Second | Archive | 12 | Scanning table |
(I) Which type of network will join the three floors? (II) Suggest a topology and draw it. (III) Name the device on each floor, and the device that joins the library to the internet. (IV) A scanner talks to one librarian's laptop by Bluetooth. Which type of network is that? (V) Readers will log in to a web catalogue with a password. HTTP or HTTPS? Why?
A residential school has three blocks, and a sister school 40 km away behind a range of hills.
| Blocks | Distance |
|---|---|
| School to Hostel | 90 m |
| School to Office | 40 m |
| Hostel to Office | 120 m |
| Block | Computers |
|---|---|
| School | 50 |
| Hostel | 50 |
| Office | 12 |
(I) Where should the server go? (II) Draw the layout and give the total cable. (III) Is a repeater needed? (IV) Which wireless medium can reach the sister school? (V) Staff use a mail program that brings letters down from the mail server. Name the protocol.
Four answers that lose the mark. "Server in Design" with no reason. A repeater on a pair of blocks that your own drawing does not join. A hub and a switch both, to be safe. "Wire" when the question asks which cable.
Q3. Can you write the functions?
In a Python case the story gives the file name, the order of the fields and one condition. Write those three down before you write def.
Farhan, a ward officer, keeps complaints in Lights.csv. There is no heading row. Each row is Pole, Ward, Days, where Days is how long the light has been out. Write (I) add_complaint() to accept one complaint and append it; (II) overdue(limit) to display the pole and ward of every light out for more than the limit, and return how many there are.
import csv
def add_complaint():
pole = input("Pole: ")
ward = input("Ward: ")
days = input("Days: ")
with open("Lights.csv", "a", newline="") as f:
w = csv.writer(f)
w.writerow([pole, ward, days])
def overdue(limit):
count = 0
with open("Lights.csv", "r", newline="") as f:
for row in csv.reader(f):
if int(row[2]) > limit: # text to number
print(row[0], row[1])
count += 1
return countprint(overdue(7)) displayed P14 Lake, P31 Lake and 2. The condition hides in "more than": with >= a light out for exactly 7 days would be counted.A railway cloakroom stores each deposit in Cloak.dat as a list [token, name, bags, hours], one dump each. Write (I) deposit() to accept a record and append it; (II) extend(token, more) to add more hours to that token and save the file, or display No such token.
import pickle
def deposit():
token = int(input("Token: "))
name = input("Name: ")
bags = int(input("Bags: "))
hours = int(input("Hours: "))
with open("Cloak.dat", "ab") as f:
pickle.dump([token, name, bags, hours], f)
def extend(token, more):
records = []
found = False
try:
with open("Cloak.dat", "rb") as f:
while True:
rec = pickle.load(f)
if rec[0] == token:
rec[3] += more
found = True
records.append(rec)
except EOFError:
pass
with open("Cloak.dat", "wb") as f:
for rec in records:
pickle.dump(rec, f)
if not found:
print("No such token")extend(8, 3) changed the second to [8, 'Ravi', 1, 9] and extend(9, 1) displayed No such token. Everyone else's record has to be written back too, which is why the append to the list is outside the if.The lift in an office writes one line per event in Lift.txt: time, floor and event, separated by spaces, such as 07:45 4 STUCK. Write a function that displays the time and floor of each STUCK event and returns the number of such events.
def stuck():
count = 0
with open("Lift.txt", "r") as f:
for line in f:
time, floor, event = line.split()
if event == "STUCK":
print(time, "floor", floor)
count += 1
return count
print("Times stuck:", stuck())split() also removes the newline, so no strip is needed.Bags arrive as a list of tuples, code and weight: Bags = [("AX", 18), ("BT", 27), ("CQ", 9), ("DM", 24)]. A porter loads only bags above 20 kg on the stack Heavy, and unloads from the top. Write load_bags() and unload_bags(); the second shows each bag and then Trolley empty.
Bags = [("AX", 18), ("BT", 27), ("CQ", 9), ("DM", 24)]
Heavy = []
def load_bags():
for bag in Bags:
if bag[1] > 20:
Heavy.append(bag)
def unload_bags():
while Heavy != []:
print(Heavy.pop())
print("Trolley empty")
load_bags()
unload_bags()('DM', 24)
('BT', 27)
Trolley empty| The case says | You type |
|---|---|
| "keeps adding", "append" | "a" or "ab" |
| "display all those who" | a loop with an if inside |
| "count", "how many" | a counter set to 0 before the loop |
| "update", "change" | read all into a list, then write all |
| "as a list / dictionary" | rec[2] or rec["bags"], as told |
| "return" | return, not print |
More programs of this size: CSV and binary files, text files and the stack.
Q4. Can you question the tables?
A database case is one story with one or two tables and four small tasks. Every result below came from a MySQL server, major version 26.
A company keeps its boats in the table FERRY.
+-----+----------------+-------+------+------------+ | Fno | Route | Seats | Fare | Started | +-----+----------------+-------+------+------------+ | F01 | Jetty Island | 120 | 40 | 2019-06-10 | | F02 | Jetty Fort | 90 | 25 | 2021-01-04 | | F03 | Harbour Island | 150 | 55 | 2018-11-21 | | F04 | Harbour Fort | 60 | NULL | 2024-02-15 | | F05 | Jetty Island | 80 | 40 | 2023-08-01 | +-----+----------------+-------+------+------------+
A. Write queries to: (I) show each route and its number of boats, for routes with more than 100 seats in all; (II) show the number and route of boats whose fare is not fixed; (III) show number and seats of boats on Harbour routes, largest first; (IV) show the boats with 80 to 120 seats whose route does not end in Fort. OR B. Predict the output of: (I) SELECT DISTINCT Fare FROM FERRY WHERE Started > '2020-12-31'; (II) SELECT MAX(Seats), MIN(Fare) FROM FERRY; (III) SELECT COUNT(Fare), COUNT(*) FROM FERRY; (IV) SELECT Route, AVG(Seats) FROM FERRY WHERE Fare IN (25, 40) GROUP BY Route;
SELECT Route, COUNT(*) FROM FERRY GROUP BY Route HAVING SUM(Seats) > 100; SELECT Fno, Route FROM FERRY WHERE Fare IS NULL; SELECT Fno, Seats FROM FERRY WHERE Route LIKE 'Harbour%' ORDER BY Seats DESC; SELECT Fno FROM FERRY WHERE Seats BETWEEN 80 AND 120 AND Route NOT LIKE '%Fort';
+-----+--------+---------+----------+ | Tid | Tname | Village | Capacity | +-----+--------+---------+----------+ | 1 | Neelam | Rampur | 180 | | 2 | Varsha | Belgaon | 100 | | 3 | Kamal | Devpur | 90 | +-----+--------+---------+----------+
+-----+------+------------+-------+ | Rid | Tid | RDate | Level | +-----+------+------------+-------+ | 501 | 1 | 2026-07-02 | 142 | | 502 | 2 | 2026-07-02 | 77 | | 503 | 1 | 2026-08-05 | 171 | | 504 | 3 | 2026-08-06 | 90 | | 505 | 2 | 2026-08-09 | 95 | +-----+------+------------+-------+
Write queries to: (I) correct the level in reading 502 to 79; (II) show all readings after 31 July 2026; (III) show name, village and level wherever a tank was exactly full; (IV) show each tank's name with its highest level. How many rows would the Cartesian product of the tables have?
UPDATE READING SET Level = 79 WHERE Rid = 502; SELECT * FROM READING WHERE RDate > '2026-07-31'; SELECT Tname, Village, Level FROM TANK NATURAL JOIN READING WHERE Level = Capacity; SELECT Tname, MAX(Level) FROM TANK, READING WHERE TANK.Tid = READING.Tid GROUP BY Tname;
The tables are in the database WaterDB on localhost, user tankman. Write a function that takes the four values of a reading, inserts them, shows how many rows were saved, and then shows the total of all levels of that tank.
import mysql.connector
def add_reading(rid, tid, rdate, level):
con = mysql.connector.connect(host="localhost", user="tankman",
password="your_password",
database="WaterDB")
cur = con.cursor()
query = "INSERT INTO READING VALUES (%s, %s, %s, %s)"
cur.execute(query, (rid, tid, rdate, level))
con.commit()
print(cur.rowcount, "reading saved")
cur.execute("SELECT Level FROM READING WHERE Tid = %s", (tid,))
total = 0
for row in cur.fetchall():
total += row[0]
print("Total of levels for tank", tid, "is", total)
con.close()
add_reading(506, 3, "2026-08-20", 84)commit(), and the comma in (tid,), without which the value is not a tuple.For the full set of query types go to Class 12 SQL queries, and for the link to Python, Python MySQL connectivity.
Q5. Can you choose and defend?
A competency based question asks you to use an idea in a new setting, not to repeat its definition. Here are eight, each answerable in three lines.
You say which sentence of the case each line of your answer uses. A line with no sentence behind it is usually wrong.
Now the Stores block has 90 computers. Now the file has a heading. Which parts of the answer survive?
Make up a story for a program you know. After that, the story in an exam looks thinner.
Then take it under time: Section D and E of the 2026-27 practice paper.
Case practice, personalised
Students rarely miss a case for want of knowledge; they answer a question that was not asked. One teacher sitting with one student can see exactly where the reading went wrong, and that is the only way we teach it. Days and hour are for you to name. A priority demo shows the method on a case new to you, with its fee taken off the first month if you enrol; a free demo class is the other way in. Fees are monthly, there is no admission fee, and you can finish at any month end.
Before you enrol · Try a class
a full live class of about 45 to 60 minutes
The classes · Choose your own timing
₹4,999
per month, 4 private classes, fully flexible timingtwo private classes a week, at a time set with you
Students who come after their pre-boards often bring Questions 33 to 37 of the school paper, and we start there. What you pay each month is given above in your local currency.
Studying outside India?
From Fujairah to Kuala Lumpur, a CBSE student opens Section E to the same kind of campus plan. Give us your free hours and we match one.
| 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 |
A layout can be drawn on paper and shown to the camera, or on the shared screen. Either way you draw it, and the teacher asks why the cable goes there.
What families say
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
Every page in the CBSE Class 12 Computer Science series, grouped by what you need.
CBSE Class 12 Informatics Practices (065): Class 12 IP practical file Class 12 IP project with source code Class 12 IP sample paper practice Class 12 IP important questions
CBSE Class 12 Information Technology (802): IT 802 practical and project file IT 802 Java notes and programs IT 802 notes
CBSE Class 11 CS, IP and AI: Class 11 CS practical file Class 11 IP practical file CS or IP in Class 11
ISC Computer Science (868): ISC Class 12 CS syllabus 2027 ISC Class 12 CS practice paper ISC Class 12 practical questions solved ISC Boolean algebra and K-maps
Program lists with output: Class 12 CS practical file 20 Python programs for Class 12 Menu-driven programs in Python
Case study doubts
Yes in substance, though the 083 sample paper does not use that name. In the 2026-27 paper, Questions 33 to 37 each describe a situation and ask for functions, queries, a connectivity program or a network layout. Together they carry 22 of the 70 theory marks.
Put the server in the block with the most computers, draw a star from it unless the least cable is asked for, place a switch in every block and a repeater on any cable over 100 metres, then answer the medium and protocol parts. Give one reason for each choice.
In the block with the largest number of computers, because most of the traffic then stays inside that block. If two blocks tie, choose the one that needs less cable to reach the others, and write that as your reason.
A repeater goes on a cable in your own layout that is longer than about 100 metres, since the signal weakens. A switch goes in every block to connect its computers. Do not place a repeater between two blocks that your drawing does not join.
It depends on what is asked. A star from the server block suits central management and gives each block its own cable. If the question wants the least cable, join the blocks by the shortest distances without forming a loop. Say which aim you followed.
CSV files and binary files appear most clearly: in the 2026-27 sample paper they are Questions 33 and 36, worth four and five marks. The stack question and text file questions also come with small stories, at three marks each.
They are questions that test whether you can apply an idea to a situation, for example choosing a file type for a clinic or finding why a query fails. They can appear at any mark value. Practise by explaining your choice, not only by naming it.
A fair guide is two to two and a half minutes for each mark, since the paper gives 180 minutes for 70 marks. So a five-mark layout deserves about 12 minutes, including the drawing, and a four-mark program about 10.
It has to be readable: labelled boxes for the blocks, a line for each cable and, if you can, the distance on it. Use a pencil and a ruler, mark the server block, and draw only the cables you mean. No artistic marks are involved.
Yes. Classes are one to one, so a lesson can be only cases, or only the network layout, at the time you pick. Bring your school paper or use ours. A priority demo lets you try one whole class before enrolling.
Start
Photograph the question and your answer and send them along when you book. In a priority demo the teacher reads the case with you, finds the sentence that was missed, and gives you a fresh one of the same kind. You get a written skill report, and the demo fee is set against month one if you continue.
Not ready for that? Ask for the free demo class, or test yourself first on the forty-question MCQ test.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Every class is live video. The form requests a callback and reserves nothing.
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