Computer Science Part 2 – Notes & Summary
Maharashtra State Board – Class 12
Compiled Notes for TPS Upload and Revision
1. Python Basics
Python is a high-level, interpreted programming language used for general-purpose programming.
It is known for its simplicity and readability. It supports object-oriented, procedural, and functional
programming paradigms.
**Key Concepts:** Variables: Used to store data values (e.g., x = 10). Data Types: int, float, string,
list, tuple, dictionary, etc. Control Structures: if, else, elif, while, for loops. Functions: Defined
using def keyword to reuse code. Input/Output: input() for user input, print() for output.
2. Database Management System (DBMS)
A Database Management System (DBMS) is software that helps to create, manage, and operate
databases efficiently. It allows users to store, modify, and extract information from a database.
**Key Terms:** Data: Raw facts and figures. Database: Organized collection of related data.
Primary Key: Unique identifier for records in a table. Foreign Key: Links data between two tables.
Normalization: Process to reduce redundancy and improve data integrity.
3. HTML & CSS
HTML (HyperText Markup Language) is used to create the structure of a webpage, while CSS
(Cascading Style Sheets) is used to style and format the webpage.
**Basic HTML Tags:** <html>: Root element of a webpage. <head>: Contains metadata like title.
<body>: Contains visible page content. <h1> to <h6>: Headings. <p>: Paragraph tag. **CSS
Syntax Example:** p { color: blue; font-size: 16px; }
4. C++ Functions & Arrays
**Functions:** Functions are blocks of code designed to perform a particular task. They make
programs modular and reusable.
**Example:** int add(int a, int b) { return a + b; } **Arrays:** Arrays store multiple elements of the
same data type under one variable name.
**Example:** int marks[5] = {90, 85, 78, 92, 88};
5. Cyber Safety
Cyber Safety refers to practices that protect users from online threats such as viruses, malware,
and phishing. It ensures safe and responsible use of the internet.
**Important Topics:** Viruses and Malware: Harmful software that can damage data. Phishing:
Fake emails or websites to steal information. Password Security: Use strong, unique passwords.
Data Privacy: Avoid sharing personal information publicly. Cyber Ethics: Respect privacy, avoid
plagiarism and piracy.