Differentiate LAN and WAN.
A LAN covers a small area such as an office; a WAN covers a large area and connects LANs.
Free chapter-wise short notes for the PECTAA Class 12 Computer Science and Entrepreneurship textbook. Learn concepts in easy English, review key definitions, study Python examples, and prepare with short and long questions and quick revision summaries.
Choose a chapter to jump to its notes. Each chapter includes a simple summary, definitions, short and long questions, key points and quick revision.
Network types, topologies, devices, reference models, IP addressing and protocols
A computer network is a group of connected devices that share data and resources such as files, printers and an internet connection. Networks help people communicate, save cost and centralize data.
| Type | Full form | Typical area |
|---|---|---|
| PAN | Personal Area Network | Around one person, e.g. phone with earbuds |
| LAN | Local Area Network | Room, home, school or office |
| MAN | Metropolitan Area Network | A city or large campus |
| WAN | Wide Area Network | Countries or continents; the Internet is the largest example |
A topology is the layout of a network.
The OSI model has seven layers: Physical, Data Link, Network, Transport, Session, Presentation and Application. The TCP/IP model groups them into four: Network Access, Internet, Transport and Application. Layers divide the work so each one has a clear job.
An IP address identifies a device on a network. IPv4 uses 32 bits (e.g. 192.168.1.10); IPv6 uses 128 bits. A protocol is an agreed set of rules for communication.
A network connects devices so they can share data and resources. Networks are classified by size (PAN, LAN, MAN, WAN) and arranged in topologies such as bus, star, ring, mesh and tree. Switches and routers move data, layered models (OSI and TCP/IP) divide communication into tasks, IP addresses identify devices and protocols set the rules.
| Term | Easy definition |
|---|---|
| Network | Connected devices that share data and resources. |
| Topology | The physical or logical layout of a network. |
| Protocol | A set of rules for communication between devices. |
| IP address | A number that identifies a device on a network. |
| DNS | A service that maps domain names to IP addresses. |
A LAN covers a small area such as an office; a WAN covers a large area and connects LANs.
It connects different networks and forwards packets towards their destination.
They split communication into smaller tasks so each layer can be understood and developed separately.
In a star topology every device connects to a central switch or hub. Advantages: easy to add devices, a faulty cable affects only one device, and management is simple. Disadvantages: if the central device fails the whole network stops, and more cable is needed than in a bus.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Know the network types, topologies, OSI/TCP-IP layers and common protocols with their purpose.
Decomposition, abstraction, algorithms, flowcharts, pseudocode and logic
Computational thinking is a way of solving problems so that a computer or a person can carry out the solution. Its main parts are:
An algorithm is a finite, ordered set of clear steps that solves a problem. It can be shown as plain steps, pseudocode (structured, language-neutral text) or a flowchart (symbols and arrows).
START
read a, b
sum = a + b
print sum
ENDA proposition is a statement that is either true or false. Logical operators combine propositions.
| A | B | A AND B | A OR B | NOT A |
|---|---|---|---|---|
| T | T | T | T | F |
| T | F | F | T | F |
| F | T | F | T | T |
| F | F | F | F | T |
Computational thinking breaks a problem into parts, finds patterns, ignores unnecessary detail and produces an algorithm. Algorithms can be written as pseudocode or drawn as flowcharts. Logic uses true/false propositions and operators (AND, OR, NOT); truth tables list every possible result.
| Term | Easy definition |
|---|---|
| Decomposition | Breaking a problem into smaller, manageable parts. |
| Abstraction | Focusing on essential details and hiding the rest. |
| Algorithm | A finite sequence of clear steps to solve a problem. |
| Pseudocode | Structured, human-readable description of an algorithm. |
| Truth table | A table showing the output of a logical expression for all inputs. |
Keeping only the important details of a problem and ignoring unnecessary ones.
Pseudocode uses text; a flowchart uses symbols and arrows.
A statement that is either true or false.
Take "make a school timetable". Decomposition splits it into subjects, teachers and rooms. Pattern recognition notices that every class follows the same weekly structure. Abstraction ignores unrelated details such as teachers’ hobbies. Algorithm design writes the steps for placing each lesson in a free slot.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Decompose, find patterns, abstract, then write the algorithm. Practise truth tables for AND, OR and NOT.
Classes, objects, attributes, methods and the four OOP principles
A class is a blueprint; an object is an instance created from it. Attributes store data and methods define behaviour. The __init__ method runs when an object is created, and self refers to the current object.
class Student:
def __init__(self, name, marks):
self.name = name
self.marks = marks
def show(self):
print(self.name, self.marks)
s1 = Student("Ayesha", 85)
s1.show()Output: Ayesha 85
class Animal:
def speak(self):
print("Sound")
class Dog(Animal):
def speak(self):
print("Bark")
Dog().speak()Output: Bark (the child method overrides the parent method).
OOP organizes a program around objects. A class defines attributes and methods; objects are created from it. Encapsulation protects data, abstraction hides complexity, inheritance reuses code and polymorphism lets one method name work in different ways.
| Term | Easy definition |
|---|---|
| Class | A blueprint for creating objects. |
| Object | An instance of a class. |
| Method | A function defined inside a class. |
| Inheritance | Acquiring features of a parent class in a child class. |
| Polymorphism | One interface, many forms of behaviour. |
It initializes a new object’s attributes when it is created.
A mechanism by which a child class reuses a parent class’s members.
A class is the design; an object is a real instance made from it.
Encapsulation groups data and methods and limits direct access. Abstraction exposes only what is needed. Inheritance lets a new class build on an existing one. Polymorphism lets different classes provide their own version of the same method.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Class = blueprint, object = instance. Remember encapsulation, abstraction, inheritance and polymorphism.
GUI concepts, widgets, layout and event handling
A Graphical User Interface lets users interact with a program through windows, buttons, text boxes and menus instead of typing commands. Common parts (widgets) include labels, entry boxes, buttons and checkboxes.
A GUI waits for events such as a click or key press. An event handler (callback) is the function that runs in response. A main loop keeps the window open and listens for events.
import tkinter as tk
def greet():
label.config(text="Hello, " + entry.get())
root = tk.Tk()
root.title("Greeting")
entry = tk.Entry(root)
entry.pack()
tk.Button(root, text="Greet", command=greet).pack()
label = tk.Label(root, text="")
label.pack()
root.mainloop()This example uses Python’s standard tkinter library.
A GUI lets users work with visual elements. Widgets are the building blocks, layout managers arrange them, and event handlers respond to user actions while the main loop keeps the program running. Good design is simple, consistent and checks input.
| Term | Easy definition |
|---|---|
| GUI | An interface that uses graphical elements such as windows and buttons. |
| Widget | A GUI element such as a button, label or entry box. |
| Event | An action such as a click or key press. |
| Event handler | A function that runs when an event occurs. |
| Main loop | A loop that keeps the window active and waits for events. |
A visual element of a GUI, such as a button or label.
A function that runs in response to an event.
It keeps the window open and continuously listens for events.
In event-driven programming the program does not run in a fixed order. It waits for events from the user, such as clicking a button. When an event occurs, the linked handler function runs, updates the interface if needed and control returns to the main loop.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Window → widgets → layout → event handlers → main loop.
Types of errors, testing levels and debugging techniques
| Error | Meaning | Example |
|---|---|---|
| Syntax error | Code breaks the language rules; program will not run | Missing colon after if |
| Runtime error | Error occurs while running | Dividing by zero |
| Logic error | Program runs but gives wrong output | Using + instead of * |
Testing checks whether software behaves as expected. A test case has an input and an expected output.
Debugging is finding and fixing the cause of an error. Useful techniques: read the error message and line number, add print() statements, use breakpoints and step through code, and test small parts separately.
Errors are syntax, runtime or logic errors. Testing finds defects using test cases at several levels; debugging finds and fixes their causes using error messages, print statements and debuggers. Retest after every fix.
| Term | Easy definition |
|---|---|
| Bug | A defect in a program. |
| Test case | An input with its expected output used to check a program. |
| Debugging | Locating and fixing the cause of a defect. |
| Unit testing | Testing a single function or module. |
| Breakpoint | A point where a debugger pauses execution. |
A syntax error breaks language rules and stops the program; a logic error lets it run but gives wrong results.
An input together with the output expected from the program.
Testing detects problems; debugging finds and fixes their causes.
Unit testing checks single functions. Integration testing checks that modules work together. System testing checks the whole program. Acceptance testing confirms the software meets user requirements.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Know the three error types, four testing levels and basic debugging steps.
Data, information, cleaning, descriptive statistics and visualization
Data is raw facts and figures; information is data that has been processed to be meaningful. Data may be structured (tables) or unstructured (text, images, video).
Mean = sum ÷ count; median = middle value of ordered data; mode = most frequent value; range = maximum − minimum.
Example: for 2, 4, 4, 6, 9 the mean is 5, the median is 4, the mode is 4 and the range is 7.
Use bar charts to compare categories, line charts for change over time, pie charts for parts of a whole and scatter plots for relationships between two variables. Label axes and give the chart a title.
Data becomes information after processing. Analysis follows a sequence: question, collection, cleaning, analysis and presentation. Mean, median, mode and range summarize data, and charts make patterns easy to see.
| Term | Easy definition |
|---|---|
| Data | Raw facts and figures. |
| Information | Processed data that has meaning. |
| Data cleaning | Removing errors, duplicates and missing values. |
| Median | The middle value of ordered data. |
| Visualization | Showing data as charts or graphs. |
Data is raw; information is processed data that is useful.
Wrong or missing data produces wrong results.
(10 + 20 + 30) ÷ 3 = 20.
First define the question, then collect relevant data. Clean the data to remove errors, analyse it using statistics or tools, and finally present findings with clear charts and conclusions.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Question → collect → clean → analyse → visualize. Remember mean, median, mode and range.
Null and alternative hypotheses, significance level, p-value and errors
A hypothesis is a testable claim about a population. Hypothesis testing uses sample data to decide whether the evidence supports or contradicts the claim.
| Error | Meaning |
|---|---|
| Type I | Rejecting H₀ when it is actually true |
| Type II | Failing to reject H₀ when it is actually false |
Hypothesis testing checks a claim using sample data. We assume the null hypothesis, calculate how likely the observed data would be, and compare the p-value with the significance level. A small p-value is evidence against H₀. Type I and Type II errors are the two possible mistakes.
| Term | Easy definition |
|---|---|
| Null hypothesis | The claim of no effect or no difference. |
| Alternative hypothesis | The claim that an effect or difference exists. |
| Significance level (α) | The probability of a Type I error that we accept. |
| p-value | The probability of results at least as extreme as observed, if H₀ is true. |
| Type I error | Rejecting a true null hypothesis. |
A statement of no effect or no difference that is tested.
When the p-value is less than or equal to the significance level.
Type I rejects a true H₀; Type II fails to reject a false H₀.
State H₀ and H₁, choose α, collect data and compute the test statistic and p-value, compare p with α to reject or not reject H₀, and finally write the conclusion in simple words.
These are revision questions based on chapter concepts, not guaranteed examination questions.
H₀ vs H₁ → choose α → compute p-value → decide → conclude.
How computer science is applied in education, health, business, government and science
Computer science is used wherever data must be stored, processed or automated. Its applications make work faster, more accurate and more accessible.
| Area | Examples |
|---|---|
| Education | E-learning platforms, online exams, digital libraries |
| Healthcare | Patient records, medical imaging, telemedicine |
| Business | Online shopping, banking apps, inventory and accounting systems |
| Government | Digital identity, online tax and service portals |
| Science and engineering | Simulation, modelling, data analysis |
| Artificial intelligence | Speech recognition, recommendations, image recognition |
Benefits include speed, automation and wider access. Responsibilities include protecting privacy, keeping systems secure and using technology ethically.
Computer science supports almost every field, from education and healthcare to business, government and science. Applications bring speed and convenience, but they also require attention to privacy, security and ethical use.
| Term | Easy definition |
|---|---|
| Application | A use of computing to solve a real-world task. |
| Automation | Performing tasks with minimal human effort. |
| Telemedicine | Providing medical consultation remotely using technology. |
| E-commerce | Buying and selling goods or services online. |
Education, healthcare and business.
Buying and selling goods or services over the Internet.
Because applications store personal data that must be protected from misuse.
Applications improve speed, accuracy and access to services such as learning and healthcare. They also raise concerns such as privacy, security and job changes, so they must be used responsibly.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Learn examples for each field and the benefits and concerns of computer applications.
Threats, the CIA triad, authentication, encryption and safe collaboration
Cybersecurity is protecting systems, networks and data from attack or misuse. Its core goals are the CIA triad:
| Threat | Meaning | Protection |
|---|---|---|
| Malware | Harmful software such as viruses and ransomware | Trusted software, updates, antivirus |
| Phishing | Fake messages that steal information | Check sender and links |
| Weak passwords | Easy-to-guess credentials | Long, unique passwords and MFA |
| Data loss | Information deleted or lost | Regular backups |
Authentication confirms identity (password, OTP, biometrics); multi-factor authentication (MFA) uses two or more proofs. Encryption converts data into unreadable form for anyone without the key. A firewall filters network traffic.
Cybersecurity protects confidentiality, integrity and availability. Malware, phishing and weak passwords are common threats; strong passwords, MFA, encryption, firewalls, updates and backups reduce risk. Safe collaboration means controlling access, using trusted tools and respecting others’ rights.
| Term | Easy definition |
|---|---|
| Cybersecurity | Protection of systems, networks and data from attacks. |
| Phishing | A trick that uses fake messages to steal information. |
| Encryption | Converting data into unreadable form using a key. |
| MFA | Authentication that needs two or more proofs of identity. |
| Firewall | A system that filters network traffic. |
Confidentiality, integrity and availability.
A deceptive attempt to steal information using fake messages or sites.
A stolen password alone is not enough to access the account.
Use trusted platforms, protect accounts with strong passwords and MFA, share files with correct permissions only, never share passwords or codes, verify links, keep backups and respect copyright and privacy.
These are revision questions based on chapter concepts, not guaranteed examination questions.
Know the CIA triad, common threats with protections, and safe collaboration habits.
After reading the notes, practise the quiz and review any concepts you missed.
Textbook reference: PECTAA Class 12 Computer Science and Entrepreneurship, 2026–27. Notes are original explanations organized by the textbook’s chapter sequence. They do not reproduce the textbook, and exact subtopics and exercises should be checked in the book.