AS

AS Computer Science (CIE 9618)

12 chapters · 29 lessons · 2027–2029 syllabus
1

Information Representation

3 lessons
Article

1.1 Data Representation

1.1 Data Representation

1.1.1 Binary Magnitudes — Binary vs Decimal Prefixes

Computers work in binary (base 2), so storage sizes use powers of 2. Humans prefer decimal (base 10). This causes a clash in prefixes:

💡 Key Insight: A "kilobyte" (KB) could mean 1000 bytes OR 1024 bytes, depending on context. The binary prefixes (kibi-, mebi-, gibi-, tebi-) were invented to remove this ambiguity.
Binary Prefix Value (power of 2) ≈ Decimal Decimal Prefix Value (power of 10)
Kibi (KiB) 2¹⁰ 1,024 Kilo (KB) 10³ = 1,000
Mebi (MiB) 2²⁰ 1,048,576 Mega (MB) 10⁶ = 1,000,000
Gibi (GiB) 2³⁰ 1,073,741,824 Giga (GB) 10⁹ = 1,000,000,000
Tebi (TiB) 2⁴⁰ ≈ 1.1 × 10¹² Tera (TB) 10¹² = 1,000,000,000,000
📌 Real-world example: A 500 GB hard drive has 500 × 10⁹ = 500,000,000,000 bytes. But when your OS reports it in GiB, it shows 500,000,000,000 ÷ 1,073,741,824 ≈ 465 GiB. That's why your "500 GB" drive shows only ~465 GB on your computer!
1
Practice — Binary Magnitudes

A file is listed as 2 MiB on your computer. How many bytes does it actually contain?

🔍 Click to reveal answer
2 MiB = 2 × 2²⁰ = 2 × 1,048,576 = 2,097,152 bytes

1.1.2 Number Systems — Binary & Denary

There are three main number bases you need to master, plus BCD and two's complement:

🔢
Denary

Base 10
Digits: 0–9

💻
Binary

Base 2
Digits: 0, 1

📋
Hexadecimal

Base 16
Digits: 0–9, A–F

Denary → Binary (Divide by 2 Method)

Example: Convert 57₁₀ to binary
57 ÷ 2 = 28 r 1
28 ÷ 2 = 14 r 0
14 ÷ 2 = 7 r 0
7 ÷ 2 = 3 r 1
3 ÷ 2 = 1 r 1
1 ÷ 2 = 0 r 1
57₁₀ = 111001
Read remainders from bottom to top

Binary → Denary (Place Value Method)

2⁵ 2⁴ 2⁰
1 1 1 0 0 1
32 16 8 0 0 1
32 + 16 + 8 + 1 = 57
2
Practice — Binary & Denary

(a) Convert 42₁₀ to binary.
(b) Convert 11010₂ to denary.

🔍 Click to reveal answer
(a) 42₁₀ = 101010₂
(b) 16 + 8 + 0 + 2 + 0 = 26₁₀

1.1.3 Hexadecimal System

Hexadecimal (base 16) is used as a shorthand for binary. One hex digit represents exactly four binary bits, making it much easier for humans to read long binary strings.

Hex Digits and Their Values
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111

Binary ↔ Hexadecimal Conversion

Binary → Hex
// Split into groups of 4 bits, right to left
Binary: 1101 0101
Hex: D 5
11010101₂ = D5₁₆
Hex → Binary
// Expand each hex digit to 4 bits
Hex: 3 F
Binary: 0011 1111
3F₁₆ = 00111111₂

Applications of Hexadecimal

  • Memory dumps — Compact display of binary memory contents (e.g. 0x4A 0x6F 0x68 0x6E)
  • Error codes — Windows stop codes like 0x80070570
  • MAC addresses — e.g. 00:1A:2B:3C:4D:5E
  • Colour codes in HTML/CSS — e.g. #FF6B35 (each pair = R, G, B value)
  • Unicode character codes — e.g. U+0041 = 'A'
3
Practice — Hexadecimal

(a) Convert A3₁₆ to binary.
(b) Convert 11110110₂ to hexadecimal.
(c) Give two real-world uses of hexadecimal.

🔍 Click to reveal answer
(a) A = 1010, 3 = 0011 → 10100011₂
(b) Split: 1111 0110 → F 6 → F6₁₆
(c) Any two: memory dumps, MAC addresses, HTML colour codes, error codes, Unicode

1.1.4 Binary Coded Decimal (BCD)

In BCD, each denary digit is converted to its own 4-bit binary representation. The whole number is the concatenation of these 4-bit groups.

How BCD Works
Example: Convert 97 to BCD
9 → 1001 + 7 → 0111 = 1001 0111 (BCD)
🧮 BCD: 97₁₀ = 1001 0111BCD
Each denary digit → 4 bits
💻 Normal Binary: 97₁₀ = 1100001
Uses only as many bits as needed

Applications of BCD

  • Calculator displays — each digit lights up independently, BCD makes it straightforward to drive 7-segment displays
  • Financial transactions — decimal fractions like 0.10 can be represented exactly in BCD but not in normal binary (where 0.1 is a recurring fraction!)
  • Digital clocks / timers — each decimal digit stored and displayed separately
💡 Why BCD for money? In normal binary, 0.1₁₀ = 0.0001100110011...₂ (recurring). This means rounding errors accumulate in financial calculations. BCD avoids this entirely because each decimal digit is stored individually.
4
Practice — BCD

(a) Convert 305₁₀ to BCD.
(b) Convert 1001 0110 (BCD) to denary.
(c) Explain why BCD is preferred over normal binary for financial systems.

🔍 Click to reveal answer
(a) 3=0011, 0=0000, 5=0101 → 0011 0000 0101BCD
(b) 1001=9, 0110=6 → 96₁₀
(c) BCD can represent decimal fractions exactly (no rounding errors), while normal binary cannot represent values like 0.1 exactly.

1.1.5 Binary Addition & Overflow

Binary Addition Rules

0 + 0 = 0
0 + 1 = 1
1 + 1 = 0 carry 1
1 + 1 + 1 = 1 carry 1
Step-by-Step Example: 123 + 57
Carry → 1 1 1 1 1
0 1 1 1 1 0 1 1 (123)
+ 0 0 1 1 1 0 0 1 (57)
= 1 0 1 1 0 1 0 0 (180) ✓
✅ No overflow
180 is within the 8-bit range (0–255 for unsigned)

Overflow

Overflow occurs when the result of an arithmetic operation is too large to be stored in the available number of bits.
Overflow Example: 200 + 100 (8-bit unsigned)
Carry → 1
1 1 0 0 1 0 0 0 (200)
+ 0 1 1 0 0 1 0 0 (100)
= 1 0 0 1 0 1 1 0 0
⚠️ Overflow!
300 requires 9 bits but only 8 bits are available. The 9th bit (carry) is lost, giving an incorrect result of 44!
5
Practice — Binary Addition

(a) Add 01101010 + 00011011 (8-bit binary). Show your working.
(b) Does the result overflow? Explain why.

🔍 Click to reveal answer
(a)
Carry → 0 1 1 0 0 0 0 0
01101010 (106)
+ 00011011 (27)
= 10000101 (133)

(b) No overflow — 133 fits within the 8-bit range (0–255).

1.1.6 Two's Complement (Negative Binary)

Two's complement is how computers represent negative integers. The most significant bit (MSB) acts as the sign bit: 0 = positive, 1 = negative.

