★★★★★
"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 · Notes for 2026-27
These class 12 computer science notes hold the whole 083 syllabus in 17 cards. Each card has the rule, one small piece of code, the slip to avoid and three memory checks. A single honey farm runs through them all, so that the function in card 2 and the query in card 16 talk about the same hives.
Live one to one · 17 cards, 51 memory checks · every snippet run · lessons when your day allows
Start here
A note reminds; it does not teach what was never learnt. These courses do, from the start of each subject.

All 17 cards / 083
Each card here is several lessons there: the CBSE track with Python, files, stack, networks, SQL and the practical.
Open the course →
Cards 1 to 9
If card 1 already looks strange, begin here. The Python is built slowly, through programs of your own.
Open the course →
Cards 13 to 17
Enough typing of queries that grouping and joins stop being rules to recall. It carries on past the board.
Open the course →Ans. The short version
Class 12 computer science notes for CBSE 083 need to cover three units in 2026-27: Computational Thinking and Programming 2 (40 marks: functions, exceptions, text, binary and CSV files, stack), Computer Networks (10) and Database Management (20: relational terms, SQL, Python with MySQL). This page puts them in 17 short cards, each with the rule, a tested snippet and three memory checks, and links to a full page per chapter. Modern Age Coders turns notes into written answers in live, personalised one to one classes at your timing. A priority demo shows you how before you enrol.
Q1. What is here, and how do I use it?
Read one card, cover it, say the three memory checks aloud, and write its code once without looking. That takes about ten minutes a card.
| Unit | Cards | Marks |
|---|---|---|
| 1. Computational Thinking and Programming 2 | 1 Python, 2 functions, 3 scope, 4 exceptions, 5 file basics, 6 text, 7 binary, 8 CSV, 9 stack | 40 |
| 2. Computer Networks | 10 terms and media, 11 devices and shapes, 12 protocols and web | 10 |
| 3. Database Management | 13 relations and keys, 14 DDL, 15 rows and SELECT, 16 groups and joins, 17 connectivity | 20 |
Marks by card are not published; only the unit totals are. The official list of topics is on the 083 syllabus page.
A family keeps bees. It has hives in two places, notes the honey taken, and sells it in jars. You will meet this farm as a list, a text file, a binary file, a CSV file, a stack and finally two tables.
Copying these cards into a notebook is fine. Copying them twice is not revision; the second time, write them from memory and compare.
Unit 1. Cards 1 to 4
The first part of Unit 1 is the Class 11 language revised, then functions, scope and handling of errors.
Rule. Strings and tuples cannot change; lists and dictionaries can. Slices stop one before the end. ** is worked from the right, then * / // %, then + -, then comparisons, then not, and, or.
hives = ["Orchard", "Canal", "Orchard"] # list
first = ("H1", 12.5) # tuple
kg = {"Orchard": 21, "Canal": 13.5} # dictionary
print(hives.count("Orchard"), hives[::-1])
print(first[0].lower() + "!", "Hill" in kg)2 ['Orchard', 'Canal', 'Orchard'] h1! False
Slip. L.sort() returns None; sorted(L) returns a list. in on a dictionary looks at keys.
randint(1, 3) can give 3; randrange(1, 3) cannot.In full: output questions
Rule. Three kinds: built-in, defined in a module, user defined. Parameters are in the header, arguments in the call. Defaults are written last. return ends the function and may send back several values as a tuple.
def jars(honey, size=0.5):
"""Number of full jars from honey in kg."""
return int(honey / size)
print(jars(6))
print(jars(6, 0.75))12 8
Slip. A function that prints gives None to the caller. If the question says return, return.
In full: functions
Module functions from Class 11. math: sqrt, ceil, floor, pow, fabs, sin, cos, tan, pi, e. random: random (from 0 up to but not 1), randint, randrange. statistics: mean, median, mode. Import the module first, then write its name and a dot: math.ceil(4.1) is 5.
Rule. A name assigned inside a function is local to it. A name made outside is global: it can be read anywhere, but to assign it inside a function you need global.
total = 0
def add(kg):
global total
total = total + kg
add(4)
add(2.5)
print(total)6.5
Slip. Without the global line this stops with UnboundLocalError. A list parameter is different: append() changes the caller's list, because nothing is assigned.
In full: scope traces
Rule. Risky lines go in try. A matching except runs if they fail. finally runs either way.
def per_hive(kg, hives):
try:
print(kg / hives, "kg each")
except ZeroDivisionError:
print("No hives yet")
finally:
print("Checked")
per_hive(21, 2)
per_hive(21, 0)10.5 kg each Checked No hives yet Checked
Slip. The lines of try after the failing one are skipped, not returned to.
| Fails on | Name |
|---|---|
int("ten") | ValueError |
"2" + 2 | TypeError |
| a name never made | NameError |
| index past the end | IndexError |
| missing dictionary key | KeyError |
| file not there | FileNotFoundError |
In full: exception handling
Unit 1. Cards 5 to 9
The second part of Unit 1 is storing data. Three kinds of file differ in what they hold and which function reads them.
Rule. A relative path starts from the current folder, an absolute path from the drive or root. with open(...) closes the file for you.
| Text | Binary | CSV | |
|---|---|---|---|
| Holds | characters in lines | bytes of Python objects | rows of fields, as text |
| Module | none | pickle | csv |
| Write | write, writelines | dump | writerow, writerows |
| Read | read, readline, readlines | load | reader |
| End shown by | empty string | EOFError | end of the loop |
| Mode | File missing | Old data | Starts at |
|---|---|---|---|
r, r+ | error | kept | beginning |
w, w+ | created | erased | beginning |
a, a+ | created | kept | end |
Slip. Add b for binary: rb, wb+. Open CSV for writing with newline="".
Rule. read() gives one string, readline() one line, readlines() a list. tell() reports the pointer, seek() moves it.
with open("bees.txt", "w") as f:
f.write("12 Orchard\n")
f.writelines(["6 Canal\n", "9 Orchard\n"])
total = 0
with open("bees.txt", "r") as f:
for line in f:
kg, place = line.split()
if place == "Orchard":
total += int(kg)
print(total)21
Slip. Every line keeps its newline until you strip or split it.
read().split() for words, a loop over read() for characters. 3. An empty string, unless seek(0) is called.In full: text file handling
Rule. One dump, one load. Read in an endless loop until EOFError. To update, read all into a list, change it, write all back.
import pickle
with open("hives.dat", "ab") as f:
for rec in [[1, "Orchard", 21], [2, "Canal", 13.5]]:
pickle.dump(rec, f)
try:
with open("hives.dat", "rb") as f:
while True:
rec = pickle.load(f)
if rec[2] > 15:
print(rec[1])
except EOFError:
print("End")Orchard End
Slip. Run it twice and Orchard prints twice, since ab keeps adding.
dump(object, file). 2. A flag set False before the loop; the message after it. 3. rb to read all, then wb to rewrite.In full: binary and CSV programs
Rule. writerow() takes one list, writerows() a list of lists. reader() gives lists of strings.
import csv
with open("honey.csv", "w", newline="") as f:
w = csv.writer(f)
w.writerow(["Place", "Kg"])
w.writerows([["Orchard", 21], ["Canal", 13.5]])
with open("honey.csv", "r", newline="") as f:
r = csv.reader(f)
next(r) # past the headings
total = 0
for row in r:
total += float(row[1])
print(total)34.5
Slip. Forget next(r) and float("Kg") raises ValueError.
Rule. Last in, first out. With a list, push is append(), pop is pop(), the top is index -1. Test for empty before popping.
Full = []
def push_full(stock):
for place in stock:
if stock[place] > 15:
Full.append(place)
def pop_full():
while Full:
print(Full.pop())
print("Underflow")
push_full({"Orchard": 21, "Canal": 13.5, "Hill": 18})
pop_full()Hill Orchard Underflow
Slip. Looping with for over a list you are popping from. Use while.
In full: the stack
Unit 2. Cards 10 to 12
Unit 2 is learnt as contrasts. Each row below sets a word beside the one it is easily mistaken for.
In order: ARPANET (1969), NSFNET (1986), INTERNET.
Five parts: sender, receiver, message, medium, protocol.
| Pair | Told apart by |
|---|---|
| Bandwidth, data rate | hertz, bits per second |
| Circuit, packet | reserved path, numbered pieces |
| IP, MAC | network place, card's own number |
| Twisted pair, co-axial | cheap, shielded |
| Fiber, the rest | light, so no electrical noise |
| Radio, microwave | all round, straight line |
| Infrared | one room only |
| Job | Device |
|---|---|
| Connect PCs, to all ports | Hub |
| Connect PCs, to one port | Switch |
| Join networks, pick a path | Router |
| Door of the network | Gateway |
| Strengthen past 100 m | Repeater |
| Digital to analog and back | Modem |
| Fit a PC: wire, air | Ethernet card, WiFi card |
| Plug | RJ45 |
By area: PAN, LAN, MAN, WAN. By shape: bus (one backbone), star (one centre), tree (stars on a backbone).
| Task | Protocol |
|---|---|
| Web page | HTTP |
| Web page, encrypted | HTTPS |
| Files | FTP |
| Mail out, mail in | SMTP, POP3 |
| Calls | VoIP |
| Remote login | TELNET |
| Direct link | PPP |
| Base of the internet | TCP/IP |
Web: HTML shows, XML describes. A URL contains a domain name. A browser asks, a web server answers, hosting keeps the site there.
Drawings, full forms and 26 questions: computer networks for Class 12. The five-mark campus question: case study questions.
Unit 3. Cards 13 to 17
Unit 3 is worth 20 marks: words about tables, commands on tables, and a Python program that sends those commands.
Rule. A relation is a table, a tuple a row, an attribute a column. Degree counts columns, cardinality counts rows. A domain is the set of values allowed in a column.
+-----+---------+------+------------+ | Hid | Place | Bees | SetUp | +-----+---------+------+------------+ | 1 | Orchard | 9000 | 2024-03-01 | | 2 | Canal | 7000 | 2025-06-15 | | 3 | Orchard | NULL | 2026-02-10 | +-----+---------+------+------------+ +-----+------+------+ | Hno | Hid | Kg | +-----+------+------+ | 21 | 1 | 12 | | 22 | 2 | 6 | | 23 | 1 | 9 | | 24 | 2 | 7.5 | +-----+------+------+
HIVE above has primary key Hid. HARVEST below has primary key Hno, and its Hid is a foreign key to HIVE. Candidate keys are all the possible identifiers; the ones not chosen are alternate keys.
Slip. Repeated values are normal in a foreign key.
CREATE DATABASE FARM;
USE FARM;
CREATE TABLE HIVE (
Hid INT PRIMARY KEY,
Place VARCHAR(15) NOT NULL,
Bees INT,
SetUp DATE
);
ALTER TABLE HARVEST ADD Grade CHAR(1);
ALTER TABLE HARVEST DROP COLUMN Grade;
ALTER TABLE HARVEST DROP PRIMARY KEY;
ALTER TABLE HARVEST ADD PRIMARY KEY (Hno);Also: SHOW DATABASES, SHOW TABLES, DESC HIVE, DROP TABLE, DROP DATABASE. Types: char(n) fixed, varchar(n) variable, int, float, date. Constraints: NOT NULL, UNIQUE, PRIMARY KEY.
Slip. ALTER changes columns, UPDATE changes values.
INSERT INTO HARVEST VALUES (25, 1, 4); UPDATE HIVE SET Bees = Bees + 500 WHERE Hid = 2; DELETE FROM HARVEST WHERE Kg < 5; SELECT DISTINCT Place FROM HIVE; SELECT Place, Bees FROM HIVE WHERE Bees IS NOT NULL ORDER BY Bees DESC; SELECT Hid FROM HIVE WHERE SetUp BETWEEN '2025-01-01' AND '2025-12-31'; SELECT Place, Bees / 1000 AS Thousands FROM HIVE WHERE Place LIKE 'C%';
BETWEEN includes both ends. IN checks a list. % is any run of characters, _ is exactly one. AS gives a column another name. Any sum with NULL is NULL.
Slip. Bees = NULL finds nothing. Forget WHERE in UPDATE or DELETE, and every row is hit.
In full: SQL queries
SELECT AVG(Bees), COUNT(Bees), COUNT(*) FROM HIVE; SELECT Hid, SUM(Kg) FROM HARVEST GROUP BY Hid HAVING SUM(Kg) > 15; SELECT Place, Kg FROM HIVE, HARVEST WHERE HIVE.Hid = HARVEST.Hid AND Kg > 8; SELECT Hid, Place, Kg FROM HIVE NATURAL JOIN HARVEST WHERE Place = 'Canal';
On the tables of card 13 these give: 8000.0000, 2 and 3; hive 1 with 21; Orchard 12 and Orchard 9; hive 2, Canal, 6 and 7.5.
WHERE picks rows, HAVING picks groups. With no condition, two tables give a Cartesian product: here 3 x 4 = 12 rows. A natural join matches the common column by itself and shows it once.
Slip. Writing Hid alone when both tables have it and there is no natural join.
In full: joins with results
import mysql.connector
con = mysql.connector.connect(host="localhost", user="root",
password="your_password",
database="FARM")
cur = con.cursor()
cur.execute("UPDATE HARVEST SET Kg = %s WHERE Hno = %s", (6.5, 22))
con.commit()
print(cur.rowcount, "row changed")
cur.execute("SELECT Hno, Kg FROM HARVEST WHERE Hid = %s", (2,))
for row in cur.fetchall():
print(row[0], row[1])
con.close()1 row changed 22 6.5 24 7.5
Rule. fetchone() gives one tuple or None, fetchall() a list of tuples. Commit after insert, update and delete, not after select.
Slip. (2) is a number; (2,) is a tuple.
In full: connectivity programs
Q2. The notes are read. Now what?
Test yourself the same day, because a note feels known the moment it is read. Recall first, then questions, then a paper.
| If you can | Then do | Where |
|---|---|---|
| Answer the checks but not write the code | Rewrite each card's code with another story | A blank page |
| Write code slowly | Two short programs a day, timed | Important questions |
| Write code, lose one-mark items | A 40-question set | MCQ test |
| Do all that | A full paper in three hours | Sample paper 2026-27 |
| Nothing yet, and time is short | Follow dates, not moods | Revision plan |
Recursion, queues, linked lists, ring and mesh topologies, subqueries, views and triggers. They are in some books and in college courses, but the 083 syllabus for 2026-27 does not list them.
You shut the page and explain the topic. The teacher asks one "what if", you write a short program, and the first wrong line becomes the lesson. The card stays short; your own page beside it fills up.
From notes to answers
You can read all 17 cards and still write w where a was needed, and no page will stop you. Our classes put one teacher beside one student, on the days and at the time you decide, with every line looked at. Have a whole lesson first through the priority demo: should you enrol, its fee is taken off month one. There is a free demo class too. Monthly billing, no admission fee, and the freedom to stop when any month ends.
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
Most students know about half the cards when they arrive, and not always the half they think. We find out which, then skip it. You will see the monthly fee in your own currency on this page.
Studying outside India?
Computer Science 083 does not change at the border: a student in Muscat, Kuwait or Kathmandu revises the same three units. Choose an afternoon, a late evening or a weekend for your class.
| 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 |
Students who changed schools in the middle of Class 11 often have a missing chapter. Tell us which book you used and where you stopped; that is enough to begin.
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
Questions about notes
This page has short notes on the complete CBSE 083 syllabus in 17 cards, free to read, with tested code and memory checks. Each card links to a longer page on that chapter. The official topic list is the CBSE curriculum document for Computer Science, which you should keep beside any notes.
Yes. Cards 1 to 9 follow Unit 1, from Python revision to the stack. Cards 10 to 12 follow Unit 2, computer networks. Cards 13 to 17 follow Unit 3, from relations and keys to Python with MySQL. The table near the top links to every card.
We do not offer a PDF. The page opens on a phone and can be printed from a browser if you like paper. Better still, copy each card by hand once and its code a second time from memory, since the copying is what makes it stay.
The syllabus is set out as three units, not chapters: Computational Thinking and Programming 2 with 40 marks, Computer Networks with 10 and Database Management with 20. Books divide these into different numbers of chapters, so compare topics and not chapter numbers.
They are enough to revise, not to learn from zero. Most of the paper asks you to write programs, queries and outputs, and that needs practice. Use notes to remind yourself of a rule, then write something that uses the rule on the same day.
By marks, programming with functions, files and stack is 40 of the 70, and databases are 20. In the 2026-27 sample paper, files, SQL and connectivity carry the long questions. Networks is small, but its ten marks can be secured in a few evenings.
Give each topic one side of paper: the rule in a sentence, the smallest code that shows it, its output, and the mistake you made last time. Leave a margin for three questions to yourself. If it runs to a second side, it has become a textbook again.
You can revise without one, but you still need the official syllabus, practice questions and a computer to run programs on. Your school follows a book for classwork and tests, so use it for exercises and these cards for recall.
Writing your own functions with parameters and scope, exception handling, text, binary and CSV files, and the stack implemented with a list. Class 11 topics such as strings, lists, tuples and dictionaries are revised, because they appear inside almost every question.
At about ten minutes a card, one reading of these 17 takes around three hours. Recalling and rewriting the code takes several times that. Spread it over two or three weeks, and return to the shaky cards on the next day and in the next week.
They are a starting point. In a one to one class the order, the depth and the examples are chosen for the student, and much of the time goes on programs the student writes. You choose the days and the timing, and a demo class comes before any decision.
Start
List the card numbers you could not recall, nothing more, and book a priority demo at a slot that suits you. It is a full live class of about 45 to 60 minutes on exactly those cards. A written skill report comes after it, and if you enrol the demo fee is set against your first month.
If you would like something lighter, ask for the free demo class. Practical soon? Read the viva questions next.
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