DELETED Computer_Science_2020-21

REVISED Computer_Science_Sr.Sec_2020-21


CS Syllabus XI XII 2020-21 (pdf)

CS Syllabus XI XII 2020-21 (word)

Computer Science


Code No. 083


1.  Learning Outcomes

  • Ability to understand and apply basic computational
  • Ability to understand the notion of data types and data structures and apply in different
  • Ability to appreciate the notion of an algorithm and apply its structure including how algorithms handle corner
  • Ability to develop a basic understanding of computer systems – architecture, operating system, mobile and cloud
  • Ability to work in the cyber world with understanding of cyber ethics, cyber safety and cybercrime
  • Ability to make use the value of technology in societies, gender and disability issues and the technology behind biometric.

2.  Distribution of Marks

Unit No. Unit Name Theory 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


Unit I: Computer Systems and Organisation

  • Basic computer organisation: description of a computer system and mobile system, CPU, memory, hard disk, I/O,
  • Types of software: Application software, System software and Utility software.
  • Memory Units: bit, byte, MB, GB, TB, and
  • Boolean logic: NOT, AND, OR, NAND, NOR, XOR, NOT, truth tables and De Morgan’s laws, Logic circuits
  • Number System: numbers in base 2, 8, 16 and binary
  • Encoding Schemes: ASCII, UTF8, UTF32, ISCII and
  • Concept of Compiler and Interpreter
  • Operating System (OS) – need for an operating system, brief introduction to functions of OS, user interface
  • Concept of cloud computing and cloud services (SaaS,IaaS,PaaS), cloud (public/private), Blockchain technology


Unit II: Computational Thinking and Programming – 1

Introduction to Problem solving: Problem solving cycle – Analysing a problem, designing algorithms and representation of algorithm using flowchart and pseudo-code.

Decomposition – concept, need for decomposing a problem, examples of problem solving using decomposition.

Familiarization with the basics of Python programming: a simple “hello world” program, the process of writing a program (Interactive & Script  mode),  running it and print statements; simple data-types: integer, float and string.


  • Features of Python, Python Character Set, Token & Identifiers, Keywords, Literals, Delimiters,
  • Comments: (Single line & Multiline/ Continuation statements), Clarity & Simplification of expression
  • Introduce the notion of a variable and methods to manipulate it (concept of L-value and R-value even if not taught explicitly).
  • Knowledge of data types and operators: accepting input from the console, assignment statement, expressions, operators and their
  • Operators & types: Binary operators-Arithmetic, Relational Operators, Logical Operators, Augmented Assignment
  • Execution of a program, errors- syntax error, run-time error and logical error.
  • Conditional statements: if, if-else, if-elif-else; simple programs: g.: absolute value, sort 3 numbers and divisibility of a number.
  • Notion of iterative computation and control flow: for(range(),len()), while, using flowcharts, suggested programs: calculation of simple and compound interests, finding the factorial of a positive number
  • Strings: Traversal, operations – concatenation, repetition, membership; functions/methods–len(), capitalize(), title(), upper(), lower(), count(), find(), index(), isalnum(), islower(), isupper(), isspace(), isalpha(), isdigit(), split(), partition(), strip(), lstrip(), rstrip(), replace(); String
  • Lists: Definition, Creation of a list, Traversal of a list. Operations on a list – concatenation, repetition, membership; functions/methods–len(), list(),append(), extend(), insert(), count(), index(), remove(), pop(), reverse(), sort(), min(), max(), sum(); Lists Slicing; Nested lists; 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: Definition, Creation of a Tuple, Traversal of a tuple. Operations on  a tuple – concatenation, repetition,  membership;  functions/methods  –  len(), tuple(), count(), index(), sorted(), min(), max(), sum(); Nested tuple; Tuple slicing; 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
  • Dictionary: Definition, Creation, Accessing elements of a dictionary, add an item, modify an item in a dictionary; Traversal, functions/methods – len(), dict(), keys(), values(), items(), get(), update(), del(), 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
  • Sorting algorithm: bubble and insertion sort; count the number  of operations while
  • Introduction to Python modules: 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

  • Cyber safety: safely browsing the web, identity protection, confidentiality, social networks, cyber trolls and
  • Appropriate usage of social networks: spread of rumours, and common social networking sites (Twitter, LinkedIn, and Facebook) and specific usage
  • Safely accessing web sites: adware, malware, viruses, trojans
  • Safely communicating data: secure connections, eavesdropping, phishing and identity
  • Intellectual property rights, plagiarism, digital rights management, and licensing (Creative Commons, GPL and Apache), open source, open data, privacy.
  • Privacy laws, fraud; cyber-crime- phishing, illegal downloads, child pornography, scams; cyber forensics, IT Act,
  • Technology and society:
    • understanding of societal issues and cultural changes induced by technology.
    • E-waste management: proper disposal of used electronic
  • Identity theft, unique ids and
  • Gender and disability issues while teaching and using


