CBSE Class 12 Computer Science Syllabus 2026-27

CBSE Class 12 Computer Science Syllabus 2026-27 covers Python programming, file handling, stack, computer networks, SQL and database management. The subject code is 083, with 70 marks for theory and 30 marks for practical assessment.

CBSE Class 12 Computer Science Syllabus 2026-27 covers three theory units: Computational Thinking and Programming – 2, Computer Networks and Database Management. The subject builds on Class 11 Computer Science and focuses on Python, file handling, data structures, SQL, networking and Python-SQL connectivity.

The theory paper carries 70 marks, while the practical assessment carries 30 marks. Students can use the Computer Science class 12 syllabus to check unit-wise marks, detailed topics, practical tasks, project guidelines and NCERT chapter mapping. The syllabus also connects coding, database queries and project work with board exam requirements.

Key Takeaways

  • Subject Code: Computer Science is subject code 083.
  • Theory Marks: The theory paper carries 70 marks.
  • Practical Marks: Practical assessment carries 30 marks.
  • Highest-Weightage Unit: Computational Thinking and Programming – 2 carries 40 marks.

Need help with Python, SQL, computer networks or project work?
Access interactive lessons, practice questions and NCERT solutions on the Extramarks Learning App. Sign Up Free

CBSE Class 12 Computer Science Syllabus 2026-27 Overview

Class 12 Computer Science syllabus 2026-27 has theory and practical components. Students study Python programming, file handling, stack, SQL, computer networks and database connectivity.

Particular Details
Board CBSE
Class 12
Subject Computer Science
Subject Code 083
Academic Year 2026-27
Theory Marks 70
Practical Marks 30
Total Marks 100
Prerequisite Computer Science studied in Class 11

CBSE Class 12 Computer Science Course Structure 2026-27

CBSE Class 12 Computer Science course structure has three theory units and one practical component. Unit 1 carries the highest weightage because it includes Python programming, file handling and stack.

Unit No. Unit Name Marks
1 Computational Thinking and Programming – 2 40
2 Computer Networks 10
3 Database Management 20
Total Theory Paper 70
Practical Practical Assessment 30
Total Theory + Practical 100

CBSE Class 12 Computer Science Unit-Wise Syllabus 2026-27

Class 12 Computer Science unit wise syllabus gives the full topic list for Python, networks and database management. Students can study the theory units with regular coding and SQL practice.

Unit 1: Computational Thinking And Programming – 2

Computational Thinking and Programming – 2 focuses on Python concepts from Class 11 and advanced Class 12 programming topics. It includes functions, exception handling, file handling and stack.

Topic What Students Need To Cover
Python Revision Python topics covered in Class 11
Functions Built-in functions, module functions, user-defined functions, parameters, arguments, return values and scope of variables
Exception Handling Introduction to exceptions and try-except-finally blocks
File Handling Text files, binary files, CSV files, relative paths and absolute paths
Text Files Open modes, with clause, write, writelines, read, readline, readlines, seek and tell
Binary Files pickle module, dump, load, read, write, search, append and update operations
CSV Files csv module, writer, writerow, writerows and reader
Data Structures Stack, push, pop and implementation using Python list

Unit 2: Computer Networks

Computer Networks class 12 Computer Science introduces data communication, network devices, topologies, protocols and web services. This unit is mainly theory-based.

Topic What Students Need To Cover
Evolution of Networking ARPANET, NSFNET and Internet
Data Communication Sender, receiver, message, communication media and protocols
Communication Capacity Bandwidth and data transfer rate
IP Addressing IP address basics
Switching Techniques Circuit switching and packet switching
Transmission Media Twisted pair cable, coaxial cable, fibre-optic cable, radio waves, microwaves and infrared waves
Network Devices Modem, Ethernet card, RJ45, repeater, hub, switch, router, gateway and Wi-Fi card
Network Types PAN, LAN, MAN and WAN
Network Topologies Bus, star and tree
Network Protocols HTTP, FTP, PPP, SMTP, TCP/IP, POP3, HTTPS, TELNET and VoIP
Web Services WWW, HTML, XML, domain names, URL, website, browser, web server and web hosting

