📚 Computer Science Study Guide
Brief Overview
This note covering computer science fundamentals was created from a PDF of 168‑page
study notes. The content examines computer history, evolutionary stages, and modern
applications through a historical lens and practical relevance.
Key Concepts
Computer architecture and its applications
Understanding software engineering principles in practice
Algorithmic complexity for problem solving
📚 Preface & Learning Outcomes
Students Learning Outcomes (SLOs) – Measurable instructional goals that guide each
unit, focusing on critical thinking, creativity, analysis, and self‑learning.
Textbook aligned with Computer Science Curriculum 2018 (Sindh Board).
Emphasizes performance‑based skill development and discourages rote
learning.
Includes formative & summative assessments linked to SLOs.
🕰️ Evolution of Computers
Era Time Period Core Representative Typical Use
Technology Machines
Mechanical 3000 B.C. – Manual devices Abacus, Basic
Era (Dark 1642 A.D. (abacus, Napier’s arithmetic,
Age) Napier’s Bones, Slide multiplication/div
Bones, slide Rule,
rule, Pascaline, Pascaline,
Leibniz’s Leibniz’s
calculator) Calculator
Electro‑Mechanical1822 – 1940 Steam & early Herman Census data
Era (Middle electricity, Hollerith’s processing,
Age) tabulating Tabulating scientific
machines Machine, calculations
Babbage’s
Difference &
Analytical
Engines
Electronic Era 1940 – present Vacuum tubes ENIAC, Scientific
(Modern Age) → transistors → UNIVAC, research,
integrated First‑generation business,
circuits (IC) → vacuum‑tube general‑purpose
microprocessors computers computing
Generation
Summary
1st 1940‑1956 Vacuum tubes Large, Scientific &
machine‑language research batch
only processing
2nd 1956‑1963 Transistors Smaller, faster, Time‑sharing,
introduction of real‑time
GUIs systems
3rd 1964‑1971 Integrated High‑level Expanded to
Circuits (IC) languages databases,
(Pascal, industrial
COBOL) control
4th 1971‑present Microprocessors Personal Everyday
computers, personal &
widespread OS business use
5th (Present & – AI, Robotics, Intelligent
Beyond) self‑learning, Natural systems,
advanced Language expert
parallelism Processing, applications
Deep Learning
🖥️ Classification of Computers
Classification Basis Examples Typical
Applications
By Size Super, Mainframe, Super‑computers, High‑performance
Minicomputer, IBM 360, DEC VAX, scientific tasks,
Microcomputer, PC, Analog‑Digital multi‑user
Hybrid hybrids enterprise, personal
work, mixed
analog‑digital
processing
By Purpose General‑purpose Desktops, laptops Broad computing
vs. Special‑purpose (GP); ATMs, vs. dedicated task
traffic‑light execution
controllers (SP)
By Technology / Analog, Digital, Speedometer Continuous physical
Data Type Hybrid (Analog), PC measurements,
(Digital), Combined standard
measurement computing,
systems (Hybrid) mixed‑signal
processing
⚙️ Computer Hardware Overview
Hardware – The tangible physical components of a computer system (e.g.,
motherboard, CPU, memory, peripherals).
📦 System Unit
Houses motherboard, CPU, RAM, ROM, expansion slots, and power supply.
Acts as the core processing hub.
🧩 Motherboard
Main printed circuit board (PCB) connecting all components.
Contains CPU socket, memory slots, chipsets, ports, and buses.
🔢 Microprocessor (CPU) Architecture
Component Function
Arithmetic Logic Unit (ALU) Performs arithmetic (add, subtract,
multiply, divide) and logical operations.
Control Unit (CU) Directs data flow, interprets instructions,
manages timing (like a traffic policeman).
Registers Small, fast storage for immediate data and
instruction handling (8‑, 16‑, 32‑, 64‑bit).
Cache Internal (L1/L2) & external (L3) memory
for rapid access to frequently used data.
Buses Control Bus, Data Bus, Address Bus –
transport commands, data, and memory
addresses.
Clock speed measured in MHz or GHz determines how many cycles per second
the CPU executes.
⏱️ Input Devices
Text‑entering: Keyboard (scan code → CPU).
Pointing: Mouse, trackball, joystick, touchpad.
Image Scanners: OCR, OMR, barcode readers.
Audio Input: Microphone (voice → digital audio).
Touch Screens: Direct finger input on display.
📺 Output Devices
Type Description
Soft‑copy Monitors (CRT, Flat‑Panel), projectors,
speakers (audio).
Hard‑copy Printers (impact, non‑impact), plotters
(large‑format).
Special Speech synthesis for visually impaired.
💾 Storage Devices
Primary (volatile): RAM – fast, loses data when power off.
Primary (non‑volatile): ROM – permanent firmware.
Secondary (large capacity): Hard Disk, CD/DVD, SD Card, USB flash drive –
retain data permanently.
🖱️ Basic Operations of a Computer
A computer performs four fundamental operations: input, processing, output, and
storage.
1. Input – Data entered via keyboards, mice, scanners, etc.
2. Processing – CPU executes arithmetic & logical instructions (ALU) under CU
control.
3. Output – Results displayed on monitors, printed, or played through speakers.
4. Storage – Temporary (RAM/ROM) or permanent (hard disk, SSD) holding of
data.
🛠️ System & Application Software
System Software
Operating System (OS) – Manages hardware resources, provides user
interface (e.g., Windows, Linux).
Device Drivers – Translate OS commands to hardware actions; enable
plug‑and‑play.
Utility Programs – Perform maintenance tasks (e.g., antivirus).
Application Software
Programs for specific tasks: word processing, spreadsheets, databases,
multimedia, games.
Examples: Office suites, web browsers, media players, educational software.
👔 Career Paths in IT
Role Core Responsibilities Typical Industries
Software Engineer Design, code, test software IT services, gaming,
applications (games, LMS, education.
business apps).
Network Administrator Install, maintain, upgrade Enterprises, ISPs, schools.
network hardware &
software; ensure
connectivity.
Database Administrator Secure, optimize, back up Banking, e‑commerce,
(DBA) databases; ensure data healthcare.
integrity.
Web Designer Create and maintain Marketing, media, startups.
website layouts, graphics,
and user experience.
Graphic Designer Develop visual content for Advertising, publishing,
print and digital media. multimedia.
Information Security Protect networks, monitor Finance, government, tech
Analyst for threats, implement firms.
security policies.
IT/Computer Science Instruct students on Schools, colleges, training
Teacher hardware, software, and centers.
emerging technologies.
🌐 Role of Computers in Modern Life
Computers are integral to education, business, healthcare, entertainment, and daily
utilities.
Communication: Email, social media, video conferencing.
Transportation: GPS navigation, ride‑hailing apps.
Finance: Online banking, ATMs, digital wallets.
Healthcare: Diagnostic imaging, patient record systems.
Entertainment: Streaming, gaming, 3D graphics.
📖 Additional Resources
Weblinks – Provided at the end of each textbook chapter for deeper
exploration of concepts.
Activities – Inquiry‑based exercises encourage self‑learning and creative
problem solving.
End of segment.
📂 Application Software Overview
Types of Application Software
Application software are programs that help users accomplish specific tasks such as
creating documents, managing data, or providing entertainment.
Productivity Software – tools for documents, spreadsheets, presentations, and
databases (e.g., MS Office).
Business Software – applications that manage billing, inventory, and other
business functions.
Entertainment Software – programs designed for amusement, the most
common being video games.
Educational Software – software used in schools to teach or reinforce learning
of various subjects.
Language Translators – programs that convert high‑level code into machine
language; includes assembler, compiler, and interpreter.
Representative Examples
Category Typical Programs Primary Use
Productivity MS Word, MS Excel, MS Creating/formatting
PowerPoint, MS Access, documents, data analysis,
MS Outlook presentations, databases,
email
Business Billing systems, inventory Streamlining commercial
management, database operations
management
Entertainment Video games Providing amusement and
hobby fulfillment
Educational Subject‑specific teaching Enhancing student
tools knowledge
Language Translators Assembler, Compiler, Translating
Interpreter human‑readable code to
machine language (0s and
1s)
🛠️ Utility Programs
Utility programs are a subset of application software that manage, maintain, and
control computer resources.
Disk Cleaner – removes unnecessary files to free space.
Disk Defragmenter – reorganizes file fragments on a hard drive to improve
performance.
Antivirus Software – scans for and protects against viruses and other harmful
files.
Device Drivers – act as translators between the operating system and
hardware devices, enabling plug‑and‑play functionality.
🖥️ Operating System Fundamentals
An operating system (OS) is system software that performs basic tasks such as
booting, resource allocation, and providing interfaces for users and applications.
Core Functions
1. Booting – initializes hardware and loads the OS.
2. Resource Management – allocates and de‑allocates CPU, memory, and other
resources.
3. Memory Management – handles dynamic allocation of RAM to processes.
4. Process Management – creates, schedules, and terminates processes.
5. I/O Management – controls peripheral devices via device drivers.
6. File Management – organizes, stores, retrieves, and protects files.
7. User Management – controls user access to system resources.
8. Language Translators – includes assemblers, compilers, and interpreters that
turn code into machine language.
Common Operating Systems
DOS, Windows, Linux, Android, macOS – examples of widely used OS
families.
🖱️ User Interfaces
Command Line Interface (CLI)
A CLI displays a text prompt where users type commands; it requires memorization of
syntax but consumes minimal system resources.
Pros: fast, low overhead.
Cons: steep learning curve.
Graphical User Interface (GUI)
A GUI presents visual objects (menus, icons, buttons) that users manipulate with a
mouse or touch.
Pros: intuitive, reduces need to remember commands.
Cons: higher memory and CPU usage.
🖧 Types of Operating Systems
OS Type Typical Use Key Characteristics
Single‑User Personal computers One user at a time;
examples: early Windows,
DOS.
Multi‑User Servers, workstations Multiple simultaneous
users; examples: Linux,
UNIX.
Batch Processing Mainframes, large data Executes groups of jobs
jobs with minimal interaction.
Time‑Sharing Multi‑user environments Allocates short CPU time
slices (quantum) to each
task.
Real‑Time – Hard Missile guidance, air‑traffic Guarantees task
control completion within strict
deadlines.
Real‑Time – Soft Online transaction systems, Deadlines are important
multimedia but not absolutely critical.
🖨️ Computer Generations
Generation Period Core Technology
1st 1940‑1956 Vacuum tubes, MHz‑range
clock speeds
2nd 1956‑1963 Transistors, 8‑bit to 32‑bit
registers
3rd 1964‑1971 Integrated Circuits (ICs)
4th 1971‑Present Microprocessor ICs with
internal & external cache
5th Present & beyond Artificial Intelligence,
advanced parallel
architectures
📦 Hardware Overview
Motherboard Components
CPU (Microprocessor) – contains ALU, Control Unit, registers, cache, and three
buses (control, data, address).
Slots & Ports – connect expansion cards and peripherals.
RAM & ROM – primary storage; RAM is volatile, ROM is non‑volatile.
Buses – pathways for data, addresses, and control signals.
Storage Devices
Primary Storage – RAM, ROM (fast, temporary).
Secondary Storage – Hard disk, SSD, USB flash drive, SD card (larger capacity,
permanent).
📥 Software Installation Procedures
Installing Windows OS
1. Insert Windows installation media (DVD/USB) and restart the computer.
2. Enter BIOS/UEFI (press Del or F2) and set the boot order to the installation
source.
3. Follow on‑screen prompts: accept license, choose installation drive, optionally
format the partition.
4. Complete setup and configure initial user account.
Installing MS Office (Office Automation)
1. Run the Office installer from USB, DVD, or downloaded file.
2. Choose Upgrade or Custom installation.
3. Accept the license agreement and select the desired Office apps (Word, Excel,
PowerPoint, Access, Outlook).
4. Enter the product key, click Install Now, and wait for completion.
Installing Antivirus Software
1. Download a free antivirus (e.g., AVG, Avast, Avira, Kaspersky).
2. Execute the installer, follow prompts, and allow the program to update its virus
database.
📝 MS Word Page Layout Features
Group Function Hotkey
Themes Apply preset colors, fonts, —
and effects to the whole
document
Page Setup Set margins, orientation, Alt+P+M (Margins),
and paper size Alt+P+O (Orientation),
Alt+P+S+Z (Size)
Page Breaks Insert page, section, or Alt+P+B
column breaks
Background Add watermark, page color, Alt+P+W (Watermark),
or page border Alt+P+C (Page Color),
Alt+P+B (Page Border)
Paragraph Adjust indentations, line Alt+P+I+L (Indent Left),
spacing, and alignment Alt+P+I+R (Indent Right),
Alt+P+A+A (Align)
Arrange Position, wrap text, and Alt+P+P+O (Position),
order objects (bring Alt+P+T+W (Wrap Text),
forward/send backward) Alt+P+A+F (Bring
Forward), Alt+P+A+E
(Send Backward)
Common Layout Tasks
Margins – control the blank space around page content.
Orientation – switch between portrait (vertical) and landscape (horizontal).
Columns – split text into multiple vertical sections.
Line Numbers – display numbers on the left margin (Alt+P+L+N).
Hyphenation – automatically hyphenate words to improve justification
(Alt+P+H).
📚 Additional Reference Items
Device Driver – software that translates OS commands into hardware‑specific
signals, enabling plug‑and‑play.
Language Translator Types
Type Translation Method
Assembler Translates assembly language to
machine code line‑by‑line.
Compiler Converts entire high‑level program to
machine code before execution.
Interpreter Translates high‑level code to
machine instructions during runtime.
Real‑Time Systems – distinguish Hard (strict deadlines) from Soft (flexible
deadlines).
End of appended study guide section.
📄 MS Word – Language Settings & Table of Contents
Changing default language
1. Open File → Options.
2. Select the Language tab.
3. Choose the desired language (e.g., Urdu, Sindhi) and add it via
Regional Settings in Windows Control Panel.
4. Adding a language also installs its keyboard layout, enabling typing in
that language.
Creating a Table of Contents (ToC)
Automatic Table – generated from heading styles.
Manual Table – user‑defined entries.
Customized Table – based on specific heading levels or other
requirements.
Steps:
1. Go to the References tab.
2. Click the Table of Contents button (first option).
3. Choose an automatic style or select Custom Table of
Contents to adjust formatting, show/hide page numbers,
etc.
A Table of Contents is an organized listing of document sections, headings, and page
numbers.
📊 MS Excel – User Interface, Sorting, Formulas, Charts
🖥️ User Interface Elements
Area Description
Quick Access Toolbar Holds frequently used commands.
Title Bar Displays the workbook name.
File Tab Accesses backstage view (open, save,
options).
Ribbon Groups commands into tabs (Home,
Insert, Data, etc.).
Status Bar Shows information like zoom level, mode.
Worksheet Area Grid of rows and columns where data is
entered.
Zoom Slider Adjusts view magnification.
🔀 Sorting Data
Purpose: Reorder data based on criteria such as size, value, or alphabetic order.
Procedure (example with product list):
1. Select the entire data range.
2. Open the Data tab → Sort.
3. In the Sort dialog, choose the column (e.g., Product) and order
A‑to‑Z.
4. Click OK; the rows are rearranged accordingly.
➕ Formulas
All formulas start with the equal sign = and are entered in the Formula Bar.
Basic arithmetic example:
To add values in cells A2 (220) and B2 (87):
=A2+B2 → result: 307
Using cell references:
In cell C2, type =A2+B2 and press Enter; the sum appears in C2.
SUM function (range):
=SUM(B2:E2) adds all numbers from B2 through E2.
Formulas tell Excel which calculation to perform on the data.
📈 Charts
Why use charts? Graphical representation makes trends and comparisons
clearer than raw tables.
Common chart types: Bar, Column, Line, Pie.
Creating a chart:
1. Select the data range (including headers).
2. Click the Insert tab → choose a chart type.
3. The chart appears; modify titles, axes, and styles as needed.
Example – Monthly Temperature (Larkana, 2018):
Data table (Month, Temp °C) can be plotted as a Line Chart to show
seasonal variation, or a Bar Chart to highlight hottest and coldest
months.
📡 Data Communication Fundamentals
🗂️ Basic Terminology
Data – collection of raw facts and figures (text, numbers, images, etc.).
Digital Signal – discrete electrical signal representing bits (0 or 1).
Analog Signal – continuously varying signal (e.g., sound wave).
Data Communication – transfer of data between sender and receiver via a transmission
medium.
⚡ Analog vs. Digital Signals
Feature Analog Digital
Nature Continuous waveform Discrete steps (binary)
Representation Sine wave, amplitude Square wave, each level = 0
varies or 1
Noise Susceptibility Higher (signal degrades) Lower (error
detection/correction)
Typical Uses Voice, audio, video Computer data, networking
📊 Data Rate & Baud Rate
Bit Rate (Data Rate) – bits transferred per second (bps).
Baud Rate – number of signal changes (symbols) per second.
Relationship:
Bit Rate = Baud Rate × (bits per symbol)
Bit Rate
Baud Rate =
(bits per symbol)
Example: If a channel transmits 1200 symbols/s and each symbol encodes 2
bits, then
Bit Rate = 1200 × 2 = 2400 bps
📉 Signal‑to‑Noise Ratio (SNR)
SNR measures the level of the desired signal relative to background noise, usually
expressed in decibels (dB).
Psignal
SNR (dB) = 10 log !( )
10
Pnoise
Higher SNR → clearer transmission.
📡 Transmission Media
Guided (Wired) Media
Type Description Typical Use
Unshielded Twisted Pair Twisted copper wires, no Telephone, Ethernet
(UTP) shielding; inexpensive, (10/100 Mbps).
easy to install.
Shielded Twisted Pair Twisted pair with metallic High‑speed Ethernet,
(STP) shielding; reduces external voice‑data combos.
interference.
Coaxial Cable Central conductor + Cable TV, broadband
insulating layer + braided internet.
shield.
Fiber‑Optic Cable Glass or plastic core Long‑distance,
transmitting light via total high‑bandwidth
internal reflection. backbones.
Unguided (Wireless) Media
Type Frequency Range Characteristics
Radio Waves kHz–GHz Omnidirectional, penetrate
walls, used for Wi‑Fi,
cellular.
Microwaves GHz Line‑of‑sight, require
antenna alignment, used
for satellite &
point‑to‑point links.
Infrared THz Short range, line‑of‑sight,
used for remote controls,
some LANs.
⚙️ Transmission Impairments
Impairment Cause Effect
Attenuation Signal loss due to Reduced signal strength;
resistance of the medium mitigated with amplifiers.
Distortion Different frequency Waveform shape changes;
components travel at leads to errors.
different speeds
Noise External electromagnetic Random fluctuations that
sources, thermal noise, can corrupt data.
crosstalk
📱 Communication Devices
🔀 Switch
Connects multiple devices (computers, printers, etc.) within a LAN.
Uses MAC addresses to forward frames only to the appropriate destination
port.
🌐 Router
Links two or more networks (e.g., LAN to Internet).
Determines optimal path for packets (routing) and performs address
translation.
📡 Modem Types
Modem Function Typical Use
Dial‑up Converts digital data to Low‑speed Internet
analog tones over (≤56 kbps).
telephone lines.
DSL Uses higher frequencies on Broadband (up to several
the same phone line for Mbps).
simultaneous voice & data.
ISDN Digital transmission over Faster than dial‑up, before
ordinary telephone lines; widespread broadband.
carries voice, data, video
concurrently.
💻 Network Interface Card (NIC)
Hardware that provides a physical connection between a computer and a
network medium (copper, fiber, or wireless).
May be built‑in on modern motherboards or added as an expansion card.
🌐 Computer Networks
Types of Networks
Network Geographic Scope Typical Speed Example
LAN (Local Area Single building or Up to 10 Gbps Office, school
Network) campus computer labs.
MAN City‑wide 10 Mbps–1 Gbps University
(Metropolitan campuses, city
Area Network) government.
WAN (Wide Area Regional to global Varies (DSL to Internet,
Network) fiber) multinational
corporations.
A computer network is a group of computers and related equipment that share
resources and information.
Components of a Communication System
Component Role
Message Information to be transmitted (text, audio,
video).
Sender Device that generates and sends the
message (computer, phone).
Receiver Device that receives and interprets the
message.
Medium Physical or wireless path (cable, radio
wave).
Protocol Set of rules governing data exchange
(TCP/IP, HTTP).
📚 Quick Reference Tables
Analog vs. Digital Signal Comparison
Aspect Analog Digital
Continuity Continuous Discrete
Representation Varying voltage/current Binary bits (0/1)
Noise Impact Cumulative distortion Mostly error‑detectable
Typical Example Human voice Computer data
Guided vs. Unguided Media
Category Examples Pros Cons
Guided UTP, STP, Coaxial, Controlled path, Installation cost,
Fiber‑Optic security physical damage
possible
Unguided Radio, Microwave, Mobility, no cables Interference,
Infrared needed line‑of‑sight
constraints
(microwave)
🧮 Sample Formulas for Excel Exercises
Total of three cells: =B2+C2+D2
Sum of a range: =SUM(B2:E2)
Percentage of total (assuming total in B5 = 400): =(B2+B3+B4)/$B$5 \times
100
Multiplying 37 by 15:
1. In any cell, type =37 \times 15.
2. Press Enter → result 555.
📑 Frequently Asked Questions (Extracted from
Transcript)
Question Correct Answer
Software for accounting? MS Excel
Software for formatting a document? MS Word
Symbol that starts a formula in Excel? =
Function that rearranges data by criteria? Sorting
Chart type to show share of three Pie Chart (visual share)
partners?
Most important step for automatic ToC? Properly define heading levels
Device that connects multiple networks? Router
Media that blocks external interference? Shielded Twisted Pair (STP)
Definition of “Noise” in transmission? Unwanted signal that mixes with the
original signal, degrading quality.
These notes compile all factual content from the lecture transcript, ready for exam
preparation.
Types of Computer Networks 🌐
Computer network – a group of computers and related equipment connected by
communication links to share data and other resources.
Network Type Typical Typical Media Example Use
Geographic Scope
LAN (Local Area Single building, Twisted‑pair, Office printers, file
Network) room, home, Ethernet, Wi‑Fi server
laboratory
MAN (Metropolitan City, college Fiber, microwave University campus
Area Network) campus, small links inter‑department
region links
WAN (Wide Area Multiple cities, Satellite, International
Network) provinces, countries microwave, corporate offices,
telecommunication research
links collaborations
LAN: inexpensive hardware (hubs, switches, network adapters, cables); shares
internet access, storage, printers.
MAN: connects several LANs, fast but costly; used by large telecom businesses,
universities.
WAN: long‑distance transmission; may include multiple MANs and LANs;
requires dedicated, often expensive devices.
Network Topologies 🔗
Topology – the physical layout in which computers are connected.
Topology Physical Layout Key Advantage Key Disadvantage
Bus Single backbone Simplicity, low cost, Failure of the bus
cable with all easy expansion cable disables the
devices attached whole network
Ring Computers Each node acts as a Break in a link or
connected in a repeater, limiting node stops the
closed loop; signal broadcast traffic entire network
travels in one
direction
Star All devices connect Easy to Central hub/switch
to a central hub or add/remove is a single point of
switch devices; failure of failure
one link affects only
that device
Bus topology: “backbone” cable carries all traffic; devices tap into it.
Ring topology: signal passes from one computer to the next; each node
repeats the signal.
Star topology: central hub/switch routes messages; only the faulty link/device
is affected.
Standard Organizations 📏
Organization Scope Typical Role
ISO (International Global Develops models (e.g.,
Organization for OSI) and coordinates
Standardization) specifications for physical
components, protocols,
and procedures.
IEEE (Institute of Electrical International Creates standards for
and Electronics Engineers) electrical, electronic, and
computing engineering
(e.g., Ethernet, Wi‑Fi).
IETF (Internet Engineering Global Large community of
Task Force) designers, operators,
vendors; develops Internet
architecture and standards
(e.g., TCP/IP).
ITU (International Worldwide Specialized UN agency;
Telecommunication Union) sets rules for
communication
technologies and services.
ANSI (American National United States Official U.S. standards
Standards Institute) agency; coordinates
standards across industry,
government, and consumer
sectors.
OSI and TCP/IP Models 📚
OSI Model (7 layers)
The Open Systems Interconnection (OSI) model characterizes and standardizes
communication functions.
Layer (top → bottom) Primary Function
7. Application Interface for user applications (e.g., email,
FTP).
6. Presentation Data translation, encryption, compression.
5. Session Establishes, maintains, terminates
sessions.
4. Transport Reliable data transfer, flow control
(TCP/UDP).
3. Network Routing, logical addressing, path selection.
2. Data Link Frame creation, error detection, MAC
addressing.
1. Physical Transmission of raw bits over media
(cables, wireless).
TCP/IP Model (4 layers)
Layer Corresponding OSI Layers Core Responsibilities
Application OSI 7, 6, 5 End‑to‑end communication
(HTTP, FTP).
Transport OSI 4 Reliable delivery (TCP) or
datagram service (UDP).
Internet OSI 3 Logical addressing, routing
(IP).
Link OSI 2, 1 Physical transmission,
framing, MAC addressing.
Network Addressing 🏠
Network address – any logical or physical address that uniquely identifies a device on
a network.
Physical (MAC) address
48‑bit identifier burned into the NIC.
Permanent, globally unique.
Example: 00:1A:2B:3C:4D:5E.
Logical (IPv4) address
32‑bit number divided into network and host portions.
Format: four decimal octets separated by dots, e.g.,
[Link].
Assigned by network administrator or ISP; can change.
Attribute Physical (MAC) Logical (IPv4)
Length 48 bits 32 bits
Assignment Manufacturer (fixed) Administrator/ISP
(dynamic or static)
Scope Unique worldwide Unique within a given
network
Changeable? No Yes
Transmission Media & Impairments 📡
Common Media Types
Media Category Typical Use Key
Characteristics
UTP (Unshielded Guided LAN cabling Low cost,
Twisted Pair) susceptible to EMI.
STP (Shielded Guided Environments with Extra shielding
Twisted Pair) interference reduces EMI.
Coaxial cable Guided Cable TV, older Central conductor,
Ethernet good shielding.
Fiber optic Guided High‑speed Light transmission,
backbone immune to EMI,
long distance.
Radio waves / Unguided Wireless LAN, Line‑of‑sight
Microwaves satellite links required for
microwaves.
Infrared Unguided Remote controls, Point‑to‑point,
short‑range links requires clear path.
Signal Impairments
Attenuation – loss of signal energy, weakening the signal.
Distortion – alteration of the signal shape during transmission.
Noise – unwanted external signals that mix with the original signal.
Network Devices 📶
Device Core Function Typical Placement
Hub Repeats incoming signals Star topology central point
to all ports (physical layer). (basic).
Switch Forwards frames based on Replaces hub in modern
MAC addresses (data link LANs.
layer).
Router Determines optimal path Connects LANs to WANs,
for packets; works with IP inter‑network routing.
addresses (network layer).
Computer Security Fundamentals 🔐
Computer security – protection against theft or damage to hardware, software, and
information.
Hacker – person with deep knowledge of systems; may identify vulnerabilities
(ethical or malicious).
Cracker – person who bypasses security for unauthorized gain (e.g., stealing
passwords, modifying source code).
Security is essential for confidentiality, integrity, and availability of data.
Cybercrime Types & Examples 🕵️
Crime Typical Method Example
Hacking Unauthorized system stealing Wi‑Fi credentials,
access compromising email
accounts.
Phishing Fake emails/websites to email asking for banking
collect personal data details.
Clickjacking Trick users into clicking disguised “claim reward”
hidden malicious links button.
Credit/Debit Card Scam Skimming devices or online copying card data from
data theft ATMs.
Cyberbullying/Harassment Online threats, rumors, posting hateful messages,
blackmail leaking personal photos.
Victims should report incidents to trusted authorities (e.g., national cyber‑crime
response centres).
Malware Types 🦠
Malware – malicious software designed to damage, disrupt, or gain unauthorized
access to computer systems.
Malware Key Behavior Typical Spread
Virus Attaches to host files, Email attachments,
replicates, can modify or infected downloads.
delete data.
Worm Self‑replicates without Network vulnerabilities,
needing a host file. shared drives.
Adware Displays unwanted Bundled with free
advertisements, may software, web‑based
change browser settings. pop‑ups.
Spyware Monitors user activity, Hidden in downloads,
steals credentials, can log cookies, rootkits.
keystrokes.
Physical vs Logical Spread: USB flash drives, CDs, and email attachments are
common physical vectors; phishing links and malicious websites are logical
vectors.
Antivirus & Protection Strategies 🛡️
Software Notable Feature
Avast Cloud‑based scanning, scheduled scans,
real‑time protection.
Norton Spam filtering, USB/SD card scanning,
frequent updates.
McAfee Alerts on suspicious activity, quarantine,
regular definition updates.
Best Practices
1. Install reputable antivirus and keep definitions up‑to‑date.
2. Run scheduled scans to detect hidden threats.
3. Update operating system and applications regularly.
4. Avoid clicking on unknown links or opening suspicious email attachments.
5. Scan removable media (USB, CDs) before use.
6. Use strong, unique passwords and enable two‑factor authentication where
possible.
🛡️ Antivirus & Malware Protection
How Antivirus Works
Antivirus software attempts to clean infected files; if unsuccessful, it quarantines them.
Regular updates are essential to protect against the latest viruses and
malware.
Free versions exist, but advanced features (e.g., identity and privacy
protection) are often limited to paid “premier” users.
Popular Antivirus Products
Product Key Features Typical Users
Avast Cloud‑based General users; free version
machine‑learning engine; available
scheduled scans; real‑time
protection
Norton (Symantec) Spam filtering, USB/SD Users needing
card scanning, pop‑up comprehensive security
blocker, safe download
only from trusted sources
McAfee (Fig. 5.5) Integrated privacy and Users preferring bundled
identity quarantine security suite
Best Practices
Install antivirus and keep it updated.
Run scheduled scans regularly.
Update the operating system to patch vulnerabilities.
Avoid clicking suspicious links or opening unknown email attachments.
Do not use open Wi‑Fi for sensitive transactions.
💾 Keeping Data Backed Up
Backup Strategies
Create multiple copies of important files and store them in different locations.
System restore points should be created regularly and not disabled.
Write critical data to CDs/DVDs (write‑protected, virus‑free).
Maintain cloud backups (e.g., Google Drive, Microsoft OneDrive).
Store backups in at least two separate places (e.g., local external drive +
cloud).
Authentication Mechanisms for Secure Access
Mechanism Description Strengths Typical Use
Username & Pair of keywords Simple to Default login for
Password known by the user. implement. most systems.
PIN (Personal Short numeric Quick entry; works Debit/credit card
Identification code; must be kept for cards & devices. transactions.
Number) secret.
Biometric Uses unique Hard to forge; Smartphones,
Verification biological traits real‑person high‑security
(fingerprint, iris, authentication. facilities.
facial, voice).
Biometric process: capture sample → compare with stored data → grant access
if matched.
📜 Professional Ethics & Information Accuracy
Information Accuracy
A measurement that assures information is correct, true, and sourced from reputable
references.
Inaccurate data can arise from unreliable sources, leading to misinformation.
Core Ethical Principles
Principle Guideline
Contribute to society Recognize all stakeholders in computing.
Honesty & Trustworthiness Be truthful about work and results.
Respect Equipment & Privacy Avoid causing harm; maintain
confidentiality.
Fairness Do not discriminate, bully, or harass.
Professional Competence Maintain high standards of skill and
conduct.
Public Good Prioritize societal benefit in all computing
activities.
Responsible Resource Use Access computing resources only when
authorized.
Awareness & Education Promote understanding of computing
impacts.
© Intellectual Property Rights
Types of IP
Right What It Protects Duration (Pakistan)
Patent New inventions; must be 20 years
novel, inventive, and
applicable.
Copyright Artistic, literary, software Life of author + 60 years
works; symbol ©.
Trademark Logos, names, slogans Renewable every 10 years
distinguishing
products/services; symbol
™.
Purpose: Prevent theft, illegal use, and unauthorized copying.
Software Piracy
Definition: Illegal use, copying, or distribution of copyrighted software.
Impacts: Revenue loss for developers, reduced R&D resources, higher costs
passed to users.
Common Countermeasures: Registration keys, online activation, but many
remain ineffective.
Plagiarism
Definition: Presenting someone else’s ideas or text as your own without
acknowledgment.
Consequences: Academic penalties, loss of credibility.
Detection Tools: Turnitin, Grammarly, Copyscape, etc.
🌐 Web Development Fundamentals
Basic Terminology
Term Definition
World Wide Web (WWW) Global collection of interconnected
computers delivering public information.
Web Page Document (usually HTML) displayed by a
browser.
Website Set of related web pages under a common
domain.
Web Browser Software (Chrome, Firefox, Safari, Edge)
that renders web pages.
URL (Uniform Resource Locator) Address of a web resource, e.g.,
[Link]
Search Engine Tool to locate information on the web
(Google, Bing, Yahoo).
Web Hosting Service that makes a website accessible
on the internet.
Web Server Computer that serves web pages to
browsers.
Web Portal Site providing a single access point to
varied information sources.
HTML Structure & Essential Tags
– declares HTML5 version.
– root element.
– contains metadata, title, scripts, styles.
).
Heading “Input and Output Devices”.
Unordered list with hyperlinks to the other two pages.
Table design – In [Link] and [Link], create a two‑column table:
Left column: device name.
Right column: image (
).
Frameset exercise – Use to display a header frame and a content frame.
Database modeling – Sketch an ER diagram for a simple scenario (e.g.,
Writer‑Novel‑Consumer), then implement the tables and relationships in MS Access.