3.  Practical

S.No. Area 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 (8 marks)

(that uses most of the concepts that have been learnt See  CS-XII for the rules regarding the projects)


  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
  • Given two integers x and n, compute 𝑥n.
  • Write a program to input the value of x and n and print the sum of  the following series:
    • 1+x+x2+x3+x4+ ……….. xn
    • 1-x+x2-x3+x4……………………………. xn
    • x + x2-  x3 +  x4 ……………………………….. xn
  • Determine whether a number is a perfect number, an armstrong number or a palindrome.
  • 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 integers.
  • 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    of    elements,     sort    in    ascending/descending      order    using Bubble/Insertion
  • Input a list/tuple of elements, search for a given element in the list/tuple.
  • Input a list of numbers and test if a number is equal to the sum of the cubes of its digits. Find the smallest and largest such number from the given list of numbers.
  • Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have marks above


Computer Science


Code No. 083



  1. Prerequisites

Computer Science- Class XI

2.  Learning Outcomes

  • Apply the concept of functions and
  • Ability to create and use Python
  • Apply the concept of file
  • Make use of the concept of efficiency in algorithms and computing in general.
  • Ability to use basic data structures: Stacks and
  • Explain the basics of computer
  • Ability to use connectivity between Python and

3.  Distribution of Marks:

Unit No. Unit Name Theory Marks Periods
Theory Practical


Computational Thinking and Programming – 2 40 70 50


Computer Networks 10 15


Database Management 20 25 20
Total 70 110 70


Unit I: Computational Thinking and Programming – 2

  • Revision of the basics of Python covered in Class
  • Functions: scope, parameter passing, mutable/immutable properties of data objects, passing strings, lists, tuples, dictionaries to functions, default parameters, positional parameters, return values, functions using libraries: mathematical and string
  • File handling: Need for a data file, Types of file: Text files, Binary files and CSV (Comma separated values)
  • Text File: Basic operations on a text file:  Open (filename – absolute or relative path, mode) / Close a text file, Reading and Manipulation   of data from a text file, Appending data into a text file, standard input / output and error streams, relative and absolute
  • Binary File: Basic operations on a binary file: Open (filename – absolute or relative path, mode) / Close a binary file, Pickle Module – methods load and dump; Read, Write/Create, Search, Append and Update operations in a binary
  • CSV File: Import csv module, functions – Open / Close a csv file, Read from a csv file and Write into a csv file using csv.reader ( ) and csv.writerow( ).
  • Using Python libraries: create and import Python
  • Recursion: simple algorithms with recursion: print a message forever, sum of first n natural numbers, factorial, Fibonacci numbers;  recursion on arrays: binary
  • Idea of efficiency: performance measurement in terms of the number of
  • Data-structures: Lists as covered in Class XI, Stacks – Push, Pop using a list, Queues – Insert, Delete using a list