Unit 3: Database Management

Database Management class 12 Computer Science covers relational databases, SQL and Python SQL connectivity class 12. Students need query practice along with Python database operations.

Topic What Students Need To Cover
Database Concepts Need for database and basic database concepts
Relational Data Model Relation, attribute, tuple, domain, degree and cardinality
Keys Candidate key, primary key, alternate key and foreign key
SQL Basics DDL, DML, data types and constraints
Database Commands CREATE DATABASE, USE DATABASE, SHOW DATABASES and DROP DATABASE
Table Commands CREATE TABLE, DESCRIBE TABLE, ALTER TABLE and DROP TABLE
Data Commands INSERT, DELETE, UPDATE and SELECT
Query Clauses WHERE, IN, BETWEEN, ORDER BY, DISTINCT, aliasing, LIKE and NULL checks
Aggregate Functions MAX, MIN, AVG, SUM and COUNT
Grouping GROUP BY and HAVING
Joins Cartesian product, equi-join and natural join
Python-SQL Connectivity connect, cursor, execute, commit, fetchone, fetchall, rowcount and database query execution

NCERT Class 12 Computer Science Chapter Mapping

NCERT Computer Science class 12 has 13 chapters. The table below maps the textbook chapters to the main CBSE syllabus areas.

NCERT Chapter Chapter Name Best-Fit Syllabus Area
1 Exception Handling in Python Unit 1
2 File Handling in Python Unit 1
3 Stack Unit 1
4 Queue Additional data structure learning
5 Sorting Additional algorithm learning
6 Searching Additional algorithm learning
7 Understanding Data Unit 3 support
8 Database Concepts Unit 3
9 Structured Query Language (SQL) Unit 3
10 Computer Networks Unit 2
11 Data Communication Unit 2
12 Security Aspects Unit 2 support
13 Project Based Learning Practical and project work

CBSE Class 12 Computer Science Practical Marks Distribution

CBSE Class 12 Computer Science practical marks distribution carries 30 marks. The practical exam checks Python programming, SQL queries, report file, project and viva.

Practical Component Marks
Python program 8
SQL queries 4
Practical file with Python programs, SQL queries and Python-SQL connectivity programs 7
Project 8
Viva voce 3
Total 30

Class 12 Computer Science Suggested Practical List

Class 12 Computer Science suggested practical list includes Python programming, file handling, stack, SQL and Python-SQL connectivity. Students can practise both coding and database tasks.

Python Programming Practicals

Practical Type Example Task
Text File Handling Read a text file line by line and display words separated by #
Character Counting Count vowels, consonants, uppercase and lowercase characters in a text file
File Filtering Remove lines containing a given character and write remaining lines to another file
Binary File Search Store name and roll number, then search by roll number
Binary File Update Store roll number, name and marks, then update marks
Random Module Simulate dice using random number generation
Stack Implement stack using Python list
CSV File Store user ID and password, then search password for a given user ID

Database Management Practicals

SQL Area Example Task
Create and Insert Create a student table and insert data
ALTER Add, modify or drop attributes
UPDATE Modify existing data
ORDER BY Display data in ascending or descending order
DELETE Remove selected tuples
GROUP BY Find minimum, maximum, sum, count and average
Python-SQL Integration Connect SQL with Python using a suitable module

Class 12 Computer Science Project Guidelines

Class 12 Computer Science project guidelines focus on building a useful application. The project can use Python file handling or Python-SQL connectivity.

Project Requirement What Students Can Do
Project Format Build a useful application using Python file handling or Python-SQL connectivity
Group Size Work in groups of 2-3 students
Timeline Start at least six months before submission
Problem Selection Pick a real-world problem worth solving
Originality Avoid plagiarism and copyright violations
Output Create a working, tangible and useful project

Project Ideas For Class 12 Computer Science

