
The CBSE Class 12 Computer Science syllabus for the 2026-2027 academic session provides an advanced curriculum focusing on Python programming, database management using SQL, computer networks, and practical coding projects. Designed to develop logical thinking, computational problem-solving, and database querying skills, this subject offers senior secondary students a scoring elective that builds immediate readiness for undergraduate degrees in computer science, software engineering, and data analytics.
Students preparing for the 2027 board exams can review the paper pattern on the CBSE Class 12 Exam Pattern guide, check timetables on the CBSE Class 12 Date Sheet page, view recommended books on the CBSE Class 12 Books list, and practice official questions on the CBSE Class 12 Question Paper page.
The Computer Science theory paper consists of 40 marks of Python programming, 20 marks of Database Management (SQL), and 10 marks of Computer Networks. To secure full marks, practice tracing code snippets line by line using variable tracking tables to predict exact program outputs. In SQL, master GROUP BY with HAVING clauses, aggregate functions (COUNT, SUM, AVG), and multi-table equi-joins. Pay strict attention to Python indentation rules when writing code on paper.
The table below shows the official marks distribution across all three units in the Class 12 Computer Science syllabus.
| Unit Number & Title | Topics & Concepts Covered | Marks Allotted (Out of 70) | High-Yield Coding Areas |
|---|---|---|---|
| Unit 1: Computational Thinking & Programming - 2 | Python revision, functions, file handling (text, binary, CSV), data structures (stack using lists) | 40 Marks | File read/write methods, pickle module (dump/load), stack push and pop algorithms |
| Unit 2: Computer Networks | Evolution of networks, data transmission media, topologies, protocols, network security, case study design | 10 Marks | Server placement, topology selection (star vs bus), transmission media (fiber optic vs coaxial) |
| Unit 3: Database Management | Relational data model, SQL queries, DDL and DML commands, aggregate functions, Python-SQL connectivity | 20 Marks | SELECT queries with WHERE, GROUP BY, ORDER BY, table creation, connector cursor execution |
Unit 1 (Computational Thinking and Programming in Python) is the foundation of the paper, carrying 40 marks out of 70. File handling and data structures alone account for over 15 marks in this unit.
In file handling, questions test text files (read, readline, readlines), binary files using the pickle module (pickle.dump and pickle.load), and CSV files using the csv module (csv.reader and csv.writer). Writing clean file open and close syntax is essential.
Unit 3 (Database Management) carries 20 marks and is completely scoring. Most questions require writing single-line SQL commands or interpreting table outputs. Students who know SQL query syntax routinely score full 20 marks here.
Unit 2 (Computer Networks) carries 10 marks and features a predictable 4-mark case study question where a company connects multiple campus blocks. Practicing server placement based on maximum computer count ensures easy marks.
Computer Science questions require precise programming logic and exact query syntax:
When writing Python code by hand in your answer booklet, maintain neat indentation using 4 spaces or clear visual tabs. Because Python uses whitespace to define code blocks, messy indentation can lead examiners to mark logical flow incorrect.
In SQL queries, remember that column names in the SELECT clause must match the GROUP BY clause when using aggregate functions. For example, SELECT department, COUNT(*) FROM Employee GROUP BY department is valid, whereas including non-aggregated extra columns causes errors.
In Computer Networks, memorize standard port numbers and protocol purposes: HTTP (80), HTTPS (443), FTP (20/21), SMTP (25), and DNS (53). Understanding packet switching vs circuit switching also provides quick marks.
In network topology case studies, recommend a Star topology when all blocks connect to a central hub/switch, and recommend fiber optic cable for high-speed inter-block connectivity exceeding 100 meters.
The table below shows how the 30 practical marks are evaluated in your school computer laboratory.
| Evaluation Component | Marks Allotted | Laboratory Tasks Required | Student Preparation Advice |
|---|---|---|---|
| Lab Test - Python Program | 8 Marks | Write and run a program on file handling or stack | Practice reading binary records and writing stack push/pop |
| Lab Test - SQL Queries | 4 Marks | Create database table and execute 4 specific queries | Review table creation with primary keys and SELECT WHERE |
| Practical Record File | 7 Marks | Minimum 15 Python programs and 5 SQL query sets | Keep files certified with verified program printouts |
| Project Work | 8 Marks | Complete Python-SQL integrated software project | Build a functional system like school or library management |
| Viva Voce Examination | 3 Marks | Oral questions by external examiner on project and code | Explain your project database schema and connector logic |
In the laboratory test, you will sit at a computer terminal and write an assigned Python program and set of SQL queries within the allotted time. Make sure your program executes without syntax errors and produces the expected output.
Your project work carries 8 marks and must be an integrated software application built using Python frontend interfaces and MySQL backend databases. Systems like School Management, Banking System, or Hotel Reservation are popular choices.
During the viva voce, external examiners commonly ask candidates to explain their project code line by line. They may ask how your Python script connects to MySQL, what queries are executed, and how data is validated before insertion.
Keep your certified practical record file clean and well-organized with sample outputs pasted opposite each program. External examiners inspect your record file carefully before awarding internal marks.
Adopt these proven preparation habits to build high speed and accuracy in Computer Science:
When tackling Python output-finding questions, draw an iteration trace table on your rough margin showing variable values after each loop pass. Tracing loop counters, string slices, and list mutations step by step prevents common off-by-one index mistakes and variable scope errors.
In file handling questions, pay careful attention to file opening modes such as 'r', 'w', 'a', 'rb', and 'wb'. Remember that binary files require pickle.dump() and pickle.load(), while text files use readline(), readlines(), or write(). Always include file.close() or use a 'with' block to ensure proper resource management.
For SQL database questions, write clauses in their strictly required syntactic order: SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY. Remember that aggregate functions like COUNT(), SUM(), and AVG() cannot appear in a WHERE clause, and string values inside SQL queries must be enclosed in single or double quotes.
When designing computer networks in Section E case studies, recommend placing the main server in the building wing that contains the greatest number of computers to minimize network traffic. Suggest Star topology using switches or hubs within each wing, and specify high-speed fiber optic cables for connecting buildings situated more than 70 meters apart.
In Python data structure questions, implement Stack operations cleanly using list methods. Clearly write push operations using list.append() and pop operations with an empty check followed by list.pop() to secure full 3 marks on stack implementation problems.
Class 12 Computer Science carries 100 total marks: 70 marks for the external board theory examination and 30 marks for internal school practical evaluations.
The theory examination lasts 3 hours (180 minutes), conducted from 10:30 AM to 1:30 PM, with 15 minutes of reading time before writing begins.
Python is the official programming language tested in the curriculum, alongside MySQL for relational database management.
Unit 1 (Computational Thinking and Programming in Python) carries the highest weightage, accounting for 40 marks out of the 70-mark theory paper.
pickle.dump(object, file) serializes and writes a Python object into a binary file, whereas pickle.load(file) reads and deserializes an object from a binary file.
No. Calculators and electronic devices are strictly prohibited inside the examination center.
Students must score at least 23 marks out of 70 in theory (33 percent) and at least 10 marks out of 30 in practicals (33 percent) independently to pass.
WHERE filters individual rows before grouping takes place, while HAVING filters groups of rows after the GROUP BY clause has been applied.
A stack is implemented by using list.append() for the push operation and list.pop() for the pop operation, operating on the principle of Last In First Out (LIFO).
db.commit() is required to permanently save changes made by INSERT, UPDATE, or DELETE transaction commands into the database table.
Computer Science with Python by Sumita Arora and Computer Science by Preeti Arora are the most popular and trusted reference textbooks alongside NCERT material.
Identify the block with the maximum computers to place the server, suggest Star topology with switches/hubs in each block, and recommend fiber optic cable for inter-block links.
*The article might have information for the previous academic years, please refer the official website of the exam.