Unit II: Computer Networks

  • Evolution of Networking: ARPANET, Internet, Interspace Different ways of sending data across the network with reference to switching techniques (Circuit and Packet switching).
  • Data Communication terminologies: Concept of Channel, Bandwidth (Hz, KHz, MHz) and Data transfer rate (bps, Kbps, Mbps, Gbps, Tbps).
  • Transmission media: Twisted pair cable, coaxial cable, optical fiber, infrared, radio link, microwave link and satellite
  • Network devices: Modem, RJ45 connector, Ethernet Card, Router, Switch, Gateway, WiFi
  • Network Topologies and types: Bus, Star, Tree, PAN, LAN, WAN, MAN.
  • Network Protocol: TCP/IP, File Transfer Protocol (FTP), PPP, HTTP, SMTP, POP3, Remote Login (Telnet) and Internet, Wireless / Mobile Communication protocol such as GSM, GPRS and
  • Mobile Telecommunication Technologies: 1G, 2G, 3G, 4G and 5G; Mobile processors;

Electronic mail protocols such as SMTP, POP3, Protocols for Chat  and Video Conferencing: VoIP, Wireless technologies such as Wi-Fi and WiMax

  • Network Security Concepts:

Threats and prevention from Viruses, Worms, Trojan horse, Spams Use of Cookies, Protection using Firewall, https;

India IT Act, Cyber Law, Cyber Crimes, IPR issues, hacking.

  • Introduction To Web services: WWW, Hyper Text Markup Language (HTML), Extensible Markup Language (XML); Hyper Text Transfer Protocol (HTTP); Domain Names; URL; Website, Web browser, Web Servers; Web Hosting, Web Scripting – Client side (VB Script, Java Script, PHP) and Server side (ASP, JSP, PHP), Web 0 (for social networking)
  • E-commerce payment transactions using online banking, mobile banking, payment apps and

Unit III: Database Management

Database Concepts: Introduction to database concepts and  its  need.

Relational data model: Concept of domain, relation, tuple, attribute, degree, cardinality, key, primary key, candidate key, alternate key and foreign key;

Structured Query Language:

General Concepts: Advantages of using SQL, Data Definition Language and Data Manipulation Language;

Data Types: number / decimal, character / varchar / varchar2, date; SQL commands: CREATE TABLE, DROP TABLE, ALTER



SQL functions: SUM ( ), AVG ( ), COUNT ( ), MAX ( ) and MIN ( );

Joins: equi-join and natural join

Interface of Python with an SQL database

  • Connecting SQL with Python
  • Creating Database connectivity Applications
  • Performing Insert, Update, Delete queries
  • Display data by using fetchone(),fetchall(),rowcount

4.  Practical 



Area Marks


1 Lab Test:

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

2.    Small Python program that sends a SQL query to a database and displays the result. A stub

program can be provided.

2 Report file: Minimum 20 Python programs. Out of this at least 4 programs should  send  SQL commands to a database and retrieve the result 7
3 Project (that uses the concepts that have been learnt

in Class 11 and 12)

4 Viva voce 3


  1. Suggested Practical List:

Python Programming

  • Recursively find the factorial of a natural
  • Write a recursive code to find the sum of all elements of a
  • Write a recursive code to compute the nth Fibonacci
  • 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
  • Create a binary file with name and roll number. 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 marks. Input a roll number and update the
  • Remove all the lines that contain the character `a’ in a file and write it to another file.
  • Write a random number generator that generates random numbers between 1 and 6 (simulates a dice).
  • Write a Python program to implement a stack and queue using a list data-structure.
  • Take a sample of ten phishing e-mails (or any text file) and find most commonly occurring word(s)


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 the MySQL


6.  Project

The aim of the class project is to create something that is tangible and useful using Python / Python and 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 sensitized to avoid plagiarism and violations of copyright issues while working on projects. Teachers should take necessary measures for this.