Project Idea Concepts Used
Student Record Management System Python-SQL connectivity, CRUD operations
Library Management System SQL tables, Python interface, search and update
Inventory Management System Database design, insert, update, delete and reports
Quiz Application File handling, functions and scoring logic
Password Manager CSV file handling, search and update
GST Invoice Generator File handling or SQL, calculations and report generation
School Event Registration System Python-SQL connectivity, forms and records
Fitness Tracker CSV files, data storage and basic analysis

CBSE Class 12 Computer Science Learning Outcomes

The Computer Science class 12 syllabus builds programming, database and networking skills. These outcomes show what students can do by the end of the course.

Learning Outcome What It Means For Students
Apply functions Use user-defined and built-in functions in programs
Use file handling Store, read, search, append and update data in files
Use stacks Apply stack operations using Python lists
Explain computer networks Understand devices, protocols, topology and internet basics
Use SQL and database concepts Write queries and manage relational data
Connect Python with SQL Build applications using Python database connectivity

Prescribed Reading Material For Class 12 Computer Science

Students can use the official textbook and support material for theory, practicals and project work. Keep the reading list short and focused.

Resource Publisher / Source
Computer Science, Textbook for Class XII NCERT
Support Material CBSE website

Useful Links for CBSE Class 12 Computer Science Syllabus

Category Article
Syllabus CBSE Class 12 Computer Science Syllabus
Syllabus CBSE Class 12 Syllabus
Syllabus CBSE Syllabus
Sample Papers CBSE Sample Papers for Class 12 Computer Science
Sample Papers CBSE Sample Papers for Class 12 Computer Science Mock Paper 1
Previous Year Papers CBSE Computer Science Question Paper Class 12
Previous Year Papers CBSE Previous Year Question Papers Class 12
Important Questions CBSE Important Questions

Computer Science CLASS-XI

Code No. 083

2023-24

1. Learning Outcomes

Student should be able to

  1. develop basic computational thinking
  2. explain and use data types
  3. appreciate the notion of algorithm
  4. develop a basic understanding of computer systems – architecture, operating system and cloud computing
  5. explain cyber ethics, cyber safety and cybercrime
  6. Understand the value of technology in societies along with consideration of gender and disability issues

2. Distribution of Marks

Unit No. Unit Name Marks Periods
Theory Practical
I Computer Systems and Organisation 10 10 10
II Computational Thinking and Programming – 1 45 80 60
III Society, Law and Ethics 15 20 —-
Total 70 110 70
  1. Unit wise Syllabus

Unit I: Computer Systems and Organisation

  • Basic Computer Organisation: Introduction to computer system, hardware, software, input device, output device, CPU, memory (primary, cache and secondary), units of memory (Bit, Byte, KB, MB, GB, TB, PB)
  • Types of software: system software (operating systems, system utilities, device drivers), programming tools and language translators (assembler, compiler & interpreter), application software
  • Operating system (OS): functions of operating system, OS user interface
  • Boolean logic: NOT, AND, OR, NAND, NOR, XOR, truth table, De Morgan’s laws and logic circuits
  • Number system: Binary, Octal, Decimal and Hexadecimal number system; conversion between number systems.
  • Encoding schemes: ASCII, ISCII and UNICODE (UTF8, UTF32)