8-bit Two's Complement Range
0111 1111 = +127 (largest positive)
0000 0000 = 0
1111 1111 = −1
1000 0000 = −128 (smallest negative)
How to Negate a Number (42 → −42)
Step 1: Start
0010 1010
+42 in 8-bit binary
Step 2: Invert
1101 0101
Flip all bits (one's complement)
Step 3: Add 1
1101 0110
= −42 ✓

Binary Subtraction Using Two's Complement

Instead of subtracting directly, we add the two's complement of the number being subtracted.

// Calculate: 42 − 12 = ?
42 = 0010 1010
−12 = 1111 0100 (two's complement of 12)
42 + (−12) = 1 0001 1110 = 30 ✓
(Extra carry bit on the left is discarded)
6
Practice — Two's Complement

(a) Find the two's complement representation of −25 (use 8 bits).
(b) Calculate 50 − 18 using two's complement in 8-bit binary.

🔍 Click to reveal answer
(a) 25 = 0001 1001 → Invert: 1110 0110 → +1 → 1110 0111 = −25

(b) 50 = 0011 0010, 18 = 0001 0010 → −18 = 1110 1110
0011 0010 + 1110 1110 = 1 0010 0000 → discard carry → 0010 0000 = 32

1.1.7 Character Sets — ASCII & Unicode

🤔 The Problem: Computers Only Understand Numbers

A computer's processor can only store and manipulate binary numbers. But humans need to work with letters, digits, punctuation, and symbols. How do we bridge this gap?

💻
01000001
Computer sees a number
👤
A
Human reads a letter
💡 The solution: A character set — a standardised table that assigns every character a unique binary code. When the computer sees 01000001, it looks up the table and knows it should display 'A'.

ASCII — The First Universal Standard

ASCII (American Standard Code for Information Interchange) was developed in the 1960s. It uses 7 bits to represent 128 characters (0–127).

How ASCII Works — A Visual Story
1. User types a letter on the keyboard:
H
2. Computer looks up ASCII table:
'H' = 72 = 100 1000
3. Computer stores the binary code in memory:
01001000 01101001 (Hi)
Complete ASCII Table (0–127)

The table is divided into control characters (0–31, used for formatting/communication) and printable characters (32–127). You do not need to memorise codes, but you should understand the structure.

Dec Hex Bin Char Dec Hex Bin Char Dec Hex Bin Char Dec Hex Bin Char
0000000000NUL1010000001SOH2020000010STX3030000011ETX
4040000100EOT5050000101ENQ6060000110ACK7070000111BEL
8080001000BS9090001001TAB100A0001010LF110B0001011VT
120C0001100FF130D0001101CR140E0001110SO150F0001111SI
16100010000DLE17110010001DC118120010010DC219130010011DC3
20140010100DC421150010101NAK22160010110SYN23170010111ETB
24180011000CAN25190011001EM261A0011010SUB271B0011011ESC
281C0011100FS291D0011101GS301E0011110RS311F0011111US
32200100000SP33210100001!34220100010"35230100011#
36240100100$37250100101%38260100110&39270100111'
40280101000(41290101001)422A0101010*432B0101011+
442C0101100,452D0101101-462E0101110.472F0101111/
483001100000493101100011503201100102513301100113
523401101004533501101015543601101106553701101117
563801110008573901110019583A0111010:593B0111011;
603C0111100<613D0111101=623E0111110>633F0111111?
64401000000@65411000001A66421000010B67431000011C
68441000100D69451000101E70461000110F71471000111G
72481001000H73491001001I744A1001010J754B1001011K
764C1001100L774D1001101M784E1001110N794F1001111O
80501010000P81511010001Q82521010010R83531010011S
84541010100T85551010101U86561010110V87571010111W
88581011000X89591011001Y905A1011010Z915B1011011[
925C1011100\935D1011101]945E1011110^955F1011111_
96601100000`97611100001a98621100010b99631100011c
100641100100d101651100101e102661100110f103671100111g
104681101000h105691101001i1066A1101010j1076B1101011k
1086C1101100l1096D1101101m1106E1101110n1116F1101111o
112701110000p113711110001q114721110010r115731110011s
116741110100t117751110101u118761110110v119771110111w
120781111000x121791111001y1227A1111010z1237B1111011{
1247C1111100|1257D1111101}1267E1111110~1277F1111111DEL
🔤 Uppercase A–Z (65–90)
🔡 Lowercase a–z (97–122)
🔢 Digits 0–9 (48–57)
⚙️ Control chars (0–31)
Notable Patterns in ASCII
'A' = 65
'B' = 66, 'C' = 67... Alphabet is consecutive!
'a' = 97
Lowercase = Uppercase + 32. So 'a' − 'A' = 32 = 2⁵
'0' = 48
'1' = 49, '2' = 50... Digits are also consecutive!
Space = 32
First printable character. DEL = 127 (all 7 bits = 1)

Limitations of ASCII — Why Unicode Was Born

🔤
ASCII's Problem

With only 7 bits, ASCII can represent just 128 characters. This was fine for 1960s America, but:

  • ❌ No Chinese characters (需要几千个!)
  • ❌ No Arabic (الحروف العربية)
  • ❌ No Cyrillic (Привет) or Greek (Καλημέρα)
  • ❌ No accents: é, ü, ñ, ç
  • ❌ No emoji 😊 🎉 💻
  • ❌ No math symbols: ∑, ∫, ∞, ≤
🌐
Unicode's Solution

Unicode uses 16, 24, or 32 bits — enough for over a million characters!

  • World's writing systems: 中文, العربية, हिन्दी, 日本語
  • Designed as superset of ASCII — first 128 codes are identical
  • Standardised — same code = same character everywhere
  • ✅ Supports emoji 😊, maths ∑, music ♫, arrows →
  • ✅ Every character has a unique code point: U+XXXX
The Core Difference — Storage Space vs. Inclusivity
Feature ASCII Unicode
Bits per character 7 (or 8 for extended) 16, 24, or 32
Total characters 128 (or 256 extended) Over 1 million possible
Languages supported English only All world languages
File size for English text Smaller Larger (2-4×)
Standardisation Extended ASCII (128-255) varies by system Fully standardised globally
Year introduced 1963 1991

Unicode in Practice — Sample Code Points

Unicode organises characters into blocks (ranges). Each character has a unique code point written as U+XXXX (hexadecimal).

Sample Unicode Blocks
Latin (U+0000 — U+007F) ← Same as ASCII!
U+0041 A U+0042 B U+005A Z U+0061 a U+007A z U+0030 0
Latin-1 Supplement (U+0080 — U+00FF)
U+00E9 é U+00FC ü U+00F1 ñ U+00A3 £ U+00A9 © U+00B0 °
CJK Unified Ideographs (U+4E00 — U+9FFF)
U+4E2D U+56FD U+597D U+5927 U+5C0F U+6C34
~21,000 Chinese/Japanese/Korean characters
Emoticons (U+1F600 — U+1F64F)
U+1F600 😀 U+1F60A 😊 U+1F622 😢 U+1F44D 👍
Arrows (U+2190 — U+21FF)
U+2190 U+2192 U+2191 U+2193
Musical Symbols (U+1D100 — U+1D1FF)
U+266B U+266A U+266D
Greek (U+0370 — U+03FF)
U+03A0 Π U+03A3 Σ U+03B1 α U+03B2 β
Currency Symbols (U+20A0 — U+20CF)
U+0024 $ U+00A3 £ U+00A5 ¥ U+20AC
Real-World Example — How "Hello" is Stored
// The word "Hello" stored in ASCII (1 byte per char):
H = 72 = 01001000
e = 101 = 01100101
l = 108 = 01101100
l = 108 = 01101100
o = 111 = 01101111
Stored in memory: 01001000 01100101 01101100 01101100 01101111
In ASCII: "Hello" = 5 bytes
Each character = 7 bits → packed into 1 byte
In Unicode (UTF-16): "Hello" = 10 bytes
Each character = 16 bits = 2 bytes
But "你好" in ASCII: ❌ Impossible!
ASCII has no Chinese characters

✏️ Quick Memory Aid — Why "A" = 65?

0100 0001
65
The designers chose 65 for 'A' so that:
• 'A' (65) + 32 = 'a' (97)
• 'A' (65) + 25 = 'Z' (90)
This makes case conversion easy: just flip bit 5!
7
Practice — Character Sets

(a) Explain why character sets like ASCII are necessary for computers.
(b) State two limitations of ASCII that led to the development of Unicode.
(c) A file contains the word "Cat". Using ASCII codes (C=67, a=97, t=116), write the binary representation stored in memory (use 8 bits per character).
(d) Describe one advantage and one disadvantage of Unicode compared to ASCII.

🔍 Click to reveal answer
(a) Computers can only store binary numbers. A character set provides a standard mapping between characters and binary codes, so characters can be stored and displayed consistently.

(b) (i) Only 128 characters — cannot represent many languages. (ii) Extended ASCII (128–255) is not standardised — different systems use different codes.

(c) C = 67 = 01000011, a = 97 = 01100001, t = 116 = 0111010001000011 01100001 01110100

(d) Advantage: Can represent characters from all world languages / fully standardised. Disadvantage: Uses more bits per character → larger file size / more storage space needed.

📋 Chapter 1.1 Summary Checklist

Tick off each topic as you master it:

☐ Binary vs decimal prefixes (kibi/kilo, etc.)
☐ Denary ↔ Binary conversion
☐ Binary ↔ Hexadecimal conversion
☐ Hexadecimal applications
☐ BCD conversion and applications
☐ Binary addition rules
☐ Overflow detection
☐ Two's complement (negation & subtraction)
☐ ASCII vs Unicode character sets
📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

1.2 Multimedia — Graphics & Sound

🎨 1.2 Multimedia — Graphics

1.2.1 Bitmap Image Encoding

A bitmap image is made up of a grid of tiny squares called pixels. Each pixel has one colour, and that colour is stored as a binary number.

How a Bitmap is Encoded
4 × 4 pixel grid
// Each colour has a unique binary code
Orange = 00
Blue = 01
Row 0: 00 00 00 01
Row 1: 00 00 01 01
Row 2: 00 01 01 00
Row 3: 01 01 00 00
Stored as: 00000001 00000101 00010100 01010000

Key Bitmap Terms — Visual Memory Guide

🧱
Pixel
PIcture ELement
← One pixel highlighted

🧱 Analogy: A pixel is like a single Lego brick. One brick is boring, but thousands of bricks together create a masterpiece. Similarly, one pixel is just a coloured dot, but millions form a photograph.

📌 Definition: The smallest addressable element of a digital image. Each pixel has one colour, stored as a binary number.

🪪
File Header
"The ID Card"
📋 FILE HEADER
Type: BMP
Size: 800×600
Depth: 24-bit
Compress: None
Offset: 54 bytes
⋮ pixel data starts here ⋮

🪪 Analogy: A file header is like a passport or ID card. Before you travel, your passport tells officials who you are, your height, eye colour. Similarly, before a computer reads the image's pixel data, the file header tells it: "I'm a BMP file, 800×600 pixels, 24-bit colour depth."

📌 Contents: File type, dimensions (width × height), colour depth, compression type, and where the pixel data starts.

🔍
Image Resolution
"How Many Pixels?"
Low res
High res

🔍 Analogy: Think of image resolution like the number of tiles in a mosaic. A 10×10 mosaic has 100 tiles (low detail). A 100×100 mosaic has 10,000 tiles (much more detail). The more tiles, the finer the image.

📌 Definition: The number of pixels in an image, usually given as width × height (e.g. 1920 × 1080). Higher resolution = more pixels = more detail.

🎨
Colour Depth
(Bit Depth) "Palette Size"
2-bit
4 colours
8-bit
256 colours
24-bit
16.7M colours

🎨 Analogy: Colour depth is like the size of your crayon box. A 4-pack (2-bit) → just black, white, red, blue. A 64-pack (8-bit) → more shades. A deluxe 16.7 million pack (24-bit) → every colour imaginable, but a much bigger box!

📌 Definition: The number of bits per pixel. n bits = 2ⁿ colours. Common depths: 1-bit (B&W), 8-bit (256 colours), 24-bit (true colour).

🖥️
Screen Resolution
"The Display Canvas"
1920 1080
1920 × 1080

🖥️ Analogy: Image resolution is about the image itself; screen resolution is about the display. Think of a digital billboard vs a phone screen — different screen resolutions. If your image resolution is higher than your screen resolution, you won't see the extra detail!

📌 Definition: The number of pixels displayed horizontally and vertically on a physical screen. Example: "1920 × 1080" means 1,920 columns × 1,080 rows of pixels.

1.2.2 Calculating Bitmap File Size

Formula: File Size (bits) = Colour Depth (bits per pixel) × Image Width × Image Height
Step-by-Step Example
Image: 800 × 600 pixels, 24-bit colour depth
Step 1: Total pixels = 800 × 600 = 480,000 pixels
Step 2: Raw bits = 480,000 × 24 = 11,520,000 bits
Step 3: ÷ 8 to bytes = 11,520,000 ÷ 8 = 1,440,000 bytes
Step 4: ÷ 1024 to KB = 1,440,000 ÷ 1024 ≈ 1,406 KB ≈ 1.37 MiB
⚠️ Why actual file size is larger: The calculation above gives the raw pixel data only. The actual file also contains a file header with metadata (file type, dimensions, colour depth, etc.), making the real file bigger than the estimate.
1
Practice — File Size Calculation

A bitmap image is 1024 × 768 pixels with a 16-bit colour depth. Calculate the raw file size in MiB.

🔍 Click to reveal answer
Total pixels = 1024 × 768 = 786,432
Bits = 786,432 × 16 = 12,582,912
Bytes = 12,582,912 ÷ 8 = 1,572,864
KB = 1,572,864 ÷ 1024 = 1,536 KB
MiB = 1,536 ÷ 1024 = 1.5 MiB

1.2.3 Effects of Changing Resolution & Colour Depth

Change Effect on File Size Effect on Quality
Increase colour depth
e.g. 8-bit → 24-bit
⬆ Increases
More bits per pixel
⬆ Improves
Greater range of colours, image closer to original / more realistic
Increase image resolution
e.g. 800×600 → 1600×1200
⬆ Increases
More pixels to store
⬆ Improves
Image is sharper / less pixelated
🔲
Low Resolution

Pixelated when enlarged

🖼️
High Resolution

Smooth when enlarged

2
Practice — Resolution & Colour Depth

Describe the effect on file size and image quality of: (a) Increasing colour depth (b) Increasing image resolution.

🔍 Click to reveal answer
(a) Higher colour depth: File size increases (more bits per pixel). Quality improves (greater range of colours, more realistic).

(b) Higher resolution: File size increases (more pixels stored). Quality improves (sharper, less pixelated image).

1.2.4 Vector Graphics

Unlike bitmaps, vector graphics store images as a series of mathematical drawing objects (shapes, lines, curves) rather than individual pixels.

How Vector Images are Encoded
r=25
// Drawing List for this image:
CIRCLE
center=(60,50)
radius=25
fill=#DBEAFE
stroke=#3B82F6
RECTANGLE
top-left=(35,75)
width=50, height=35
fill=#FEF3C7

Vector Graphics Terms — Visual Memory Guide

📐
Drawing Object
"The Shape"
rect circle line

📐 Analogy: A drawing object is like a stencil or cookie cutter. Instead of drawing pixel-by-pixel, you say "use the circle stencil" and the computer draws a perfect circle using a formula. The objects are: rectangles, circles, lines, paths, polygons.

📌 Definition: A component of a vector image created using a mathematical formula, not individual pixels.

🎯
Property
"The Object's Outfit"
Same shape different properties: fill=#DBEAFE stroke=2px fill=none stroke=4px

🎯 Analogy: Same person, different outfits. A property defines how a drawing object looks. Like choosing a shirt's colour (fill), the line thickness of a drawing (stroke width), or whether it has an outline at all.

📌 Examples: fill colour, stroke (outline) colour, line thickness/weight, opacity, pattern.

📜
Drawing List
"The Recipe Book"
📜 DRAWING LIST
1. CIRCLE
center (60,50)
radius 25
fill = light blue
2. RECT
pos (35,75)
width 50, height 35
fill = yellow

📜 Analogy: A drawing list is like a recipe book. Just as a recipe lists ingredients and steps ("add 2 cups flour, mix for 3 minutes"), the drawing lists commands ("draw circle at (60,50) with radius 25, fill blue"). To display the image, the computer follows each instruction in order.

📌 Definition: A list storing all commands / descriptions / equations required to draw each object in the image, along with their properties.

1.2.5 Bitmap vs Vector — Choosing the Right Format

Feature Bitmap Vector
Composition Grid of pixels Mathematical objects
Resizing Pixels enlarge → pixelates Recalculated → stays sharp
File size Usually larger Usually smaller
Compression Compresses well Compresses poorly
Best for Photos, scans, complex images Logos, diagrams, illustrations
Display Displayed directly Must be rasterised first
4
Practice — Bitmap vs Vector

A graphic designer needs to create a company logo that will be printed on billboards and business cards. Should they use a bitmap or vector format? Justify your answer.

🔍 Click to reveal answer
Vector — because: (1) The logo can be resized without pixelation (recalculated mathematically), so it will look sharp on both billboards and business cards. (2) Vector files are usually smaller. (3) Logos use simple shapes and colours, which vectors handle well.

🔊 1.2 Multimedia — Sound

1.2.6 How Sound is Represented & Encoded

Sound is analogue — a continuous wave of changing air pressure. Computers are digital — they can only store discrete (separate) values. Sampling bridges this gap.

Analogue → Digital: The Sampling Process
Analogue sound wave ● Sample points at regular intervals
🎤
Step 1: Sample

Amplitude measured at regular time intervals

💾
Step 2: Encode

Each amplitude converted to a binary number

📂
Step 3: Store

Binary numbers stored in sequence

Sound Terms — Visual Memory Guide

📏
Sampling
"Measuring the Wave"
Analogue wave (continuous) ● Sample at regular intervals

🌡️ Analogy: Sampling is like taking a patient's temperature every hour. You don't record every instant of their body temperature — you take readings at regular times. The more often you check, the better you understand the trend.

📌 Definition: The process of measuring the amplitude of a sound wave at regular time intervals to convert the continuous analogue signal into discrete digital values.

Sampling Rate
"How Often?"
Low rate
High rate

🎬 Analogy: Think of sampling rate like frames per second (fps) in a video. 10 fps = jerky, 60 fps = smooth. Similarly, a low sampling rate (e.g. 8,000 Hz) captures few "sound snapshots" per second → poor quality. High rate (e.g. 44,100 Hz = CD quality) captures many snapshots → accurate reproduction.

📌 Definition: The number of samples taken per second, measured in Hertz (Hz). Common rates: 8 kHz (telephone), 44.1 kHz (CD), 96 kHz (high-resolution audio).

🎯
Sampling Resolution
(Bit Depth) "How Precise?"
8-bit 256 levels
16-bit 65,536 levels

📏 Analogy: Sampling resolution is like the fineness of your ruler. A ruler with only cm marks → you can measure to the nearest cm (imprecise). A ruler with mm marks → you can measure 10× more precisely. More bits per sample = more possible amplitude values = more accurate representation.

📌 Definition: The number of bits used per sample. Common: 8-bit (256 levels), 16-bit (65,536 levels), 24-bit (16.7 million levels). Also called bit depth.

🌊
Analogue vs Digital
"Continuous vs Discrete"
Analogue
Smooth curve
(any value)
Digital
Stepped values
(specific levels)

🌊 Analogy: Analogue is like a smooth ramp — you can stand at any height. Digital is like a staircase — you can only stand on specific steps. The more steps (higher resolution), the closer the staircase feels to a ramp.

📌 Definitions: Analogue = continuously changing, can be any value (original sound wave). Digital = discrete values, stored as binary numbers (sampled sound).

1.2.7 Impact of Changing Sampling Rate & Resolution

Change Accuracy / Quality File Size
Higher sampling rate
more samples per second
⬆ More accurate
Smaller time gaps between samples → digital waveform closer to original → smaller quantisation errors
⬆ Larger
More samples recorded → more bits stored
Higher sampling resolution
more bits per sample
⬆ More accurate
Wider range of amplitudes → each binary value closer to the analogue amplitude → smaller quantisation errors
⬆ Larger
More bits per sample → more bits stored altogether
✅ Benefits of Higher Quality
  • Smaller quantisation errors
  • Crisper, more accurate sound quality
  • Larger dynamic range (≈ 6 × bit depth)
  • Digital waveform closer to the original
⚠️ Drawbacks of Higher Quality
  • Much larger file size
  • Longer to transmit / download
  • Greater bandwidth required
  • More processing power needed
6
Practice — Sampling Rate & Resolution

A music streaming service wants to reduce file sizes to save bandwidth. Should they decrease the sampling rate or the sampling resolution? State one advantage and one disadvantage of your choice.

🔍 Click to reveal answer
Either approach works — the key is knowing the effect:

Decreasing sampling rate: Fewer samples per second → file size decreases. Disadvantage: Smaller time gaps → less accurate digital waveform → more quantisation error → lower quality.

Decreasing sampling resolution: Fewer bits per sample → file size decreases. Disadvantage: Narrower amplitude range → each binary value is less precise → more quantisation error.

📋 Section 1.2 Summary Checklist

☐ Bitmap image encoding (pixels → binary)
☐ Key terms: pixel, header, resolution, colour depth
☐ File size calculation for bitmap images
☐ Effects of changing resolution & colour depth
☐ Vector graphics: objects, properties, drawing list
☐ Bitmap vs Vector comparison
☐ Sound sampling process (analogue → digital)
☐ Sampling rate and sampling resolution
☐ Impact of changing sampling rate / resolution
📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

1.3 Compression

📦 1.3 Compression

1.3.1 The Need for Compression

💾
Save Storage Space

Compressed files take up less space on storage devices → can store more files.

🚀
Faster Transmission

Smaller files can be downloaded / uploaded faster, using less bandwidth.

📧
Email Attachments

Many email servers have size limits (e.g. 25 MB). Compression makes files fit.

1
Practice — Need for Compression

A website hosts high-resolution photographs. Give two reasons why the web developer should compress these images before uploading them to the server.

🔍 Click to reveal answer
(1) Images will download faster when users visit the website — less bandwidth used, less buffering.
(2) Images take up less storage space on the server — can store more images and have space for other files.

1.3.2 Lossy vs Lossless Compression

⚠️
Lossy Compression
  • Loses some original data permanently
  • Original file cannot be recreated exactly
  • Achieves much smaller file sizes (up to ~90% reduction)
  • Examples: JPEG (images), MP3 (audio), MP4 (video)
  • Technique: remove data that humans won't notice
Lossless Compression
  • Preserves all original data
  • Original file can be recreated exactly
  • Maximum ~50% reduction (less than lossy)
  • Examples: PNG (images), FLAC (audio), ZIP (files)
  • Techniques: RLE, Huffman coding
💡 Exam tip: When justifying lossy compression, always mention: (1) The loss may not be noticeable to the human eye/ear. (2) Lossy produces a much larger reduction in file size than lossless. (3) Smaller files → less bandwidthreduced buffering → smoother playback.
2
Practice — Lossy vs Lossless

A video streaming service (e.g. YouTube) needs to compress its videos. Should it use lossy or lossless compression? Justify your answer.

🔍 Click to reveal answer
Lossy — because: (1) Videos need to be streamed in real time, so a much smaller file size is needed to reduce buffering. (2) Viewers may not notice the loss of quality, especially on mobile devices. (3) Lossless would not reduce file size enough to enable smooth streaming.

1.3.3 Run-Length Encoding (RLE)

RLE is a lossless compression method. It identifies consecutive repeated values (runs) and replaces them with: the count + the value.

RLE on Text

W W W W W B B B B R
Original: WWWWWBBBBR (10 characters)
RLE: 5W4B1R (6 values)
✅ Good for RLE:

Data with many repeated runs, e.g. simple graphics, black-and-white images, files with lots of whitespace.

⚠️ Bad for RLE:

Data with few repeats, e.g. "RGBRGBRGB". RLE would make it larger (stores each value + count=1).

RLE on Bitmap Images

// RLE: (count, colour)
Row 0: (4, black) (4, white)
Row 1: (2, black) (4, white) (2, black)
Instead of 16 individual pixels → only 6 values!
3
Practice — Run-Length Encoding

(a) Apply RLE to the string: AAAAABBBBCCCCD
(b) Explain why RLE may not reduce the file size for some types of data.

🔍 Click to reveal answer
(a) 5A 4B 4C 1D (8 values instead of 14 characters)

(b) RLE stores each value plus its count. If the data has few consecutive repeated values (e.g. RGBRGBRGB), RLE would store each character with a count of 1, which adds data instead of reducing it.

1.3.4 Compression by File Type

File Type Can use lossy? Lossless Methods
📄 Text No — would corrupt file RLE (repeated chars), Huffman coding
🖼️ Bitmap Image Yes — lossy often used RLE (same-colour pixels)
Lossy methods: reduce colour depth, resolution, or colour palette
🔊 Sound Yes — MP3 is lossy RLE (same-sound values), Huffman
Lossy methods: decrease sampling rate/resolution, remove out-of-hearing-range sounds
📐 Vector Graphic Not common Limited benefit — little redundant data
❌ Why can't text use lossy?

Every single character matters. If even one bit changes, the meaning can be completely different (e.g. "pass" vs "pAss" vs "±ass"). Lossy compression would corrupt the file — none of the original data can be lost.

✅ Why images/sound can use lossy

The human eye and ear cannot perceive every detail. Removing subtle colour variations, high/low frequencies is often unnoticeable to the viewer/listener.

Summary Decision Flowchart

Need to compress? Can we lose some data? YES Use LOSSY NO Use LOSSLESS (e.g. RLE)
4
Practice — Compression by File Type

For each file type below, state whether lossy compression is suitable and explain why:
(a) A novel saved as a text file
(b) A holiday photograph
(c) A legal document

🔍 Click to reveal answer
(a) No — lossy would corrupt the text. Any data loss changes characters, making the novel unreadable.
(b) Yes — minor quality loss is usually unnoticeable to the human eye, and file size reduction is significant.
(c) No — legal documents must be exact. Even one wrong character could change the meaning completely.

📋 Section 1.3 Summary Checklist

☐ Why compression is needed (storage, transmission, email)
☐ Lossy vs Lossless: differences and examples
☐ Justifying lossy or lossless for a given situation
☐ How RLE works (text, images)
☐ When RLE may not reduce file size
☐ Compression methods for text files
☐ Compression methods for bitmap images
☐ Compression methods for sound files
📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Information Representation

Practice with real exam questions from previous sessions

🧪
Chapter Test — Information Representation

Assess your understanding of this chapter

2

Communication

1 lesson
Article

2.1 Networks including the internet

2.1 Networks including the Internet

🎬

Two Students, One Problem

Alex and Jamie are working on a group project. Alex has written the introduction on his laptop. Jamie has the research data on hers. They need to combine their work.

How would you solve this? You're not allowed to use the internet or Wi-Fi. What options do they have?

🤔 What did you come up with?

Most people's first idea: USB stick — copy the file, walk to the other computer, paste. This is called a "sneakernet" (sneaker + network, because you walk in your sneakers to move data).

But what if:

  • You need to share files every minute?
  • There are 30 students, not just 2?
  • You're in different countries?

The USB stick won't work. We need something better. We need a NETWORK.

Throughout this chapter, we will follow Alex and Jamie as they build a network from scratch — starting with just two computers, and growing all the way to connecting to the global Internet. At each step, you'll face the same problems they face. Try to solve each problem yourself before reading the answer.


2.1.1 Why Do We Need Networks? (The Problem Before the Solution)

💡 The Core Question: Before we learn about routers, switches, and protocols, ask yourself: what problem does each of these actually solve? Every networking technology was invented because something didn't work before it.

Step 1: Two Computers, One Cable

Alex and Jamie start with the simplest possible setup: two laptops, one cable connecting them directly.

Alex's Laptop Cable Jamie's Laptop

Two computers connected by a direct cable — the simplest possible "network"

This works! Alex can send a file to Jamie directly. But now a third student, Sam, joins the project. Problem: With only one cable port on each laptop, how do you connect three computers?

🤔 What would YOU do? (Try before reading)

Three possible solutions:

  1. Daisy chain: Alex → Jamie → Sam. But if Jamie's computer is off, Sam and Alex can't communicate.
  2. Add more cables: Alex connects to both Jamie and Sam. But now Alex needs two cable ports.
  3. Use a central device: Everyone connects to a switch. Data goes to the switch, which forwards it to the right person.

Solution 3 is what real networks use. You've just invented the need for a network switch!

Step 2: The Sharing Problem Grows

Now there are 30 students in the class, each with a computer. They also have one printer. Before networking:

  • ❌ To print, you save your file to a USB stick, walk to the printer's computer, and print from there
  • ❌ To share a file with everyone, you email it 30 times or pass a USB stick around
  • ❌ To update software, you visit each computer individually
  • ❌ To back up files, you need 30 separate backup drives

What networking solves: A single network connects all 30 computers and the printer. Now anyone can print from anywhere. Files are shared instantly. Software is updated once from a central server.

Without Network With Network
Walk files on USB ("sneakernet")Share files instantly
Each computer needs its own printerOne printer shared by all
Update software 30 times (once per machine)Update once on server
No central security — each user manages their ownCentralised security with passwords and access control
No central backupServer backs up everyone's files automatically
Cannot communicate except face-to-faceEmail, messaging, video calls
🔍 Practice 1 — Why Network?

Question: A primary school has 20 computers in one lab and 1 printer. There is no network. List three problems this causes, and explain how networking solves each one.

Sample Answer:
1. Problem: Students must save work to a USB stick to print it. Solution: Networking allows all computers to access the printer directly.
2. Problem: The teacher must manually install software on each of 20 computers. Solution: Software can be installed once on a central server and distributed to all computers.
3. Problem: If a student's computer crashes, their unsaved work may be lost. Solution: Files can be saved centrally on a server with automatic backup.


2.1.2 How Should We Arrange the Connections? (Network Topologies)

🧠 Imagine this: You're the network architect for a new office. You have 10 computers, and you can buy as much cable as you need. How would you arrange the cables? Draw it in your head first — then see how the four standard topologies compare to your design.

💡 Think like an inventor: Network topologies weren't designed in a boardroom one afternoon. Each one was invented to solve a specific problem that the previous topology couldn't handle. As you read each one, ask yourself: "What broke? What was missing? What problem did this solve?"

The history of network topologies is a story of trade-offs. Every time engineers solved one problem (cost, collisions, reliability), a new problem appeared. Let's walk through this journey — one topology at a time, one problem at a time.

⏱️ Era: Late 1970s — Early 1980s

🔹 1. Bus Topology — "The Party Line"

🧠 Problem: It's 1978. You work at a university with 8 research computers. Each one cost $50,000 — the price of a house. You need to connect them so researchers can share files and a single expensive printer. But network cables cost $5 per metre, and switches don't exist yet (they would be $10,000+ each if they did).

Question: With a very limited budget, what is the absolute cheapest way to connect 8 computers with cable?

🤔 Think about it first, then click to see the solution

The cheapest way is to run one single cable past all the computers and tap into it. That's exactly what the inventors of Ethernet at Xerox PARC did in 1973 — they called it the "bus" because data travels along a shared pathway, like people on a city bus.

🛠️ Historical fact: The first Ethernet network used a thick coaxial cable (called "thicknet" or 10BASE5, 1979) that could run up to 500 metres. Later came "thinnet" (10BASE2, 1985) — thinner, cheaper, and easier to install.

T T PC 1 Sending 📤 PC 2 PC 3 Server Receiving 📥 PC 5 🟡 Data packet travels on shared cable → ALL devices see it

🧱 Why this shape? Imagine a shared party line telephone — one wire runs through a neighbourhood, and everyone's phone connects to the same wire. When someone speaks, everyone hears it.

📌 What it is: All devices connect to a single central cable (the "bus" or backbone). Each device has a "T-connector" that taps into the cable. Both ends of the cable have terminators that absorb signals and prevent reflections.

💡 Design for cost: One cable. No switch. No hub. Just cable, terminators, and T-connectors. This was the cheapest possible way to build a network.

▶️ Watch the animation: The yellow dot is a data packet sent by PC 1 to the Server. On a bus, the signal travels along the backbone and every device sees it — even devices that don't need the data. This is why bus topology has poor security.

✅ Advantages

  • Uses the least cable — lowest cost to install
  • Simple to set up and extend (just tap into the backbone)
  • No extra hardware needed (no switch, no hub)

❌ Disadvantages

  • If the backbone breaks → ENTIRE network dies
  • Data collisions! Two devices cannot transmit at the same time
  • Performance drops sharply as more devices join
  • Low security — all devices see ALL traffic on the cable

🧠 Think about it: Bus topology was cheap and simple, but as networks grew, two serious problems emerged:

  • Data collisions — if two computers transmit at the same time, the signals crash and both messages are destroyed. The more computers, the more collisions.
  • One break = everyone down — a loose cable or damaged backbone took the entire network offline.

Engineers asked: "What if each computer had its own dedicated cable to a central device that manages traffic? No more collisions, no more shared-cable breakages."

⏱️ Era: 1990s — Today (The Modern Standard)

🔹 2. Star Topology — "The Hub-and-Spoke"

🧠 Problem: It's 1992. Your office has 30 computers on a bus network. The network keeps crashing because:
1️⃣ Two people send data → collision → everyone waits
2️⃣ Yesterday the cleaner bumped a cable → entire network down for 4 hours → $50,000 lost

Question: If every computer has its OWN cable that runs to a central device (a switch), and the switch forwards data only to the right destination, what shape does the network form?

🤔 Think about it first, then click to see the solution

You've just designed a star topology! The key innovation: a network switch (or earlier, a hub). Each device has its own dedicated cable to the switch. The switch reads the destination address on each data packet and forwards it only to the correct device.

This solves both bus problems at once:
No collisions — the switch manages traffic, so no two signals crash
Fault isolation — if PC 1's cable breaks, only PC 1 loses connection

🛠️ Historical fact: The 1990 IEEE 802.3i standard (10BASE-T) introduced Ethernet over twisted-pair cable, which naturally used a star topology. Combined with rapidly falling switch prices in the mid-1990s, star became the dominant topology. By 2000, nearly every new network used star.

SWITCH Manages Traffic PC 5 PC 1 📤 Sending PC 2 Printer 📥 Receiving PC 3 🟡 PC 1 sends → Switch forwards → 🟢 Printer receives only

🧱 Why this shape? Imagine a bicycle wheel — all spokes meet at the central hub. If one spoke breaks, you replace just that spoke. The rest of the wheel keeps working.

📌 What it is: All devices connect independently to a central device (switch or router). The switch intelligently forwards data only to its intended destination.

▶️ Watch the animation: The yellow dot (🟡) is a data request from PC 1 to the Printer. It goes to the Switch first. The switch reads the destination address and forwards only to the Printer (🟢). PC 2, PC 3, PC 5 — they see nothing. This is the key difference from bus topology: targeted delivery.

✅ Advantages

  • Fault isolation — one broken cable ≠ entire network down
  • No data collisions — the switch manages all traffic routing
  • Higher performance — dedicated connection per device
  • Easy to add/remove devices — just plug into the switch
  • Better security — data only goes to intended recipient

❌ Disadvantages

  • If the central switch fails → ENTIRE network dies (single point of failure)
  • More cable needed (each device needs its own cable to the switch)
  • Switch hardware adds cost

🏆 Why star is the most common topology today: Modern switches cost as little as $20. The advantages of fault isolation, zero collisions, and easy management far outweigh the extra cable cost. The network in your school, home, and most offices uses a star topology.

🧠 Think about it: Star topology solved collisions and fault isolation, but it has one critical weakness: the central switch is a single point of failure. If the switch dies, everyone loses connection. For a school computer lab, that's annoying. But what if this network controls:

  • 🚑 A hospital's emergency room communication system?
  • ✈️ An airport's air traffic control network?
  • 🏦 A bank's stock trading platform handling $1 billion per minute?

For these systems, "the network is down" is not an option. They need multiple pathways so that if any one path fails, data can take an alternative route. What kind of design gives you multiple paths between every pair of devices?

⏱️ Era: 1960s (military/ARPANET) — Modern (wireless mesh & critical infrastructure)

🔹 3. Mesh Topology — "The Spider's Web"

🧠 Problem: It's 1969. The US Department of Defense is building ARPANET — the network that would become the Internet. They need a network that can survive a nuclear attack. If a bomb destroys a switching centre in Kansas, data from New York to Los Angeles must automatically find an alternative route through Denver and Phoenix.

Question: If you need multiple alternative routes between every pair of devices, and the network must keep working even after multiple connections are destroyed, what shape does the network form?

🤔 Think about it first, then click to see the solution

You've designed a mesh topology! In a full mesh, every device is connected to every other device. If any one connection fails, data can take a completely different path. In practice, a partial mesh (only the most critical devices have redundant connections) is more common.

🛠️ Historical fact: The ARPANET (1969) used a partial mesh topology with Interface Message Processors (IMPs) as routers. This design concept — redundant paths and automatic rerouting — became the foundation of the modern Internet.

A B C D E 🟡 Route 1: A→B→E (primary) 🔵 Route 2: A→C→E (backup) 🟡 Primary path failing? 🔵 Data automatically reroutes via alternative path

🧱 Why this shape? Imagine a spider's web — if one strand breaks, the spider walks around via another strand. The web doesn't collapse.

📌 What it is: In a full mesh, every device connects to every other. In a partial mesh, only critical devices have redundant connections.

▶️ Watch the animation: Two routes from A to E are shown. The yellow path (🟡 A→B→E) is the primary route. If B fails, the data automatically switches to the blue backup path (🔵 A→C→E). This automatic rerouting is called dynamic routing — the foundation of the Internet's resilience.

✅ Advantages

  • Extremely resilient — no single point of failure
  • Multiple alternative routes — data takes the fastest available path
  • Adding devices doesn't slow the network
  • High security — dedicated connections

❌ Disadvantages

  • Extremely expensive — full mesh needs N(N-1)/2 connections (5 devices = 10 cables!)
  • Complex to set up and manage
  • Many redundant connections may be underused

📊 Where mesh is used today: Wireless mesh networks (Google Nest WiFi, mesh Wi-Fi systems), the Internet backbone (routers in a partial mesh), military networks, and critical infrastructure like hospitals and stock exchanges.

🧠 Think about it: Each topology has its strengths and weaknesses. But real companies don't start from scratch — they grow, merge, and have multiple departments. What happens when your Marketing department has its own switch forming a star network, Engineering has a separate switch for its devices, and your server room needs mesh-level redundancy? You can't use just one topology across the whole company — you need to connect them.

⏱️ Era: 2000s — Today (Real-world networks)

🔹 4. Hybrid Topology — "The Best of Both Worlds"

🧠 Problem: A company has two departments — Marketing and Engineering. Each floor has its own switch, its own devices, and its own local network (star topology). But employees in Marketing need to access the Engineering file server, and Engineering needs to send reports to the Marketing printer. How can two separate star networks talk to each other?

Question: What do you call a network that connects two star subnets together via switches, forming a larger network?

🤔 Think about it first, then click to see the solution

This is a hybrid topology — specifically an Extended Star (Tree Topology) — a combination of two or more star networks connected via switches. In the real world, almost every company network is a hybrid. Each department has its own switch forming a star, and those switches are connected together into a larger network.

🔎 Modern note: Bridges were once used to connect different network segments, but they are now obsolete. Modern networks use switches instead — a switch is essentially a multi-port, high-performance bridge that supports faster speeds (Gigabit / 10GbE) and smarter traffic management.

📊 Star: Marketing SWITCH A PC1 PC2 LAP 🔧 Star: Engineering SWITCH B PC1 SRV PC3 Switch B --> 🔗 UPLINK 🟦 Switch A ↔ 🟩 Switch B: Two star subnets form an Extended Star (Tree Topology)

🧱 Why this shape? Each department grows independently — Marketing installs its own switch, Engineering installs another. To let them communicate, we connect the two switches with an uplink cable. The result is a Tree (Extended Star) topology — a hybrid of multiple stars connected by a backbone.

📌 What it is: A combination of two or more star networks connected via switches. Each subnet is a full star with its own switch. The switches are linked together, forming a larger network. This is the most common network design in the real world — offices, schools, and campuses all use this setup.

▶️ Watch the animation: Data from Marketing crosses the uplink to Engineering's switch (blue dot), and data from Engineering travels back to Marketing (green dot). The switches forward traffic intelligently — they only send data across the uplink when it's addressed to the other subnet.

💡 Exam tip: A common exam question asks you to design a network for a school. The best answer is this exact topology — a star in each classroom (each with its own switch), with a backbone connecting all the switches together. Add a mesh backbone between core switches for higher reliability.

📊 Historical Timeline Summary

Topology Era Problem It Solved Its Own Weakness
🔹 Bus Late 1970s Cheapest way to connect computers (one cable, no switch needed) Data collisions; one backbone break = whole network down
🔹 Star 1990s – Today Fault isolation + no collisions (switch manages traffic) Central switch is single point of failure
🔹 Mesh 1960s + Modern No single point of failure; multiple redundant paths Extremely expensive (N(N-1)/2 connections for full mesh)
🔹 Hybrid 2000s – Today Real-world networks use a mix of topologies connected by switches Complex to manage; needs switches/routers between segments
✏️ Practice 2 — Which Topology?
  1. A primary school has 5 computers and a very limited budget. They want to connect them to share one printer. Which topology would you recommend? State one advantage and one disadvantage.
  2. A stock exchange needs a network where no single failure can stop trading. Which topology is most suitable? Explain why.
  3. A company has 50 computers across 3 floors. Each floor is a star network with its own switch. All switches are connected to a central router. If the switch on Floor 2 fails:
    a) Which floor(s) lose network access?
    b) What topology does this overall design represent?
  4. In a bus topology, what happens when two computers try to send data at the same time? What is this problem called?
  5. Exam-style question: A hospital needs a network connecting 4 departments: A&E (critical), Surgery (critical), Pharmacy, and Admin. The hospital requires:
    • Maximum fault tolerance for A&E and Surgery
    • Cost-effectiveness for Pharmacy and Admin
    Design a suitable network topology arrangement for the hospital. Justify your choice.
  6. Extension question: In a star topology, examine the animation above. Why does the data packet go to the switch before being forwarded to the printer? What would happen if every device could send directly to every other device (like in a mesh)? Compare the cost vs reliability trade-off between star and mesh.
🔍 Check your answers
  1. Bus topology. Advantage: Lowest cost (one cable, no switch). Disadvantage: If the backbone cable breaks, the entire network goes down / performance degrades with more devices.
  2. Mesh topology. Explanation: Multiple redundant paths mean no single point of failure. If one connection fails, data automatically reroutes through alternative paths.
  3. a) Only Floor 2 loses access. Floors 1 and 3 continue working because each floor has its own switch. b) Hybrid topology.
  4. A data collision occurs — the signals crash into each other and both messages are destroyed. Each computer must wait a random time and try again. This is called CSMA/CD (Carrier Sense Multiple Access / Collision Detection).
  5. Sample answer: Use a hybrid topology. A&E and Surgery should use a partial mesh for redundancy. Pharmacy and Admin can use star to save costs. Connect all via a central router. This balances fault tolerance with cost efficiency.
  6. The switch acts as a traffic manager — it receives the packet, reads the destination address, and forwards it only to the correct device. This prevents collisions and ensures only the intended recipient gets the data. In a full mesh, every device connects to every other — this gives maximum reliability (no single point of failure) but is very expensive (N(N-1)/2 cables). Star is a cost-effective trade-off: cheaper than mesh, but the switch is a single point of failure.

2.1.3 How Big Should the Network Be? (LAN and WAN)

🧠 Alex and Jamie's network now connects all 30 computers in their classroom. But their school has three buildings, and the school wants all buildings connected. Then the school wants to connect with a partner school in another country.

Your turn: Do you build the same kind of network for all these connections? What changes when the distance grows from 10 metres to 10,000 kilometres?

Networks are classified by their geographical scope. The two most important categories are LAN (Local Area Network) and WAN (Wide Area Network). The difference isn't just about distance — it affects who owns the infrastructure, how fast data travels, and what hardware you need.

🏢
LAN
"Your private building"

🧱 Analogy: A LAN is like the hallways in your school — all the classrooms (computers) are in the same building, connected by corridors (cables) that the school owns. You don't need to go outside.

📌 Definition: A Local Area Network (LAN) connects computers within a small geographical area (one building, one campus). The organisation owns the infrastructure — they buy, install, and maintain the cables and equipment.

💡 Why it works this way: Because you own the cables, you can use high-speed, dedicated connections (e.g., 1-10 Gbps). No need to lease anything from a phone company. No monthly fees for the internal network.

🌍
WAN
"The global highway"

🧱 Analogy: A WAN is like the national highway system. Your school doesn't own the highways — the government builds and maintains them. You pay to use them. The journey is longer, and you share the road with others.

📌 Definition: A Wide Area Network (WAN) connects computers over a large geographical area (between cities, countries, continents). It uses leased or public infrastructure — telephone lines, fibre-optic cables, or satellite links that you don't own but pay to use.

💡 Why it works this way: You cannot lay your own cable across the Atlantic Ocean. So you lease capacity from telecommunication companies who already own that infrastructure. The Internet is the world's largest WAN.

Feature LAN WAN
Geographical area Small (building/campus) Large (city/country/world)
Infrastructure Privately owned Leased / public
Data transfer speed Very high (1–10 Gbps) Slower (varies with leased line quality)
Example School computer lab, office building The Internet, bank's inter-city network
🔍 Practice 3 — LAN vs WAN

Question: A multinational company has offices in London, Tokyo, and New York. Computers within the London office are connected. The three offices are also connected to each other. Explain whether each connection is a LAN or WAN and why.

Sample Answer:
London office network: LAN — all computers are in the same building (small area), using privately owned cables.
Connection between offices: WAN — offices are on different continents (large area), requiring leased infrastructure like undersea fibre-optic cables.


🔄 So far, we've built the "road map" of our network — how devices are arranged (topologies) and how big the network is (LAN/WAN).
But roads need vehicles, traffic lights, and drivers. What physical devices actually make the network work? That's our next question.

2.1.4 What Hardware Makes a Network Work?

🧠 Alex and Jamie have designed their network layout (star topology) and know it's a LAN. Now they need to buy equipment to actually build it. Their shopping list includes: cables, a switch, NICs, and a router.

Before reading on: They have 30 computers. Each computer has USB ports, HDMI ports, and a power socket. But to connect to a network, each computer needs something special. What is missing from each computer?

Every device on a network needs specific hardware to send and receive data. Each piece of hardware solves a specific problem:

🔹 Step 1: The NIC — How Does a Computer Even Connect?

🔌
NIC
"Network Interface Card"

🧱 The Problem It Solves: A computer is designed to process data internally, not to send it to another computer. It needs a translator and a door to the outside network.

📌 What it is: A Network Interface Card (NIC) is a hardware component that provides the physical connection between a computer and the network. Every device on a network needs one.

💡 Why it exists: Before NICs, computers were isolated. The NIC gives each computer a unique hardware address (MAC address) — like a fingerprint — that identifies it on the network forever.

WNIC (Wireless NIC): What if you don't want a cable? A WNIC does the same job but wirelessly:

  • Acts as an antenna — receives analogue radio waves and converts them to digital/binary
  • Takes digital input and converts it to analogue radio waves for transmission
  • Checks incoming transmissions for the correct MAC/IP address
  • Encrypts and decrypts data for secure wireless communication

🔹 Step 2: The Switch — How Do Many Devices Talk to Each Other?

🔀
Switch
"The Smart Traffic Director"

🧱 The Problem It Solves: With 30 computers in a star topology, every cable goes to a central point. But who decides which data goes where? If Alex sends a file to Jamie, how does the file avoid going to all 28 other computers?

📌 What it is: A switch connects devices within a LAN and intelligently forwards data to only the intended recipient. It learns which devices are connected to which port by storing their MAC addresses.

💡 Why it exists: Before switches, networks used hubs — dumb devices that sent all data to all ports. Hubs caused collisions and wasted bandwidth. The switch was invented to eliminate unnecessary traffic: data goes only to the device that needs it.

🔹 Step 3: The Server — Where Do We Keep Shared Files?

🗄️
Server
"The Central Library"

🧱 The Problem It Solves: With 30 computers, where should students save their work so everyone can access it? If files are on individual computers, those computers must be on whenever someone needs the file.

📌 What it is: A server is a device (or software) that provides a specific function for computers on the network — e.g., file server (stores shared files), web server (hosts websites), print server (manages print jobs).

💡 Why it exists: A dedicated computer that stays on 24/7, stores data centrally, runs security software, and performs backups. Clients connect to it when they need resources.

🔹 Step 4: The WAP — What About Phones and Tablets?

📡
WAP
"Wireless Access Point"

🧱 The Problem It Solves: The network is all wired — great for desktop computers, but students want to use their laptops and phones anywhere in the room. Running cables to every seat is impractical.

📌 What it is: A Wireless Access Point (WAP) provides radio communication from the central device (switch) to wireless nodes, allowing wireless-enabled devices to connect to the wired network.

💡 Why it exists: The WAP bridges the gap between the wired network and wireless devices. It receives data from the switch, converts it to radio signals, and broadcasts them. It also receives radio signals from devices and forwards them to the switch.

🔹 Step 5: Extending the Network — Bridge and Repeater

Device Problem It Solves How It Works
Bridge Two separate LANs that use the same protocol need to communicate, but you don't want all their traffic mixing Connects two LANs/segments and forwards only necessary data between them, reducing overall traffic
Repeater Electrical signals weaken as they travel through cables. Beyond ~100m, data becomes unreadable Receives the weakening signal, restores/amplifies it, and retransmits it so it can travel further

🔹 The Router — Connecting Your Network to the World

📮
Router
"The Post Office"

🧱 The Problem It Solves: The switch connects devices within the school's LAN. But how does the school connect to the outside world — the Internet? How does data from the school find its way to a server in Japan?

📌 What it does: A router connects two or more networks together (e.g., the school's LAN and the Internet). It receives data packets, examines their IP addresses, and forwards them toward their destination using a routing table.

💡 Why it exists: A switch only knows about devices on its own LAN. A router knows about other networks. It's the device that decides: "This data is for a device on our LAN → keep it local. This data is for a device on the Internet → send it out through the WAN connection."

Router Functions in Detail

  • Receives packets from devices or the internet
  • Reads the destination IP address in each packet
  • Consults its routing table to find the most efficient path
  • Forwards packets to the next hop on that path
  • Assigns private IP addresses to devices on the LAN (using DHCP)
  • Maintains a table of MAC and IP addresses for local devices
🔍 Practice 4 — LAN Hardware

Question 1: Distinguish between the role of a switch and the role of a router in a network.

Sample Answer:
A switch connects devices within a single LAN and forwards data to the specific device it is intended for using MAC addresses. A router connects two or more networks (e.g., a LAN to the Internet) and forwards data packets between them using IP addresses and a routing table.

Question 2: Explain why a repeater might be needed in a large office network.

Sample Answer:
Electrical signals in a cable weaken over distance (signal degradation). If the office is large and cables run over 100 metres, the data signal becomes too weak to read. A repeater restores and amplifies the signal so it can continue travelling to its destination.


2.1.5 How Should We Organise the Computers? (Client-Server vs P2P)

🧠 Alex's school network now has 30 computers connected via a switch, with a server for shared files, and a router for internet access. The IT teacher asks: "Who controls what? Should one computer be in charge, or should every computer be equal?"

Your turn: If you had 30 computers — some belong to students, one is the teacher's machine, one stores shared files — how would you organise who can access what?

🔹 Client-Server — "The Library"

🏛️
Client-Server
"The Library — one librarian, many visitors"

🧱 The Problem It Solves: Without central control, who manages security? Who ensures all students save their work? Who decides who can access sensitive files? In a school, you need one authority — a teacher who controls permissions.

📌 What it is: One or more central computers (servers) provide services and resources to client computers. The server manages security, backups, and file access. Clients request services from the server.

💡 Why it exists: Central management reduces chaos. Instead of configuring 30 computers individually, the IT admin manages one server. Security is stronger because all access goes through the server, which can enforce passwords and permissions.

Example — Downloading a file:

  1. Teacher saves a homework file on the school's file server
  2. Alex opens his browser (client software) and requests the file
  3. The server checks: "Is Alex authorised to access this file?" ✓
  4. The server sends the file to Alex's computer

Benefits: Centralised security, centralised backup, easier management, less powerful (cheaper) client computers needed.

🔹 Peer-to-Peer (P2P) — "The Potluck Dinner"

🤝
Peer-to-Peer (P2P)
"The Potluck Dinner — everyone brings a dish"

🧱 The Problem It Solves: Alex and Jamie just want to share a few files between their two laptops. They don't have a server, don't need central security, and don't want to set up complex permissions. They just want to share directly.

📌 What it is: All computers have equal status. Each can act as both client (requesting files) and server (providing files). No central authority — each computer manages its own security and data.

💡 Why it exists: For small groups (2-10 computers), setting up a dedicated server is overkill. P2P is simple and free — just connect the computers and share folders. Each computer is both a host and a guest.

Benefits: No expensive server hardware (save money), easy to set up (just connect and share), resilient (if one peer goes offline, others still work).

Drawbacks: Reduced security (each computer manages its own, weakest link vulnerability), no central backup (data lost if computer fails), performance issues (peers slow down when accessed by others).

Feature Client-Server Peer-to-Peer
Management Centralised (one server controls everything) Decentralised (each computer manages itself)
Security Strong — single point of control for passwords Weak — only as secure as the weakest computer
Backup Centralised (backup once on server) Each user must back up their own computer
Cost Higher (server hardware + IT admin) Lower (no dedicated server needed)
Best for Schools, companies, organisations (10+ computers) Small groups, home networks, file sharing (BitTorrent)

Thin-Client vs Thick-Client

In a client-server network, clients come in two flavours. The difference is how much work the client does vs how much the server does:

🪶
Thin-Client
"The Smart TV — all the brains are in the cloud"

🧱 The Problem It Solves: Schools have hundreds of computers. Buying powerful computers for every desk is expensive. What if the computer at the desk was just a screen and keyboard, and all the actual work happened on the server?

📌 What it is: The server performs ALL processing. The thin-client only sends input (keyboard/mouse) to the server and displays the results. No data is stored locally.

💡 Why it exists: Thin-clients are cheap (minimal hardware), secure (no data on the local machine), and easy to manage (updates happen once on the server). If a thin-client breaks, just swap it — no data lost.

🖥️
Thick-Client
"The Gaming PC — does most of its own work"

📌 What it is: The client does most of its own processing. Software is installed locally. The server provides minimal support — maybe file storage or authentication.

💡 Why it exists: Some tasks (like video editing, 3D rendering, gaming) need local processing power. A thin-client can't handle these — the latency of sending everything to the server would make it unusable.

🔍 Practice 5 — Network Models

Question 1: A school needs a network where the IT department can control which websites students visit and ensure all files are backed up centrally. Should they use client-server or P2P? Justify.

Sample Answer:
Client-server. The server provides centralised management: IT can set internet filtering policies once on the server, all student files are stored on the server (enabling central backup), and students require usernames/passwords to access resources, improving security.

Question 2: A hospital installs thin-client computers at nurse stations. Give two characteristics of a thin-client that make this suitable.

Sample Answer:
1. Data is not stored on the client — patient records remain on the central server, improving security and privacy.
2. The client performs minimal processing — nurse stations can use cheap, low-power devices that only display the server's output.


2.1.6 To Cable or Not to Cable? (Wireless vs Wired)

🧠 The school's network is up and running with cables. But now students want to bring their own laptops and phones and connect from anywhere in the building. Teachers want to walk around the classroom while projecting from their tablet.

Your turn: What are the trade-offs between cables (wired) and radio signals (wireless)? When would you choose each one?

The choice between wired and wireless isn't about which is "better" — it's about which trade-offs matter for your situation.

Wired Transmission Media

Medium How It Carries Data Best For
Copper Cable Electrical signals through twisted copper wires Short distances, where cost matters, where flexibility is needed
Fibre-Optic Cable Pulses of light through thin glass fibres Long distances, high bandwidth, high security (impossible to tap without detection)

Copper vs Fibre-Optic Comparison (Exam Focus):

  • ✅ Fibre-optic: greater bandwidth (more data per second), longer distance without boosting, more secure (harder to tap), no electromagnetic interference, lighter weight
  • ✅ Copper: cheaper, easier to install (more flexible), technology is more established/widespread, easier to make terminations

Wireless Transmission Media

Medium How It Works Example Use
Radio Waves (WiFi) EM waves on 2.4 GHz / 5 GHz frequencies Local wireless networking in homes and offices
Microwaves Higher-frequency EM waves, requires line of sight Point-to-point links between buildings
Satellites Devices in orbit receive and retransmit signals Global communication, TV, GPS, remote internet

Wired vs Wireless — The Key Trade-Offs

Factor Wired Wireless
Speed ✅ Faster, more consistent ❌ Slower, varies with interference
Security ✅ Harder to intercept (needs physical access) ❌ Easier to hack (signals travel through air)
Mobility ❌ Device must be physically connected ✅ Device can move freely
Setup cost ❌ Higher (cabling infrastructure) ✅ Lower (no cables to install)
🔍 Practice 6 — Wired vs Wireless

Question: A hospital wants doctors to access patient records from portable tablets as they move between wards. However, patient data is highly sensitive. Advise whether the hospital should use wired or wireless networking, explaining the trade-offs.

Sample Answer:
The hospital should use wireless networking with strong encryption because the doctors need mobility to access records while moving between wards — wired connections would not allow this. The trade-off is reduced security (wireless signals can be intercepted), so the hospital must implement robust encryption (e.g., WPA3) and access controls to protect patient data. If absolute security were the only concern, wired would be better, but mobility is essential for patient care.


2.1.7 How Do We Avoid Traffic Jams? (Ethernet & CSMA/CD)

🧠 The school network is built. But now 30 students are sending files at the same time. In a bus topology, all data shares one cable. In a star topology, the switch helps, but what about the cables between devices and the switch?

Your turn: Imagine 30 people in one room, all trying to talk at once. Nobody can hear anything. How would you solve this? (This is exactly the problem Ethernet's CSMA/CD was created to solve.)

🚗💥
CSMA/CD
"The One-Lane Bridge — listen before you speak"

🧱 The Problem It Solves: On a shared medium (like a bus topology cable), two devices transmitting at the same time cause a collision — their signals interfere and both messages are lost. How do we prevent this?

📌 What it is: Carrier Sense Multiple Access / Collision Detection — a protocol that governs how devices share a transmission medium to avoid data collisions.

💡 Why it was invented: In early Ethernet networks, all devices shared the same cable (bus topology). Without CSMA/CD, any two devices transmitting simultaneously would corrupt each other's data. The protocol ensures orderly access.

How CSMA/CD Works — Step by Step

1 Carrier Sense — "Listen first"

Before transmitting, the device listens to the cable to check if another device is already transmitting.

2 Send if Free

If the channel is free, the device transmits its data. If busy, it waits and tries again.

3 Collision Detection

If two devices transmit at the same time, a collision occurs. Both detect the collision immediately.

4 Jam Signal + Retry

Both send a jamming signal (telling all devices "collision!"). Both wait a random amount of time, then try again from step 1.

💡 The "Random Wait" Insight: Why random? If both devices waited the same fixed time, they'd collide again — and again, and again forever. Random timing ensures that eventually, one device will transmit while the other is still waiting.

Drawbacks of CSMA/CD

  • ❌ Random waiting time increases each time — can lead to infinite waiting on a busy network
  • ❌ Not scalable — more devices means exponentially more collisions
  • ❌ Cannot prioritise certain devices (all are equal)
  • ❌ Only suitable for short-distance networks
🔍 Practice 7 — CSMA/CD

Question: Describe what happens when two devices on an Ethernet network try to transmit data at exactly the same time.

Sample Answer:
1. Both devices sense the channel is free and begin transmitting simultaneously.
2. Their signals collide on the shared medium.
3. Both devices detect the collision and send a jamming signal to notify all devices.
4. Both devices wait a random amount of time before attempting to retransmit.
5. Because the wait times are random, one device will likely transmit before the other, avoiding another collision.


🔄 So far, we've built a local network from the ground up — chosen a topology, added hardware, organised the computers, and solved the collision problem.
Now it's time to connect this network to the rest of the world. How does data travel from a school in London to a server in Tokyo? What makes the Internet actually work?

2.1.8 Connecting to the World (The Internet and WWW)

🧠 Alex and Jamie's school network is now fully functional. But Jamie wants to show Alex a website she found: www.cscompass.cn. Alex types it into his browser... and the page appears.

But what actually happened? How did Alex's browser know where to find the website? How did the data travel from a server to his screen? And — important exam question — is the Internet the same thing as the World Wide Web?

🌐
The Internet
"The road network"

📌 Definition: The Internet is a global network of interconnected computer networks using the TCP/IP protocol. It is the physical infrastructure — cables, routers, satellites, and protocols — that connects billions of devices worldwide.

💡 Think of it as: The road network connecting cities. The roads, highways, traffic lights, and signs are the infrastructure. The cars and trucks driving on them are the data.

🌍
World Wide Web (WWW)
"The traffic on the roads"

📌 Definition: The WWW is a collection of web pages/documents stored on websites, accessed using browsers via HTTP/HTTPS. It is a service that runs on top of the Internet.

💡 Think of it as: The cars, trucks, buses, and their cargo travelling on the road network. The cargo (information) is only useful because the roads exist to carry it.

Feature Internet World Wide Web (WWW)
What it is Global network infrastructure Collection of web pages and documents
Protocol TCP/IP (the foundation) HTTP/HTTPS (runs on top of TCP/IP)
Access method Any internet-capable device Web browser (Chrome, Firefox, Safari)
Analogy The road network The traffic/cargo on the roads

Hardware That Supports the Internet

Technology Problem It Solves How It Works
Modem Computers are digital, telephone lines are analogue Converts digital → analogue (modulation) and analogue → digital (demodulation)
PSTN Need a global communication infrastructure that already exists The existing telephone network, with dedicated channels and switching centres
Dedicated Lines Need guaranteed bandwidth without sharing A direct, private connection between two points — faster and more reliable
Cell Network Mobile devices need wireless internet access Land divided into cells, each with a tower — low-power radio signals connect devices
🔍 Practice 8 — Internet vs WWW

Question: A student says "I use the Internet to check my email and browse the WWW." Explain why this statement is both correct and slightly inaccurate.

Sample Answer:
The statement is correct in everyday language, but inaccurate in technical terms. The Internet is the global network infrastructure (TCP/IP) that carries data. Email and the WWW are both services that run on the Internet. The WWW is specifically web pages accessed via HTTP, while email uses different protocols (SMTP, POP3, IMAP). Both use the Internet as their transport medium.


2.1.9 How Do We Find Anything on This Giant Network? (IP Addresses)

🧠 The Internet connects billions of devices. When Alex visits www.cscompass.cn, how does his request find the one specific server that hosts that website — out of billions of possibilities?

Your turn: Imagine sending a letter to someone in a city of 10 million people. What information do you need to put on the envelope? Now multiply that by the entire planet. How would you design an addressing system for every device on Earth?

IP Addresses — The Internet's Addressing System

Every device on a network needs a unique identifier. Just as your home has a unique postal address, every device on the Internet has a unique IP address (Internet Protocol address).

💡 Memory Hook: An IP address is like a postal address for your computer. The post office (router) reads the address and knows exactly where to deliver the package (data).

IPv4 vs IPv6

⚠️ The Problem: We Ran Out of Addresses

IPv4 was designed in the 1980s, when the Internet was a small research network. It provides ~4.3 billion addresses. Today, every phone, laptop, smart TV, watch, and even refrigerator needs an IP address. We ran out. IPv6 was created to solve this — it provides 340 undecillion addresses (enough for every grain of sand on Earth to have billions of addresses).

Feature IPv4 IPv6
Address length 32 bits 128 bits
Format 4 decimal groups, 0-255, separated by dots
192.168.0.1
8 hexadecimal groups, 0-FFFF, separated by colons
2001:0db8::1
Total addresses ~4.3 billion ~340 undecillion (virtually unlimited)

Public vs Private IP Addresses

Feature Public IP Private IP
Visibility Visible on the Internet — any device can reach it Only visible within the local LAN — hidden from the Internet
Assignment By ISP (Internet Service Provider) By the router (DHCP) within the LAN
Why use it? For servers that must be accessible from anywhere For security + conserving public IP addresses

Key insight: Your home router has one public IP address, but assigns private IPs (like 192.168.0.x) to all your devices. When you visit a website, the router uses NAT (Network Address Translation) to map your private IP to its public IP and back. This means 100 devices in your home only need 1 public IP address — conserving the limited IPv4 space.

Static vs Dynamic IP Addresses

Feature Static IP Dynamic IP
Definition Fixed — never changes May change each time a device re-joins the network
Best for Web servers — DNS must always point to the correct IP Normal devices (laptops, phones) — automatic assignment is convenient

Subnetting

Subnetting divides a large network into smaller, manageable subnetworks. Each subnetwork shares the same network ID but gives each device a unique host ID. Benefits include: reduced traffic (data stays within its subnet), improved security (compromised device doesn't expose the whole network), easier maintenance, and simpler expansion.

🔍 Practice 9 — IP Addresses

Question: A company uses private IP addresses for its internal network. Explain two reasons for this choice and how employees still access the Internet.

Sample Answer:
Security: Private IP addresses are not visible from the Internet, so external attackers cannot directly target internal devices. Address conservation: Only the router needs one public IP address for all employees, reducing the number of public IP addresses needed. Employees access the Internet through NAT (Network Address Translation) on the router, which translates private IPs to the router's public IP for outgoing traffic.


2.1.10 How Do We Remember All Those Numbers? (URLs and DNS)

🧠 Every website needs an IP address. The IP address of google.com is 142.250.80.4. But Alex doesn't type 142.250.80.4 — he types www.google.com.

Your turn: Imagine having to memorise a phone number for every website you visit. How many would you remember? Three? Five? Now there are billions of websites. How do we solve the problem of remembering IP addresses?

📖
DNS
"The Internet's Phonebook"

🧱 The Problem It Solves: Humans are terrible at remembering numbers. We're great at remembering words. DNS translates the words we can remember (domain names like google.com) into the numbers computers need (IP addresses like 142.250.80.4).

📌 Definition: The Domain Name Service (DNS) is a distributed database that maps human-readable domain names to machine-readable IP addresses.

URL Structure

A URL (Uniform Resource Locator) is the full address of a resource on the web:

https://www.cscompass.cn/courses/python

Protocol   Subdomain   Domain name       Path
  |           |            |               |
https://   www.    cscompass.cn    /courses/python
  • Protocol: How to communicate (HTTP, HTTPS, FTP)
  • Subdomain: A specific section of the domain (www, mail, etc.)
  • Domain name: The human-readable name of the website
  • Path: The specific page or resource within the website

How DNS Works — The Complete Journey

1. You type a URL

Alex types www.cscompass.cn into the browser.

2. Browser asks DNS

The browser sends the URL to the nearest DNS server.

3. DNS looks up the URL

Finds matching IP address in its database. If not found locally, forwards to a higher-level DNS.

4. DNS returns IP address

The IP is returned to the browser (and cached for future requests).

5. Browser requests the page

Using the IP address, the browser sends an HTTP request to the web server.

6. Web server responds

The server sends back the web page. The browser interprets it and displays it.

💡 Why caching matters: When you visit a website, your browser and the DNS server both cache (store) the IP address for a while. Next time you visit the same site, the lookup is instant. This is why changing a website's IP address can take hours or days to propagate worldwide.
🔍 Practice 10 — DNS

Question: Describe the steps from a user typing www.example.com into a browser to the web page being displayed. Include the role of DNS.

Sample Answer:
1. The browser sends the URL to the nearest DNS server.
2. The DNS server looks up the domain name in its database and finds the matching IP address.
3. If not found, the request is forwarded to a higher-level DNS server until the IP is located.
4. The IP address is returned to the browser (and cached).
5. The browser sends an HTTP request to the web server using the IP address.
6. The web server retrieves the requested page and sends it back.
7. The browser interprets the HTML code and displays the web page.


2.1.11 Watching Video Without Downloading (Bit Streaming)

🧠 Jamie wants to watch a 2-hour movie. The file is 4 GB. She doesn't have enough free space on her laptop to download the whole file. But she can still watch it instantly!

Your turn: How can you watch a 4 GB movie without first downloading 4 GB to your computer? What technology makes this possible?

Bit streaming is the continuous transmission of data over a network so the recipient can process it as it arrives — without waiting for the entire file to download.

💡 Memory Hook: Bit streaming is like a water tap — you turn it on and water flows continuously. You fill your glass as the water arrives, without waiting for the entire reservoir to be delivered first.

How Video Bit Streaming Works

  1. Video is compressed before transmission (reduces file size)
  2. The video is hosted on a media server
  3. The server sends the data continuously as a series of bits
  4. The client computer receives the data into a buffer (temporary storage)
  5. The user's media player reads from the buffer while the next data arrives

Real-Time vs On-Demand Streaming

Feature Real-Time Streaming On-Demand Streaming
Source Live event — camera feeds directly to server Pre-recorded file stored on server
User control Cannot pause, rewind, or fast-forward Can pause, rewind, fast-forward, rewatch
Example Live sports match, live news broadcast Netflix, YouTube video, Spotify music

Importance of Broadband Speed

Bit streaming requires a minimum broadband speed to work smoothly. If the connection is too slow, the buffer empties faster than data arrives, causing the video to stop and "buffer" (a spinning wheel). Higher bit rate = better quality, but also requires faster internet.

🔍 Practice 11 — Bit Streaming

Question: Distinguish between real-time bit streaming and on-demand bit streaming.

Sample Answer:
Real-time streaming broadcasts a live event as it happens (e.g., a football match), and the user cannot pause or rewind. On-demand streaming delivers pre-recorded content when the user requests it (e.g., Netflix), and the user can pause, rewind, or fast-forward at any time.


2.1.12 Storing Data Elsewhere (Cloud Computing)

🧠 Alex's school doesn't want to buy and maintain expensive servers. They want to use Google Drive for file storage, Gmail for email, and online tools for document editing. All their data is stored on Google's servers, not in their school building.

Your turn: What are the advantages and risks of storing your files on someone else's computer? When would you choose the cloud vs keeping everything local?

☁️
Cloud Computing
"The laundry service"

🧱 The Problem It Solves: Buying, maintaining, securing, and backing up your own servers is expensive and requires expertise. Cloud computing lets you rent computing resources from a provider instead of owning them.

📌 Definition: Cloud computing is the delivery of computing services (storage, processing, software) over the Internet from remote servers.

Benefits: Access from anywhere, no hardware to maintain, automatic backups, easy collaboration, scalable storage.

Drawbacks: Requires internet access, reliant on provider's security, potential privacy concerns, ongoing subscription costs.

Public vs Private Cloud

Feature Public Cloud Private Cloud
Definition Services offered by a third-party provider over the public Internet Services available only to selected users, over the Internet or a private network
Control Less control — provider manages infrastructure Greater control over security, privacy, backups
Example Google Drive, Dropbox, iCloud A bank's internal cloud for customer financial data
🔍 Practice 12 — Cloud Computing

Question: A hospital is deciding whether to use a public cloud or private cloud for storing patient records. Advise which option is more suitable and justify your answer.

Sample Answer:
A private cloud is more suitable. Patient records are highly sensitive and subject to strict privacy regulations. A private cloud gives the hospital greater control over security and privacy — they can decide exactly who has access, where data is stored, and how backups are managed. A public cloud would expose patient data to third-party infrastructure, increasing the risk of a data breach.


📚 Key Terms — Chapter 2

🏢
LAN
"Your private building"

🧱 Analogy: Hallways in your school — all rooms in the same building, connected by corridors the school owns.

📌 Definition: A LAN connects computers within a small geographical area using privately owned infrastructure.

🌍
WAN
"The national highway"

🧱 Analogy: The national highway system — connects cities, you don't own the roads, you pay to use them.

📌 Definition: A WAN connects computers over a large geographical area using leased or public infrastructure.

🔀
Switch
"The smart traffic director"

🧱 Analogy: A post room in a building — receives mail and delivers it to the correct office without broadcasting to everyone.

📌 Definition: A switch connects devices within a LAN and forwards data only to the intended recipient using MAC addresses.

📮
Router
"The post office"

🧱 Analogy: A post office sorting centre — receives packages, reads addresses, consults a route book, and forwards each package toward its destination.

📌 Definition: A router connects two or more networks and forwards packets between them using IP addresses and a routing table.

📖
DNS
"The internet phonebook"

🧱 Analogy: A phonebook — you look up a name (google.com) and find the number (IP address).

📌 Definition: DNS is a distributed database that translates human-readable domain names into machine-readable IP addresses.

🚗💥
CSMA/CD
"The one-lane bridge"

🧱 Analogy: A one-lane bridge — listen before entering (carrier sense), if two cars enter simultaneously they crash (collision), both back up and wait a random time before trying again.

📌 Definition: CSMA/CD is an Ethernet protocol that controls access to a shared transmission medium by detecting and managing data collisions.

Star Topology
"The bicycle wheel"

🧱 Analogy: A bicycle wheel — all spokes meet at the hub. If one spoke breaks, the rest of the wheel keeps working.

📌 Definition: All devices connect independently to a central device (switch/router). The most common topology in modern networks.


📋 Chapter 2 Summary Checklist

🌐 Did you follow the story?

☐ I can explain why networks exist (sneakernet problem → network solution)
☐ I can draw and compare 4 topologies and why each was designed that way
☐ I can explain what problem each hardware device solves (NIC, switch, router, etc.)
☐ I can compare LAN vs WAN and explain the trade-off (ownership vs distance)
☐ I can compare client-server vs P2P and recommend one for a given scenario
☐ I can distinguish thin-client from thick-client
☐ I can compare wired vs wireless and choose based on trade-offs
☐ I can explain how CSMA/CD solves the collision problem
☐ I can distinguish the Internet from the WWW
☐ I understand why IPv6 was needed (IPv4 exhaustion)
☐ I can explain public vs private, static vs dynamic IP addresses
☐ I can describe the full DNS lookup process (URL → IP → page)
☐ I can compare real-time vs on-demand bit streaming
☐ I can compare public vs private cloud and justify a choice
💡 Think like an inventor: Network topologies weren't designed in a boardroom one afternoon. Each one was invented to solve a specific problem that the previous topology couldn't handle. As you read each one, ask yourself: "What broke? What was missing? What problem did this solve?"

The history of network topologies is a story of trade-offs. Every time engineers solved one problem (cost, collisions, reliability), a new problem appeared. Let's walk through this journey — one topology at a time, one problem at a time.

⏱️ Era: Late 1970s — Early 1980s

🔹 1. Bus Topology — "The Party Line"

🧠 Problem: It's 1978. You work at a university with 8 research computers. Each one cost $50,000 — the price of a house. You need to connect them so researchers can share files and a single expensive printer. But network cables cost $5 per metre, and switches don't exist yet (they would be $10,000+ each if they did).

Question: With a very limited budget, what is the absolute cheapest way to connect 8 computers with cable?

🤔 Think about it first, then click to see the solution

The cheapest way is to run one single cable past all the computers and tap into it. That's exactly what the inventors of Ethernet at Xerox PARC did in 1973 — they called it the "bus" because data travels along a shared pathway, like people on a city bus.

🛠️ Historical fact: The first Ethernet network used a thick coaxial cable (called "thicknet" or 10BASE5, 1979) that could run up to 500 metres. Later came "thinnet" (10BASE2, 1985) — thinner, cheaper, and easier to install.

T T PC 1 Sending 📤 PC 2 PC 3 Server Receiving 📥 PC 5 🟡 Data packet travels on shared cable → ALL devices see it

🧱 Why this shape? Imagine a shared party line telephone — one wire runs through a neighbourhood, and everyone's phone connects to the same wire. When someone speaks, everyone hears it.

📌 What it is: All devices connect to a single central cable (the "bus" or backbone). Each device has a "T-connector" that taps into the cable. Both ends of the cable have terminators that absorb signals and prevent reflections.

💡 Design for cost: One cable. No switch. No hub. Just cable, terminators, and T-connectors. This was the cheapest possible way to build a network.

▶️ Watch the animation: The yellow dot is a data packet sent by PC 1 to the Server. On a bus, the signal travels along the backbone and every device sees it — even devices that don't need the data. This is why bus topology has poor security.

✅ Advantages

  • Uses the least cable — lowest cost to install
  • Simple to set up and extend (just tap into the backbone)
  • No extra hardware needed (no switch, no hub)

❌ Disadvantages

  • If the backbone breaks → ENTIRE network dies
  • Data collisions! Two devices cannot transmit at the same time
  • Performance drops sharply as more devices join
  • Low security — all devices see ALL traffic on the cable

🧠 Think about it: Bus topology was cheap and simple, but as networks grew, two serious problems emerged:

  • Data collisions — if two computers transmit at the same time, the signals crash and both messages are destroyed. The more computers, the more collisions.
  • One break = everyone down — a loose cable or damaged backbone took the entire network offline.

Engineers asked: "What if each computer had its own dedicated cable to a central device that manages traffic? No more collisions, no more shared-cable breakages."

⏱️ Era: 1990s — Today (The Modern Standard)

🔹 2. Star Topology — "The Hub-and-Spoke"

🧠 Problem: It's 1992. Your office has 30 computers on a bus network. The network keeps crashing because:
1️⃣ Two people send data → collision → everyone waits
2️⃣ Yesterday the cleaner bumped a cable → entire network down for 4 hours → $50,000 lost

Question: If every computer has its OWN cable that runs to a central device (a switch), and the switch forwards data only to the right destination, what shape does the network form?

🤔 Think about it first, then click to see the solution

You've just designed a star topology! The key innovation: a network switch (or earlier, a hub). Each device has its own dedicated cable to the switch. The switch reads the destination address on each data packet and forwards it only to the correct device.

This solves both bus problems at once:
No collisions — the switch manages traffic, so no two signals crash
Fault isolation — if PC 1's cable breaks, only PC 1 loses connection

🛠️ Historical fact: The 1990 IEEE 802.3i standard (10BASE-T) introduced Ethernet over twisted-pair cable, which naturally used a star topology. Combined with rapidly falling switch prices in the mid-1990s, star became the dominant topology. By 2000, nearly every new network used star.

SWITCH Manages Traffic PC 5 PC 1 📤 Sending PC 2 Printer 📥 Receiving PC 3 🟡 PC 1 sends → Switch forwards → 🟢 Printer receives only

🧱 Why this shape? Imagine a bicycle wheel — all spokes meet at the central hub. If one spoke breaks, you replace just that spoke. The rest of the wheel keeps working.

📌 What it is: All devices connect independently to a central device (switch or router). The switch intelligently forwards data only to its intended destination.

▶️ Watch the animation: The yellow dot (🟡) is a data request from PC 1 to the Printer. It goes to the Switch first. The switch reads the destination address and forwards only to the Printer (🟢). PC 2, PC 3, PC 5 — they see nothing. This is the key difference from bus topology: targeted delivery.

✅ Advantages

  • Fault isolation — one broken cable ≠ entire network down
  • No data collisions — the switch manages all traffic routing
  • Higher performance — dedicated connection per device
  • Easy to add/remove devices — just plug into the switch
  • Better security — data only goes to intended recipient

❌ Disadvantages

  • If the central switch fails → ENTIRE network dies (single point of failure)
  • More cable needed (each device needs its own cable to the switch)
  • Switch hardware adds cost

🏆 Why star is the most common topology today: Modern switches cost as little as $20. The advantages of fault isolation, zero collisions, and easy management far outweigh the extra cable cost. The network in your school, home, and most offices uses a star topology.

🧠 Think about it: Star topology solved collisions and fault isolation, but it has one critical weakness: the central switch is a single point of failure. If the switch dies, everyone loses connection. For a school computer lab, that's annoying. But what if this network controls:

  • 🚑 A hospital's emergency room communication system?
  • ✈️ An airport's air traffic control network?
  • 🏦 A bank's stock trading platform handling $1 billion per minute?

For these systems, "the network is down" is not an option. They need multiple pathways so that if any one path fails, data can take an alternative route. What kind of design gives you multiple paths between every pair of devices?

⏱️ Era: 1960s (military/ARPANET) — Modern (wireless mesh & critical infrastructure)

🔹 3. Mesh Topology — "The Spider's Web"

🧠 Problem: It's 1969. The US Department of Defense is building ARPANET — the network that would become the Internet. They need a network that can survive a nuclear attack. If a bomb destroys a switching centre in Kansas, data from New York to Los Angeles must automatically find an alternative route through Denver and Phoenix.

Question: If you need multiple alternative routes between every pair of devices, and the network must keep working even after multiple connections are destroyed, what shape does the network form?

🤔 Think about it first, then click to see the solution

You've designed a mesh topology! In a full mesh, every device is connected to every other device. If any one connection fails, data can take a completely different path. In practice, a partial mesh (only the most critical devices have redundant connections) is more common.

🛠️ Historical fact: The ARPANET (1969) used a partial mesh topology with Interface Message Processors (IMPs) as routers. This design concept — redundant paths and automatic rerouting — became the foundation of the modern Internet.

A B C D E 🟡 Route 1: A→B→E (primary) 🔵 Route 2: A→C→E (backup) 🟡 Primary path failing? 🔵 Data automatically reroutes via alternative path

🧱 Why this shape? Imagine a spider's web — if one strand breaks, the spider walks around via another strand. The web doesn't collapse.

📌 What it is: In a full mesh, every device connects to every other. In a partial mesh, only critical devices have redundant connections.

▶️ Watch the animation: Two routes from A to E are shown. The yellow path (🟡 A→B→E) is the primary route. If B fails, the data automatically switches to the blue backup path (🔵 A→C→E). This automatic rerouting is called dynamic routing — the foundation of the Internet's resilience.

✅ Advantages

  • Extremely resilient — no single point of failure
  • Multiple alternative routes — data takes the fastest available path
  • Adding devices doesn't slow the network
  • High security — dedicated connections

❌ Disadvantages

  • Extremely expensive — full mesh needs N(N-1)/2 connections (5 devices = 10 cables!)
  • Complex to set up and manage
  • Many redundant connections may be underused

📊 Where mesh is used today: Wireless mesh networks (Google Nest WiFi, mesh Wi-Fi systems), the Internet backbone (routers in a partial mesh), military networks, and critical infrastructure like hospitals and stock exchanges.

🧠 Think about it: Each topology has its strengths and weaknesses. But real companies don't start from scratch — they grow, merge, and inherit old networks. What happens when your Marketing department uses a star network, your Engineering lab still has an old bus network, and your server room needs mesh-level reliability? You can't use just one topology — you need a mix.

⏱️ Era: 2000s — Today (Real-world networks)

🔹 4. Hybrid Topology — "The Best of Both Worlds"

🧠 Problem: Your company has two offices: one uses a star network (new equipment in 2020), the other inherited an old bus network (from the 1990s). You can't afford to rip out and replace everything. And your critical server room needs mesh-level reliability. What do you do?

Question: What would you call a network that uses star in one department, bus in another, and mesh for the servers, all connected together?

🤔 Think about it first, then click to see the solution

This is a hybrid topology — a combination of two or more different topologies connected via bridges or routers. In the real world, almost every large network is a hybrid. Companies grow, merge, add new technology — they end up with a mixture.

Star (Marketing) 📤 Bus (Engineering) PC A PC B 📥 BRIDGE 🟡 Data crosses from Star → Bridge → Bus subnet

🧱 Why this shape? A company grows over time — Marketing installed star, Engineering uses an old bus network. Instead of ripping out one to match the other, they connect both with a bridge.

📌 What it is: A combination of two or more different topologies connected via bridges or routers. Each subnet keeps its internal topology.

▶️ Watch the animation: Data from the Star subnet (Marketing) crosses the Bridge into the Bus subnet (Engineering). The bridge translates between the two topologies so they can communicate.

💡 Exam tip: A common exam question asks you to design a network for a school. The best answer is often a hybrid — star in each classroom (easy to manage), with a mesh backbone connecting the star switches (redundancy).

📊 Historical Timeline Summary

Topology Era Problem It Solved Its Own Weakness
🔹 Bus Late 1970s Cheapest way to connect computers (one cable, no switch needed) Data collisions; one backbone break = whole network down
🔹 Star 1990s – Today Fault isolation + no collisions (switch manages traffic) Central switch is single point of failure
🔹 Mesh 1960s + Modern No single point of failure; multiple redundant paths Extremely expensive (N(N-1)/2 connections for full mesh)
🔹 Hybrid 2000s – Today Real-world networks use a mix of topologies Complex to manage; needs bridges/routers between segments
✏️ Practice 2 — Which Topology?
  1. A primary school has 5 computers and a very limited budget. They want to connect them to share one printer. Which topology would you recommend? State one advantage and one disadvantage.
  2. A stock exchange needs a network where no single failure can stop trading. Which topology is most suitable? Explain why.
  3. A company has 50 computers across 3 floors. Each floor is a star network with its own switch. All switches are connected to a central router. If the switch on Floor 2 fails:
    a) Which floor(s) lose network access?
    b) What topology does this overall design represent?
  4. In a bus topology, what happens when two computers try to send data at the same time? What is this problem called?
  5. Exam-style question: A hospital needs a network connecting 4 departments: A&E (critical), Surgery (critical), Pharmacy, and Admin. The hospital requires:
    • Maximum fault tolerance for A&E and Surgery
    • Cost-effectiveness for Pharmacy and Admin
    Design a suitable network topology arrangement for the hospital. Justify your choice.
  6. Extension question: In a star topology, examine the animation above. Why does the data packet go to the switch before being forwarded to the printer? What would happen if every device could send directly to every other device (like in a mesh)? Compare the cost vs reliability trade-off between star and mesh.
🔍 Check your answers
  1. Bus topology. Advantage: Lowest cost (one cable, no switch). Disadvantage: If the backbone cable breaks, the entire network goes down / performance degrades with more devices.
  2. Mesh topology. Explanation: Multiple redundant paths mean no single point of failure. If one connection fails, data automatically reroutes through alternative paths.
  3. a) Only Floor 2 loses access. Floors 1 and 3 continue working because each floor has its own switch. b) Hybrid topology.
  4. A data collision occurs — the signals crash into each other and both messages are destroyed. Each computer must wait a random time and try again. This is called CSMA/CD (Carrier Sense Multiple Access / Collision Detection).
  5. Sample answer: Use a hybrid topology. A&E and Surgery should use a partial mesh for redundancy. Pharmacy and Admin can use star to save costs. Connect all via a central router. This balances fault tolerance with cost efficiency.
  6. The switch acts as a traffic manager — it receives the packet, reads the destination address, and forwards it only to the correct device. This prevents collisions and ensures only the intended recipient gets the data. In a full mesh, every device connects to every other — this gives maximum reliability (no single point of failure) but is very expensive (N(N-1)/2 cables). Star is a cost-effective trade-off: cheaper than mesh, but the switch is a single point of failure.
📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Communication

Practice with real exam questions from previous sessions

🧪
Chapter Test — Communication

Assess your understanding of this chapter

3

Hardware

2 lessons
Article

3.1 Computers and their Components

Content for 3.1 Computers and their Components coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

3.2 Logic Gates and Logic Circuits

Content for 3.2 Logic Gates and Logic Circuits coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Hardware

Practice with real exam questions from previous sessions

🧪
Chapter Test — Hardware

Assess your understanding of this chapter

4

Processor Fundamentals

3 lessons
Article

4.1 Central Processing Unit (CPU) Architecture

Content for 4.1 Central Processing Unit (CPU) Architecture coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

4.2 Assembly Language

Content for 4.2 Assembly Language coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

4.3 Bit Manipulation

Content for 4.3 Bit Manipulation coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Processor Fundamentals

Practice with real exam questions from previous sessions

🧪
Chapter Test — Processor Fundamentals

Assess your understanding of this chapter

5

System Software

2 lessons
Article

5.1 Operating Systems

Content for 5.1 Operating Systems coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

5.2 Language Translators

Content for 5.2 Language Translators coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — System Software

Practice with real exam questions from previous sessions

🧪
Chapter Test — System Software

Assess your understanding of this chapter

6

Security, Privacy and Data Integrity

2 lessons
Article

6.1 Data Security

Content for 6.1 Data Security coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

6.2 Data Integrity

Content for 6.2 Data Integrity coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Security, Privacy and Data Integrity

Practice with real exam questions from previous sessions

🧪
Chapter Test — Security, Privacy and Data Integrity

Assess your understanding of this chapter

7

Ethics and Ownership

1 lesson
Article

7.1 Ethics and Ownership

Content for 7.1 Ethics and Ownership coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Ethics and Ownership

Practice with real exam questions from previous sessions

🧪
Chapter Test — Ethics and Ownership

Assess your understanding of this chapter

8

Databases

3 lessons
Article

8.1 Database Concepts

Content for 8.1 Database Concepts coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

8.2 Database Management Systems (DBMS)

Content for 8.2 Database Management Systems (DBMS) coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

8.3 Data Definition Language (DDL) and Data Manipulation Language (DML)

Content for 8.3 Data Definition Language (DDL) and Data Manipulation Language (DML) coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Databases

Practice with real exam questions from previous sessions

🧪
Chapter Test — Databases

Assess your understanding of this chapter

9

Algorithm Design and Problem-solving

2 lessons
Article

9.1 Computational Thinking Skills

Content for 9.1 Computational Thinking Skills coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

9.2 Algorithms

Content for 9.2 Algorithms coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Algorithm Design and Problem-solving

Practice with real exam questions from previous sessions

🧪
Chapter Test — Algorithm Design and Problem-solving

Assess your understanding of this chapter

10

Data Types and Structures

4 lessons
Article

10.1 Data Types and Records

Content for 10.1 Data Types and Records coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

10.2 Arrays

Content for 10.2 Arrays coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

10.3 Files

Content for 10.3 Files coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

10.4 Introduction to Abstract Data Types (ADT)

Content for 10.4 Introduction to Abstract Data Types (ADT) coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Data Types and Structures

Practice with real exam questions from previous sessions

🧪
Chapter Test — Data Types and Structures

Assess your understanding of this chapter

11

Programming

3 lessons
Article

11.1 Programming Basics

Content for 11.1 Programming Basics coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

11.2 Constructs

Content for 11.2 Constructs coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

11.3 Structured Programming

Content for 11.3 Structured Programming coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Programming

Practice with real exam questions from previous sessions

🧪
Chapter Test — Programming

Assess your understanding of this chapter

12

Software Development

3 lessons
Article

12.1 Program Development Life Cycle

Content for 12.1 Program Development Life Cycle coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

12.2 Program Design

Content for 12.2 Program Design coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

Article

12.3 Program Testing and Maintenance

Content for 12.3 Program Testing and Maintenance coming soon.

📝
Homework Questions

Homework exercises for this lesson are being prepared. Check back soon!

📝
Past Paper Questions — Software Development

Practice with real exam questions from previous sessions

🧪
Chapter Test — Software Development

Assess your understanding of this chapter