0% found this document useful (0 votes)
28 views2 pages

PDF 5

This document discusses key concepts in computer science including functions, file handling, data structures like stacks, and computer networks. It also covers database management concepts like the relational data model, SQL, and connecting Python to SQL databases. The learning outcomes are to apply functions, handle files, use stacks, understand networks, and work with databases and SQL from Python. Practical assessments include Python programs, SQL queries, and a semester-long project applying concepts from classes 11 and 12.

Uploaded by

raj thoughtzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

PDF 5

This document discusses key concepts in computer science including functions, file handling, data structures like stacks, and computer networks. It also covers database management concepts like the relational data model, SQL, and connecting Python to SQL databases. The learning outcomes are to apply functions, handle files, use stacks, understand networks, and work with databases and SQL from Python. Practical assessments include Python programs, SQL queries, and a semester-long project applying concepts from classes 11 and 12.

Uploaded by

raj thoughtzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

parameters, positional parameters, function returning value(s), flow of execution, scope Computer Science

of a variable (global scope, local scope)


Exception Handling: Introduction, handling exceptions using try-except-finally blocks CLASS-XII
Introduction to files, types of files (Text file, Binary file, CSV file), relative
and absolute paths Code No. 083
Text file: opening a text file, text file open modes (r, r+, w, w+, a, a+), closing a text 2023-24
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 1. Prerequisites
and tell methods, manipulation of data in a text file Computer Science- Class XI
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, 2. Learning Outcomes
read, write/create, search, append and update operations in a binary file Student should be able to
CSV file: import csv module, open / close csv file, write into a csv file using
writer(),writerow(),writerows() and read from a csv file using reader() a) apply the concept of function.
Data Structure: Stack, operations on stack (push & pop), implementation of stack
b) explain and use the concept of file handling.
using list.
c) use basic data structure: Stacks
d) explain basics of computer networks.
Unit II: Computer Networks
e) use Database concepts, SQL along with connectivity between Python and SQL.
Evolution of networking: introduction to computer networks, evolution of networking
(ARPANET, NSFNET, INTERNET)
Data communication terminologies: concept of communication, components of data
3. Distribution of Marks:
communication (sender,receiver, message, communication media, protocols),
measuring capacity of communication media (bandwidth, data transfer rate), IP
address, switching techniques (Circuit switching, Packet switching)
Unit No. Unit Name Marks Periods
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, Theory Practical
Gateway, WIFI card)
Network topologies and Network types: types of networks (PAN, LAN, MAN, WAN),
networking topologies (Bus, Star, Tree) I Computational Thinking and 40 70 50
Network protocol: HTTP, FTP, PPP, SMTP, TCP/IP, POP3, HTTPS, TELNET, VoIP Programming 2
Introduction to web services: WWW, Hyper Text Markup Language (HTML),
Extensible Markup Language (XML), domain names, URL, website, web browser, II Computer Networks 10 15
web servers, web hosting
III Database Management 20 25 20
Unit III: Database Management
Database concepts: introduction to database concepts and its need
Total 70 110 70
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 4. Unit wise Syllabus
database, show tables, create table, describe table, alter table (add and remove an Unit I: Computational Thinking and Programming 2
attribute, add and remove primary key), drop table, insert, delete, select, operators
(mathematical, relational and logical), aliasing, distinct clause, where clause, in, Revision of Python topics covered in Class XI.
between, order by, meaning of null, is null, is not null, like, update command, delete Functions: types of function (built-in functions, functions defined in module, user
command, aggregate functions (max, min, avg, sum, count), group by, having clause, defined functions), creating user defined function, arguments and parameters, default
Write a Python program to implement a stack using list. joins: cartesian product on two tables, equi-join and natural join
Create a CSV file by entering user-id and password, read and search the password for Interface of python with an SQL database: connecting SQL with Python, performing
given userid. insert, update, delete queries using cursor, display data by using connect(), cursor(),
execute(), commit(), fetchone(), fetchall(), rowcount, creating database connectivity
Database Management
applications, use of %s format specifier or format() to perform queries
Create a student table and insert data. Implement the following SQL commands on the
5. Practical
student table:
o ALTER table to add new attributes / modify data type / drop attribute
S.No Unit Name Marks
o UPDATE table to modify data (Total=30)
o ORDER By to display data in ascending / descending order
o DELETE to remove tuple(s)
1 Lab Test: 8
o GROUP BY and find the min, max, sum, count and average
1. Python program (60% logic + 20%
Similar exercise may be framed for other cases. documentation + 20% code quality)
Integrate SQL with Python by importing suitable module.
2. SQL queries (4 queries based on one or 4
7. Suggested Reading Material two tables)
NCERT Textbook for COMPUTER SCIENCE (Class XII)
Support Materials on the CBSE website. 2 Report file: 7
Minimum 15 Python programs.
8. Project SQL Queries Minimum 5 sets using
The aim of the class project is to create something that is tangible and useful using Python one table / two tables.
file handling/ Python-SQL connectivity. This should be done in groups of two to three Minimum 4 programs based on Python -
students and should be started by students at least 6 months before the submission SQL connectivity
deadline. The aim here is to find a real world problem that is worthwhile to solve.
3 Project (using concepts learnt in Classes 11 8
Students are encouraged to visit local businesses and ask them about the problems that and 12)
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 4 Viva voce 3
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
6. Suggested Practical List:
should know how to teach themselves.
Python Programming
The students should be sensitized to avoid plagiarism and violations of copyright issues while
working on projects. Teachers should take necessary measures for this. 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 file.
Remove all the lines that contain the character 'a' in a file and write it to another file.
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 marks.
Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).

You might also like