Unit II: Computational Thinking and Programming – 1

  • Introduction to problem solving: Steps for problem solving (analysing the problem, developing an algorithm, coding, testing and debugging). representation of algorithms using flow chart and pseudo code, decomposition
  • Familiarization with the basics of Python programming: Introduction to Python, features of Python, executing a simple “hello world” program, execution modes: interactive mode and script mode, Python character set, Python tokens (keyword, identifier, literal, operator, punctuator), variables, concept of l-value and r-value, use of comments
  • Knowledge of data types: number (integer, floating point, complex), boolean, sequence (string, list, tuple), none, mapping (dictionary), mutable and immutable data types
  • Operators: arithmetic operators, relational operators, logical operators, assignment operator, augmented assignment operators, identity operators (is, is not), membership operators (in, not in)
  • Expressions, statement, type conversion & input/output: precedence of operators, expression, evaluation of expression, python statement, type conversion (explicit & implicit conversion), accepting data as input from the console and displaying output
  • Errors: syntax errors, logical errors, runtime errors
  • Flow of control: introduction, use of indentation, sequential flow, conditional and iterative flow control
  • Conditional statements: if, if-else, if-elif-else, flowcharts, simple programs: e.g.: absolute value, sort 3 numbers and divisibility of a number
  • Iterative statements: for loop, range function, while loop, flowcharts, break and continue statements, nested loops, suggested programs: generating pattern, summation of series, finding the factorial of a positive number etc
  • Strings: introduction, indexing, string operations (concatenation, repetition, membership & slicing), traversing a string using loops, built-in functions: len(), capitalize(), title(), lower(), upper(), count(), find(), index(), endswith(), startswith(), isalnum(), isalpha(), isdigit(), islower(), isupper(), isspace(), lstrip(), rstrip(), strip(), replace(), join(), partition(), split()
  • Lists: introduction, indexing, list operations (concatenation, repetition, membership & slicing), traversing a list using loops, built-in functions: len(), list(), append(), extend(), insert(), count(), index(), remove(), pop(), reverse(), sort(), sorted(), min(), max(), sum(); nested lists, suggested programs: finding the maximum, minimum, mean of numeric values stored in a list; linear search on list of numbers and counting the frequency of elements in a list
  • Tuples: introduction, indexing, tuple operations (concatenation, repetition, membership & slicing), built-in functions: len(), tuple(), count(), index(), sorted(), min(), max(), sum(); tuple assignment, nested tuple, suggested programs: finding the minimum, maximum, mean of values stored in a tuple; linear search on a tuple of numbers, counting the frequency of elements in a tuple
  • Dictionary: introduction, accessing items in a dictionary using keys, mutability of dictionary (adding a new item, modifying an existing item), traversing a dictionary, built-in functions: len(), dict(), keys(), values(), items(), get(), update(), del, clear(), fromkeys(), copy(), pop(), popitem(), setdefault(), max(), min(), count(), sorted(), copy(); suggested programs : count the number of times a character appears in a given string using a dictionary, create a dictionary with names of employees, their salary and access them
  • Introduction to Python modules: Importing module using ‘import <module>’ and using from statement, Importing math module (pi, e, sqrt, ceil, floor, pow, fabs, sin, cos, tan); random module (random, randint, randrange), statistics module (mean, median, mode)

Unit III: Society, Law and Ethics

  • Digital Footprints
  • Digital society and Netizen: net etiquettes, communication etiquettes, social media etiquettes
  • Data protection: Intellectual Property Right (copyright, patent, trademark), violation of IPR (plagiarism, copyright infringement, trademark infringement), open source softwares and licensing (Creative Commons, GPL and Apache)
  • Cyber-crime: definition, hacking, eavesdropping, phishing and fraud emails, ransomware, preventing cyber crime
  • Cyber safety: safely browsing the web, identity protection, confidentiality, cyber trolls and
  • Safely accessing web sites: malware, viruses, trojans, adware
  • E-waste management: proper disposal of used electronic gadgets
  • Indian Information Technology Act (IT Act)
  • Technology & Society: Gender and disability issues while teaching and using computers

4. Practical

S.No. Unit Name Marks (Total=30)
1. Lab Test (12 marks)
Python program (60% logic + 20% documentation + 20% code quality) 12
2. Report File + Viva (10 marks)
Report file: Minimum 20 Python programs 7
Viva voce 3
3. Project (that uses most of the concepts that have been learnt) (See CS-XII for the rules regarding the projects) 8
  1. Suggested Practical List

Python Programming

  • Input a welcome message and display
  • Input two numbers and display the larger / smaller
  • Input three numbers and display the largest / smallest
  • Generate the following patterns using nested
Pattern-1 Pattern-2 Pattern-3
*

**

***

****

*****

1 2 3 4 5

1 2 3 4

1 2 3

1 2

1

A AB ABC

ABCD ABCDE

  • Write a program to input the value of x and n and print the sum of the following series:

o 1+x+x2+x3+x4+. ……….. xn

