Zollege is here for to help you!!
Need Counselling
Zollege Team's profile photo

Zollege Team

Content Curator | Updated On - Nov 20, 2026

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.

Topper's Smart Tip for Students: How to Score 70 Out of 70 in Python Theory and SQL Queries

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.

CBSE Class 12 Computer Science Unit-Wise Marks and Topic Weightage Table

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.

Mastering Python Coding, Binary File Handling and SQL Table Joins

Computer Science questions require precise programming logic and exact query syntax:

  • Python Functions and Scope: Understand positional vs keyword arguments, default parameters, and the difference between local and global variable scopes. Practice writing user-defined functions that return multiple values.
  • Binary File Operations (pickle): Practice searching, updating, and counting records in a binary file using dictionaries. Always handle EOFError exceptions cleanly inside try-except blocks while reading binary streams.
  • Data Structure - Stacks in Python: Implement linear stack operations (push, pop, and display) using Python lists. In push functions, check condition and append elements; in pop functions, check for underflow (len(stack) == 0) before popping.
  • Database Connectivity (Python-MySQL): Master the 5 steps: import mysql.connector, establish connection using connect(), create cursor object using cursor(), execute SQL query using execute(), and fetch records using fetchall() or fetchone().

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.

Class 12 Computer Science Practical Examination Scheme (30 Marks)

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.

Study Schedule, Output Tracing Skills and Exam Hall Pacing

Adopt these proven preparation habits to build high speed and accuracy in Computer Science:

  • Output Tracing Practice: Solve at least 3 output tracing questions daily. Draw a memory trace table tracking variable values step-by-step through loops and function calls to avoid mental calculation slips.
  • Handwritten Code Practice: Do not rely solely on typing code in an IDE. Practice writing Python programs and SQL queries on ruled paper so your handwriting and indentation are exam-ready.
  • Network Theory Flashcards: Create flashcards for network topologies, transmission media advantages, and protocol definitions. Reviewing these cards weekly guarantees full 10 marks in Unit 2.
  • Common Mistakes to Avoid: Never forget to call db.commit() after executing INSERT, UPDATE, or DELETE queries in Python-SQL scripts. In SQL, do not use quotation marks around numeric values.

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.

Frequently Asked Questions

What is the marks breakdown for CBSE Class 12 Computer Science?+

Class 12 Computer Science carries 100 total marks: 70 marks for the external board theory examination and 30 marks for internal school practical evaluations.

What is the duration of the CBSE Class 12 Computer Science theory paper?+

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.

Which programming language is tested in CBSE Class 12 Computer Science?+

Python is the official programming language tested in the curriculum, alongside MySQL for relational database management.

Which unit carries the highest weightage in Class 12 Computer Science?+

Unit 1 (Computational Thinking and Programming in Python) carries the highest weightage, accounting for 40 marks out of the 70-mark theory paper.

What is the difference between pickle.dump() and pickle.load()?+

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.

Are calculators permitted in the CBSE Computer Science exam?+

No. Calculators and electronic devices are strictly prohibited inside the examination center.

What are the minimum passing marks in Class 12 Computer Science?+

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.

What is the difference between WHERE and HAVING in SQL?+

WHERE filters individual rows before grouping takes place, while HAVING filters groups of rows after the GROUP BY clause has been applied.

How is a stack implemented using Python lists in CBSE CS?+

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).

Why is db.commit() necessary in Python-MySQL connectivity?+

db.commit() is required to permanently save changes made by INSERT, UPDATE, or DELETE transaction commands into the database table.

Which reference book is best for Class 12 Computer Science?+

Computer Science with Python by Sumita Arora and Computer Science by Preeti Arora are the most popular and trusted reference textbooks alongside NCERT material.

What are the core steps to solve a computer networks case study question?+

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.

Ask your question

Subscribe To Our News Letter

Get Latest Notification Of Colleges, Exams and News

© 2026 Patronum Web Private Limited