o 1-x+x2-x3+x4 ………………………………….. xn

  • x – x2 + x3 – x4 + ………… xn

2 3 4 n

  • x + x2- x3+ x4 ……………………………………. xn

2! 3! 4! n!

  • Determine whether a number is a perfect number, an armstrong number or a
  • Input a number and check if the number is a prime or composite
  • Display the terms of a Fibonacci
  • Compute the greatest common divisor and least common multiple of two
  • Count and display the number of vowels, consonants, uppercase, lowercase characters in
  • Input a string and determine whether it is a palindrome or not; convert the case of characters in a
  • Find the largest/smallest number in a list/tuple
  • Input a list of numbers and swap elements at the even location with the elements at the odd
  • Input a list/tuple of elements, search for a given element in the list/tuple.
  • Input a list of numbers and find the smallest and largest number from the
  • Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have scored marks above 75.

6. Suggested Reading Material

  • NCERT Textbook for COMPUTER SCIENCE (Class XI)
  • Support Materials on the CBSE

Computer Science CLASS-XII

Code No. 083

2023-24

  1. Prerequisites

Computer Science- Class XI

2. Learning Outcomes

Student should be able to

  1. apply the concept of
  2. explain and use the concept of file
  3. use basic data structure: Stacks
  4. explain basics of computer
  5. use Database concepts, SQL along with connectivity between Python and

3. Distribution of Marks:

Unit No. Unit Name Marks Periods
Theory Practical
 

I

Computational Thinking and Programming – 2 40 70 50
II Computer Networks 10 15
III Database Management 20 25 20
Total 70 110 70
  1. Unit wise Syllabus

Unit I: Computational Thinking and Programming – 2

  • Revision of Python topics covered in Class
  • Functions: types of function (built-in functions, functions defined in module, user defined functions), creating user defined function, arguments and parameters, default parameters, positional parameters, function returning value(s), flow of execution, scope of a variable (global scope, local scope)
  • Introduction to files, types of files (Text file, Binary file, CSV file), relative and absolute paths
  • Text file: opening a text file, text file open modes (r, r+, w, w+, a, a+), closing a text file, opening a file using with clause, writing/appending data to a text file using write() and writelines(), reading from a text file using read(), readline() and readlines(), seek and tell methods, manipulation of data in a text file
  • Binary file: basic operations on a binary file: open using file open modes (rb, rb+, wb, wb+, ab, ab+), close a binary file, import pickle module, dump() and load() method, read, write/create, search, append and update operations in a binary file
  • CSV file: import csv module, open / close csv file, write into a csv file using csv.writer() and read from a csv file using csv.reader( )
  • Data Structure: Stack, operations on stack (push & pop), implementation of stack using list.

Unit II: Computer Networks

  • Evolution of networking: introduction to computer networks, evolution of networking (ARPANET, NSFNET, INTERNET)
  • Data communication terminologies: concept of communication, components of data communication (sender, receiver, message, communication media, protocols), measuring capacity of communication media (bandwidth, data transfer rate), IP address, switching techniques (Circuit switching, Packet switching)
  • Transmission media: Wired communication media (Twisted pair cable, Co-axial cable, Fiber-optic cable), Wireless media (Radio waves, Micro waves, Infrared waves)
  • Network devices (Modem, Ethernet card, RJ45, Repeater, Hub, Switch, Router, Gateway, WIFI card)
  • Network topologies and Network types: types of networks (PAN, LAN, MAN, WAN), networking topologies (Bus, Star, Tree)
  • Network protocol: HTTP, FTP, PPP, SMTP, TCP/IP, POP3, HTTPS, TELNET, VoIP
  • Introduction to web services: WWW, Hyper Text Markup Language (HTML), Extensible Markup Language (XML), domain names, URL, website, web browser, web servers, web hosting

Unit III: Database Management

  • Database concepts: introduction to database concepts and its need
  • Relational data model: relation, attribute, tuple, domain, degree, cardinality, keys (candidate key, primary key, alternate key, foreign key)
  • Structured Query Language: introduction, Data Definition Language and Data Manipulation Language, data type (char(n), varchar(n), int, float, date), constraints (not null, unique, primary key), create database, use database, show databases, drop database, show tables, create table, describe table, alter table (add and remove an attribute, add and remove primary key), drop table, insert, delete, select, operators (mathematical, relational and logical), aliasing, distinct clause, where clause, in, between, order by, meaning of null, is null, is not null, like, update command, delete command, aggregate functions (max, min, avg, sum, count), group by, having clause, joins: cartesian product on two tables, equi-join and natural join
  • Interface of python with an SQL database: connecting SQL with Python, performing insert, update, delete queries using cursor, display data by using fetchone(), fetchall(), rowcount, creating database connectivity applications

5. Practical

S.No

.

Unit Name Marks (Total=30)
1 Lab Test:

 

1. Python program (60% logic + 20% documentation + 20% code quality)

 

 

8

2. A stub program with Python SQL connectivity must be provided with blanks (4 blanks) to be filled by the student with the desired SQL query. 4
2 Report file:

· Minimum 15 Python programs.

· SQL Queries – Minimum 5 sets using one table / two tables.

· Minimum 4 programs based on Python – SQL connectivity

7
3 Project (using concepts learnt in Classes 11 and 12) 8
4 Viva voce 3
  1. Suggested Practical List:

Python Programming

  • Read a text file line by line and display each word separated by a #.
  • Read a text file and display the number of vowels/consonants/uppercase/lowercase characters in the
  • Remove all the lines that contain the character ‘a’ in a file and write it to another
  • Create a binary file with name and roll Search for a given roll number and display the name, if not found display appropriate message.
  • Create a binary file with roll number, name and Input a roll number and update the marks.
  • Write a random number generator that generates random numbers between 1 and 6 (simulates a dice).
  • Write a Python program to implement a stack using
  • Create a CSV file by entering user-id and password, read and search the password for given user-

Database Management

  • Create a student table and insert data. Implement the following SQL commands on the student table:
    • ALTER table to add new attributes / modify data type / drop attribute
    • UPDATE table to modify data
    • ORDER By to display data in ascending / descending order
    • DELETE to remove tuple(s)
    • GROUP BY and find the min, max, sum, count and average
  • Similar exercise may be framed for other
  • Integrate SQL with Python by importing suitable

7. Suggested Reading Material

  • NCERT Textbook for COMPUTER SCIENCE (Class XII)
  • Support Materials on the CBSE

8. Project

The aim of the class project is to create something that is tangible and useful using Python file handling/ Python-SQL connectivity. This should be done in groups of two to three students and should be started by students at least 6 months before the submission deadline. The aim here is to find a real world problem that is worthwhile to solve.

Students are encouraged to visit local businesses and ask them about the problems that they are facing. For example, if a business is finding it hard to create invoices for filing GST claims, then students can do a project that takes the raw data (list of transactions), groups the transactions by category, accounts for the GST tax rates, and creates invoices in the appropriate format. Students can be extremely creative here. They can use a wide variety of Python libraries to create user friendly applications such as games, software for their school, software for their disabled fellow students, and mobile applications, of course to do some of these projects, some additional learning is required; this should be encouraged. Students should know how to teach themselves.

The students should be sensitised to avoid plagiarism and violations of copyright issues while working on projects. Teachers should take necessary measures for this.

Please register to view this section

FAQs (Frequently Asked Questions)

Yes. Python is central to Class 12 Computer Science because Unit 1 covers functions, exception handling, file handling and stack implementation.

Python is also used in the practical exam and project work.

Yes. SQL is part of both theory and practical assessment.

Students need queries and Python-SQL connectivity. Database commands, joins, aggregate functions and grouping are important areas.

A good project solves a real problem using Python file handling or Python-SQL connectivity.

Examples include student record systems, library systems, inventory tools, quiz applications and invoice generators.

File handling stores data in text, binary or CSV files using Python.

Database management stores structured data in tables and uses SQL for queries, updates, grouping and relationships.

No. Computer Networks is mainly a theory unit.

It covers networking evolution, devices, transmission media, protocols, IP addresses, web services and communication basics.