Home/ Assessment Hub/ Paper 1 Crash Course
NIS 2025 · Cambridge AS&A Level · Grade 12 · Paper 1

Paper 1 — Theory Crash Course

Complete exam study guide covering all Paper 1 learning objectives. Every topic includes precise definitions, worked examples from past papers (2023–2025), step-by-step rules, examiner-ready answers, and warnings about the most penalised mistakes.

How to use this guide

  • ⚠️ WARNING Common mistake — marks lost here
  • 📌 DEFINITION Technical term — learn exactly as written
  • 📋 RULE Step-by-step algorithm or procedure
  • ✅ EXAM TIP Ready-made answer aligned to mark scheme
  • 🖼️ IMAGE Placeholder — find and insert this diagram

Chapter 1 — Data and Information

1.1 Number Systems

📌 Binary (Base-2)

A positional number system using only 0 and 1, where each position represents a power of 2. Used because transistors represent exactly two states: on (1) and off (0).

📌 Hexadecimal (Base-16)

Uses 16 symbols (0–9 and A–F) where each single digit represents exactly 4 binary bits (one nibble). A=10, B=11, C=12, D=13, E=14, F=15.

hexadecimal binary decimal conversion table 0-15
hexadecimal binary decimal conversion table 0-15

✅ Exam Tip — "Explain advantages of hexadecimal" (LO 12.1.1.2)

  • Shorter and easier to read than binary — fewer digits to write
  • Easy conversion: group exactly 4 binary bits → 1 hex digit; no arithmetic
  • Less prone to human error when working with memory addresses
  • Widely used by programmers to represent binary values compactly

📋 Rule — Denary → Hexadecimal

  1. Divide denary by 16. Record remainder (≥10 → convert: 10=A…15=F).
  2. Divide quotient by 16 again. Record remainder.
  3. Repeat until quotient = 0. Read remainders bottom to top.

Worked Examples — 2024 & 2025 Papers

92₁₀ → Hex: 92÷16=5 rem 12(C); 5÷16=0 rem 5 → 5C₁₆ 183₁₀ → Hex: 183÷16=11 rem 7; 11÷16=0 rem 11(B) → B7₁₆ (2025 Q1a)
Denary → Binary
Divide by 2 repeatedly; read remainders bottom to top
Binary → Hex
Group 4 bits from right; convert each group to one hex digit
Denary → Octal
Divide by 8 repeatedly; read remainders bottom to top
Binary → Octal
Group 3 bits from right; convert each group

1.2 Binary Arithmetic

📋 Binary Addition Rules

0+0=0 | 0+1=1 | 1+1=0 carry 1 | 1+1+1=1 carry 1

⚠️ Warning — 8-bit Overflow

If addition produces a 9th bit, it is discarded in 8-bit arithmetic. Always show the carry explicitly — mark scheme awards separate marks for showing overflow AND correct 8-bit result.

2025 Paper Q1b — 10101010 + 10111001

10101010 + 10111001 ---------- 1 01100011 ← overflow bit discarded 8-bit result: 01100011

📋 Binary Multiplication (Shift-and-Add)

  1. For each bit of multiplier (right to left): if bit=1, write multiplicand shifted left by that position; if bit=0, write zeros.
  2. Add all partial products using binary addition.

2025 Paper Q1c — 1111 × 111

1111 (×1, shift 0) 11110 (×1, shift 1) 111100 (×1, shift 2) --------- 1101001 = 105₁₀ ✓

1.3 Two's Complement

📌 Two's Complement

Signed binary integer representation where the MSB has negative place value −2^(n−1). All other bits carry normal positive values. To negate: invert all bits, then add 1.

📋 Converting –n to 8-bit Two's Complement

  1. Write +n as 8-bit binary (pad with zeros).
  2. Invert all bits → one's complement.
  3. Add 1 to the result.

2024 Paper Q1b — Represent –15 as 8-bit two's complement

Step 1: +15 = 0000 1111 Step 2: Invert → 1111 0000 Step 3: Add 1 → 1111 0001 ✓

✅ Range of n-bit Two's Complement

  • Min: −2^(n−1)   Max: +2^(n−1) − 1
  • 8-bit: −128 to +127

📋 Binary Subtraction A − B

  1. Convert B to two's complement (= −B).
  2. Add A + (−B) using binary addition.
  3. Discard any carry beyond 8 bits. Remaining 8 bits = A−B.

2024 Paper Q1c — 23₁₀ − 14₁₀

−14: 0000 1110 → invert → 1111 0001 → +1 → 1111 0010 0001 0111 (+23) + 1111 0010 (−14) ----------- 1 0000 1001 → discard overflow → 0000 1001 = 9₁₀ ✓

1.4 Fixed-Point Binary Fractions

📌 Fixed-Point Representation

Binary point at a fixed position. Left bits = positive powers of 2. Right bits = 2⁻¹=0.5, 2⁻²=0.25, 2⁻³=0.125.

fixed point binary

📋 Denary Fraction → Binary (Multiply-by-2)

  1. Multiply fractional part by 2. Record integer part (0 or 1).
  2. Repeat with remaining fractional part.
  3. Read bits top to bottom.

0.75₁₀ → .11₂ and 0.625₁₀ → .101₂

0.75: 0.75×2=1.50→1 | 0.50×2=1.00→1 = .11₂ 0.625: 0.625×2=1.25→1 | 0.25×2=0.50→0 | 0.50×2=1.00→1 = .101₂

✅ 2025 Q1d-iii — Byte as fixed-point (3 fractional bits)

Byte 1 0 1 1 1 0 0 0: integer = 10110=22; fractional = 001=0.125 → Answer: 22.125

1.5 Floating-Point & Normalisation

📌 Floating-Point

Stores a real number as mantissa (significant digits) and exponent (power of 2 scaling the mantissa). Far wider range than fixed-point.

📌 Normalisation Rule

Positive normalised: mantissa starts 0.1... | Negative normalised: mantissa starts 1.0... — ensures maximum precision.

📋 Positive Denary → Normalised Floating-Point

  1. Convert integer part to binary.
  2. Convert fractional part (multiply-by-2).
  3. Write combined: integer.fraction₂
  4. Normalise: shift point left until mantissa = 0.1xxxxxxx
  5. Count shifts = positive exponent.
  6. Express exponent in two's complement.
  7. Write mantissa bits padded to required length.

2023 Paper Q1d — 17.75₁₀ (10-bit mantissa, 6-bit exponent)

17=10001₂ | 0.75=.11₂ → 10001.11₂ Normalise: 0.100011100 × 2⁵ (shift 5 left) Exponent +5 = 000101 (6-bit two's complement) Mantissa (10 bits): 0100011100

2025 Paper Q1e — −23.75₁₀ (mark scheme)

23=10111₂ | 0.75=.11₂ → 10111.11₂ | Exponent=+5 → 0101 Mantissa (12 bits): 101000010000 | Exponent (4 bits): 0101

⚠️ Warning — Non-Normalised Mantissa

Mantissa 0.01... is NOT normalised — wastes a bit of precision. First bit AFTER binary point MUST be 1 (positive) or 0 (negative). Examiner checks this explicitly.

1.6 Security vs. Privacy vs. Data Integrity

📌 Data Security

Technical measures protecting data from unauthorised access, loss, or damage. Security = HOW data is protected.

📌 Data Privacy

Legal/ethical rights governing WHO may view, access, share, or sell personal data.

📌 Data Integrity

Assurance that data is accurate, complete, and unaltered. Integrity = WHETHER data is correct.

⚠️ Three Completely Separate Concepts

Security=HOW. Privacy=WHO. Integrity=WHETHER. Writing "security means keeping data private" or "integrity means protecting from hackers" scores zero. The examiner marks each definition independently.

✅ "State two differences: data security vs data integrity" (2025 Q2a)

  1. Integrity deals with validity/accuracy; security deals with protection from unauthorised access.
  2. Security prevents unauthorised access; integrity prevents human error or corruption during data entry.

1.7 Data Backup vs. Disk Mirroring

📌 Data Backup

A periodic copy made at a specific point in time, stored separately (offline/off-site/cloud). Allows recovery to any previous state.

📌 Disk Mirroring (RAID 1)

All write operations simultaneously duplicated to a second physical disk in real time. Hardware redundancy only — no historical copies.

FeatureData BackupDisk Mirroring
TimingPeriodic (daily/weekly)Instantaneous — real time
Historical copies✓ Yes✗ No — current state only
Hardware failure✓ Yes✓ Yes
Accidental deletion✓ Yes✗ No — mirrored instantly
Ransomware attack✓ Yes✗ No — encrypted files mirrored
Virus spread✓ Yes✗ No — spreads to mirror
RAID 1 disk mirroring vs backup ransomware diagram

⚠️ Disk Mirroring is NOT a Backup — Most Penalised Error

Any answer stating "mirroring IS a type of backup" scores zero. Ransomware, deletion, virus = instantly replicated to second drive. Only offline backup preserves clean historical data.

✅ "Consequence of absence of disk mirroring" (2025 Q2b-ii — any one)

  • A failed drive cannot be replaced while the computer is running
  • A virus attacking one disk will spread to the mirrored disk
  • Accidental deletion on one disk causes deletion on the other

1.8 Encryption & Access Rights

📌 Encryption

Converting plaintext into unreadable ciphertext using a mathematical algorithm and key. Only a party with the correct decryption key can recover the original data.

Image to insert

Plaintext → [Encryption+Key] → Ciphertext → (network) → [Decryption+Key] → Plaintext. Хакер перехватывает — видит только ciphertext.

Поиск: "encryption decryption process diagram key ciphertext"

✅ "Describe how encryption keeps information secure" (2025 Q2c — 2 marks)

  1. Data converted using algorithm and key into ciphertext unreadable without the correct decryption key.
  2. Secures data while in transit (online transactions, email, file transfers) so intercepted data cannot be read.

📌 Access Rights

Permissions assigned to users/processes defining which resources they may read, write, execute, or delete. Implements the principle of least privilege.

✅ "Two measures to protect confidential data" (2024 Q2a — any two)

  • Encrypting data
  • Granting limited access rights to authorised users only
  • Blocking access from certain IP locations
  • Keeping logs of all user entries

1.9 Verification vs. Validation

📌 Data Verification

Checking that data entered accurately matches the original source document. Checks whether data was copied correctly — NOT whether it is true.

📌 Data Validation

Automatic check that data is reasonable, sensible, and follows predefined rules. Cannot determine whether data is actually true.

⚠️ Validation Does NOT Check if Data is True

Validation confirms "Age: 25" is a positive integer within range. It cannot confirm this is the person's real age. Writing "validation checks if data is correct/true" = zero marks. Reward words: "reasonable" or "follows the rules."

Image to insert

Слева: Verification — двойной ввод пароля. Справа: Validation — Range Check для поля Age (0–120).

Поиск: "data validation vs verification examples comparison"

✅ "Define data verification" (2024 Q2b — 2 marks)

  1. Computer ensures data input matches the original source document.
  2. Done by double entry or on-screen checking — two entries compared.
Validation MethodChecksExample
Range checkValue within min–maxAge 0–120; month 1–12
Type checkCorrect data typeAge must be integer not "twenty"
Presence checkRequired field not emptyName cannot be blank
Format checkMatches defined patternDate must be DD/MM/YYYY
Length checkWithin character limitPassword 8–20 characters
Check digitMathematical verificationISBN, barcode, credit card

1.10 System Protection Measures

Image to insert

Инфографика: Firewall, Biometrics, Anti-virus, Encryption, 2FA, Physical lock, Strong password — каждая с иконкой и 1 строкой.

Поиск: "cybersecurity protection measures icons infographic"
MeasureDefinitionProtects against
FirewallMonitors and filters network traffic by predefined rulesUnauthorised network intrusion
BiometricsAuthentication via fingerprint, retina, facial recognitionUnauthorised physical/logical access
Anti-virusDetects and removes malware by signature comparisonViruses, trojans, worms
EncryptionConverts data to ciphertext readable only with keyData theft in transit/storage
2FATwo forms of verification (password + OTP)Account compromise
Access rightsPer-user read/write/execute permissionsPrivilege escalation

⚠️ Anti-Cracking ≠ General Security

Backup, firewall, antivirus are NOT accepted as "ways to protect against cracking." Required: two-factor authentication, password complexity, SSL/HTTPS, encryption, password hashing, login monitoring.

1.11 Open-Source vs. Closed-Source

📌 Open-Source Software

Released under a licence permitting each recipient to view, copy, modify, and redistribute the source code without paying a fee.

📌 Closed-Source (Proprietary) Software

Source code protected as intellectual property and not released to users. Only compiled executable available under a licence agreement.

⚠️ Open-Source ≠ Free to Download

Open-source means the source code is legally accessible. Marks awarded for mentioning "source code licence" and "right to copy/modify/redistribute" — NOT merely "it's free."

Open-Source
  • Source code accessible ✓
  • Usually free
  • User may modify (under licence)
  • Community support
  • Linux, Firefox, Python
Closed-Source
  • Source code protected ✗
  • Usually requires payment
  • User cannot modify
  • Dedicated vendor support
  • Windows, Photoshop, iOS

✅ "Describe open-source software" (2024 Q3a-i — 2 marks)

  1. Released under a licence permitting each recipient to copy and modify the software.
  2. Does not require a fee or royalty for the right to copy, modify, or distribute.

Chapter 2 — Computer Systems

2.1 Operating System — Functions

📌 Operating System

System software managing hardware resources, providing a platform for applications, and acting as intermediary between the user and hardware.

Image to insert

Пирамида: Hardware → OS → Application Software → User. Двусторонние стрелки.

Поиск: "operating system layer diagram hardware OS application user"

✅ "Explain two functions of an OS" (1 mark each)

  • Memory management: allocates RAM; manages virtual memory; handles paging/segmentation
  • Processor management: schedules processes; enables multitasking
  • Device management: controls I/O via device drivers
  • User account management: manages profiles, access rights, authentication
  • Interrupt handling / Error handling / Security

2.2 Types of Operating Systems

Image to insert

Три карточки: RTOS (монитор+дедлайн), NOS (сервер+клиенты), Batch OS (стопка заданий).

Поиск: "real-time network batch operating system types"
OS TypeDefinitionKey FeatureApplications
Real-Time OS (RTOS)Guarantees processing within strict time deadlinesMissing deadline = system failurePacemakers, aircraft, ABS, robots
Network OS (NOS)Manages network resources; centralised services to clientsCentralised auth and access rightsWindows Server, Linux server
Batch Processing OSGroups similar jobs; processes without user interactionNo real-time interaction; jobs sorted firstPayroll, bank statements, simulations

✅ "How NOS implements user account management" (2025 Q3b)

  1. Provides authentication and authorisation — only authorised users access resources.
  2. Verifies user identities and assigns appropriate access rights based on account role.

2.3 User Interfaces

Image to insert

Четыре иллюстрации: GUI (рабочий стол), CLI (терминал), Natural Language (голосовой), Gesture (рука).

Поиск: "user interface types GUI CLI natural language gesture"
InterfaceAdvantagesDisadvantages
GUIIntuitive; no commands to memorise; easy for beginnersRequires more RAM/CPU; slower for experts; unsuitable for server management
CLIFast for experts; minimal resources; precise; scriptableSteep learning curve; must memorise commands; damaging typing errors
Natural LanguageNo technical knowledge; natural interactionAmbiguous; misinterprets colloquialisms; limited technical vocabulary
Gesture RecognitionIntuitive; useful for VR/touchscreensMisinterpreted; limited commands; physically tiring

✅ "Advantage and disadvantage of CLI for server" (2024 Q4b)

Advantage: Server does not need a GUI, saving computing resources / can run complex commands quickly.
Disadvantage: Difficult for novices / must know exact commands / easy to make damaging errors.

2.4 CPU Registers & System Bus

RegisterFull NamePurpose
PCProgram CounterHolds address of next instruction to be fetched
MARMemory Address RegisterHolds memory address currently being read from/written to
MDRMemory Data RegisterTemporarily holds data just fetched from, or about to be written to, memory
CIRCurrent Instruction RegisterHolds instruction currently being decoded and executed
ACCAccumulatorHolds results of ALU arithmetic/logic operations

📌 Data Bus

Bidirectional — carries actual data/instruction content between CPU, memory, and I/O.

📌 Address Bus

Unidirectional (CPU→Memory) — carries memory address specifying which location to access. Width = max addressable locations (2ⁿ).

📌 Control Bus

Bidirectional — carries read/write commands, clock pulses, interrupt signals coordinating all components.

Image to insert

CPU (ALU, CU, Registers) ↔ три шины ↔ Main Memory. Address Bus — однонаправленный; Data и Control Bus — двунаправленные.

Поиск: "CPU system bus address data control diagram"

✅ "Names and purposes of buses" (2024 Q5a — 6 marks)

  • Data bus — carries actual data/information; bidirectional
  • Address bus — carries where data is sent/collected (memory address)
  • Control bus — dictates read or write; carries control signals to components

2.5 RISC vs. CISC Architecture

📌 RISC (Reduced Instruction Set Computer)

Small set of simple, fixed-length instructions, each typically in one clock cycle. Memory access = LOAD/STORE only.

📌 CISC (Complex Instruction Set Computer)

Large set of complex, variable-length instructions, many requiring multiple cycles. Can directly access memory.

Image to insert

Сравнительная таблица: RISC (смартфон/ARM) vs CISC (десктоп/Intel). Ключевые различия выделены.

Поиск: "RISC vs CISC comparison infographic ARM Intel"
FeatureRISCCISC
Instruction setSmall, fixed-lengthLarge, variable-length
Cycles per instructionTypically oneOften multiple
Memory accessOnly LOAD/STOREMany instructions access memory
RegistersMany general-purposeFewer
Power consumptionLower ✓Higher
Primary useMobile, tablets (ARM)Desktop, servers (Intel x86)

⚠️ Never say "RISC is faster" without qualification

Always compare BOTH architectures in the same sentence: "Unlike RISC which uses a small set of fixed simple instructions completing in one cycle, CISC uses a large set of complex variable-length instructions requiring multiple cycles."

2024 Q5b — RISC vs CISC tick-table (mark scheme)

StatementRISCCISC
Complex instruction set
Fixed format of instruction
Used in tablets and mobile devices
Uses LOAD and STORE in memory-to-memory interaction
Storing an instruction requires multiple sets of registers

2.6 Fetch-Decode-Execute Cycle

📌 FDE Cycle

Fundamental repeating CPU sequence: fetch next instruction from memory, decode it, execute it — then repeat.

📋 Register Notation

[X] = "contents of register X" | [[MAR]] = "data at address stored in MAR" | ← = "receives"

Image to insert

FDE цикл с регистрами: PC→MAR→Memory→MDR→CIR→CU→ALU. Fetch=синий, Decode=жёлтый, Execute=зелёный.

Поиск: "fetch decode execute cycle diagram registers" / mr-tea.net → fetch-execute.html
PhaseStepNotationMeaning
FETCH1MAR ← [PC]Address of next instruction → MAR
2PC ← [PC] + 1PC incremented to next instruction
3MDR ← [[MAR]]Instruction at address in MAR → MDR
DECODE4CIR ← [MDR]Instruction copied to CIR
5CU decodes [CIR]Control Unit interprets opcode and operand
EXECUTE6ALU / I/O / memory opDecoded instruction is carried out

⚠️ Three Errors from 2024 Paper Q5c

StepWrongCorrectWhy
1MDR ← [PC]MAR ← [PC]PC address → MAR (address reg), NOT MDR (data reg)
2PC ← [PC] + 2PC ← [PC] + 1PC increments by 1, not 2
4CIR ← [MAR]CIR ← [MDR]Content is in MDR; MAR only holds addresses

2.7 CPU Performance Factors

FactorDefinitionEffect of increasing
Clock speedNumber of FDE cycles per second (GHz)More instructions/sec; ⚠️ more heat → overheating
Bus widthBits carried simultaneously on a busMore data per transfer; wider address bus = more addressable memory
Word lengthBits CPU processes in a single operationMore data per instruction → faster computation
Cache sizeHigh-speed memory between CPU and RAMMore data at CPU speed → fewer slow RAM accesses
CoresIndependent processing units on one chipParallel threads → better multitasking

✅ "Effect of increasing clock speed" (2024 Q5d — 3 marks)

  1. Instructions performed more quickly / FDE cycle happens faster.
  2. More calculations/operations executed per second.
  3. Increased heat generation may cause device to malfunction or overheat.

✅ "Factors affecting CPU performance" (2025 Q4b — 6 marks)

  • Clock speed — number of cycles performed by CPU per second
  • Bus width — number of bits a bus can carry at one time
  • Word length/size — number of bits CPU can process at a time

Do NOT accept "increasing RAM" or "software."

2.8 RAM vs. ROM

📌 RAM (Random Access Memory)

Volatile primary memory — read and write. Contents lost when power removed. Holds running OS, apps, user data.

📌 ROM (Read-Only Memory)

Non-volatile primary memory — read only. Contents retained without power. Holds BIOS, bootloader, firmware.

✅ "Why embedded systems need RAM" (2024 Q6a — 2 marks)

  1. To store user input (e.g., spin speed and washing programme for a washing machine).
  2. To manage the user interface and interaction between user and appliance.

2.9 Virtual Memory & Cache

📌 Virtual Memory

OS technique using secondary storage (HDD/SSD) as RAM extension. Inactive pages moved to swap space on disk, freeing RAM for active use.

📌 Cache Memory

Small, very high-speed memory between CPU and RAM, storing copies of frequently used data to reduce average access time.

Image to insert

Иерархия памяти: L1 Cache → L2 → L3 → RAM → HDD/SSD. Цветовой градиент: красный=быстро/мало → синий=медленно/много.

Поиск: "memory hierarchy pyramid L1 L2 cache RAM storage"

✅ "Purpose of virtual memory"

  • Frees up RAM when insufficient physical memory is available.
  • Increases apparent memory beyond physical RAM limits.
  • Allows multiple large applications to run simultaneously.

2.10 Memory Addressing Modes

📌 Immediate

Operand IS the actual value. No lookup. ADD #10 — adds 10 directly to accumulator.

📌 Direct

Operand is the memory ADDRESS containing the value. One lookup. ADD A — fetches value at address A.

📌 Indirect

Operand gives address containing ANOTHER address, where value resides. Two lookups. ADD (A)

📌 Indexed

Effective address = operand + Index Register. ADD A+Index

Image to insert

Четыре мини-диаграммы: Immediate (значение в инструкции→AC), Direct (1 стрелка), Indirect (2 стрелки), Indexed (сложение адресов).

Поиск: "memory addressing modes diagram immediate direct indirect indexed"

✅ 2024 Q6b — Match answers

ModeDefinitionExample
ImmediateB — operand gives the actual valueF — ADD #10
DirectA — operand gives address storing the valueD — ADD A
IndirectI — operand gives address of register with another addressG — ADD (A)
IndexedE — address = operand + index registerC — ADD A+Index

✅ 2025 Q4c — Values loaded into AC (LOAD 15, Index=70)

ModeValueWhy
Immediate15Operand value itself
Direct25Value at address 15
Indirect35Value at address stored in address 15 (→25→35)
Indexed30Value at address 15+70=85

2.11 Paging & Segmentation

📌 Paging

Divides virtual address space into fixed-size pages and physical memory into equal-size frames. Page table maps pages to frames.

📌 Segmentation

Divides memory into variable-size logical segments (code, data, stack) each with a base address and length.

Image to insert

Пагинация: Virtual Address Space (Pages 0–3) ↔ Page Table ↔ Physical Memory (Frames, не по порядку).

Поиск: "paging memory management diagram page table frames"
Paging
  • Fixed block size
  • Internal fragmentation
  • Transparent to programmer
  • Supports virtual memory ✓
Segmentation
  • Variable block size
  • External fragmentation
  • Logical program structure
  • Partially visible to programmer

✅ "Explain how paging is used" (2025 Q5a — 3 marks)

  1. Enables processes to share physical memory efficiently.
  2. Breaks virtual space into fixed-size pages; physical memory into same-size frames.
  3. Page table maps pages to frames; inactive pages swapped to disk (virtual memory).

2.12 Virtual Machines

📌 Virtual Machine (VM)

Software emulation of a physical computer running its own OS and applications in complete isolation from the host.

📌 Hosted VM (Type 2)

Runs on top of a host OS. Hypervisor is an application within the host OS. Lower performance.

📌 Unhosted / Bare-Metal (Type 1)

Runs directly on hardware — no host OS. Higher performance. Used in enterprise/data centres.

Image to insert

Type 1: Hardware→Hypervisor→VM1,VM2. Type 2: Hardware→Host OS→Hypervisor→VM1,VM2.

Поиск: "type 1 vs type 2 hypervisor bare metal hosted diagram"

✅ "Two examples of VM use" (2025 Q5b — any two)

  • Server virtualisation
  • Software testing and development
  • Legacy application support
  • Disaster recovery and backup
  • Cloud computing

Chapter 3 — AI & Programming

3.1 AI Applications

📌 Artificial Intelligence

Simulation of human cognitive processes — learning, reasoning, problem-solving, perception, language — by computer systems.

⚠️ Never Name Software Without Describing Purpose

Mark scheme: "Do not accept name of software without purpose/description." "ChatGPT" = zero. Write: "AI systems that analyse medical imaging to detect disease."

Image to insert

Пять секций с иконками: Медицина, Образование, Игры, Промышленность, Общество. Для каждой — 2 примера с описанием.

Поиск: "AI applications sectors infographic medicine gaming education"
SectorExamples (must include purpose)
MedicineDisease diagnosis; medical imaging interpretation (X-ray/MRI); drug discovery; personalised treatment plans
EducationAdaptive learning platforms; automated marking; intelligent tutoring systems
GamingNPC intelligent behaviour; procedural content generation; player behaviour analysis
IndustryPredictive maintenance; quality control vision systems; robotic assembly
SocietyPredictive crime analytics; social media moderation; smart city traffic management

3.2 VR vs. AR

📌 Virtual Reality (VR)

Completely replaces the user's real-world view with a computer-generated environment. Real world entirely blocked out.

📌 Augmented Reality (AR)

Overlays digital information onto the existing real-world view. Real world remains visible and is enhanced.

Virtual Reality (VR)
  • Real world: BLOCKED OUT ✗
  • Enclosed VR headset
  • Fully immersive
  • Gaming, training, therapy
Augmented Reality (AR)
  • Real world: VISIBLE ✓ + enhanced
  • Smartphone, AR glasses
  • Partially immersive
  • Navigation, surgery, Pokémon GO

Image to insert

Слева: VR шлем — только цифровой мир. Справа: смартфон — реальный мир + цифровые объекты поверх.

Поиск: "virtual reality vs augmented reality comparison diagram"

✅ "Explain difference between VR and AR" (2024 Q7c-i — 2 marks)

  1. VR completely replaces the user's field of vision; AR adds digital elements to the real-world view.
  2. VR headsets fully enclose the eyes; AR overlays appear on a smartphone or tablet screen.

✅ "Two purposes of AR" (2025 Q6b — any two)

  • Provides real-time access to information relevant to the physical world
  • Provides immersive and interactive learning/training experiences
  • Provides entertainment through mobile games and interactive storytelling

3.3 Language Generations

GenNameKey characteristicExample
1GLMachine codeBinary; directly executed; machine-specific01001001
2GLAssemblyMnemonics; 1 instruction ≈ 1 machine code; needs assemblerMOV AX, 5
3GLHigh-levelEnglish-like; portable; needs compiler/interpreterPython, Java
4GLVery high-levelDomain-specific; WHAT not HOWSQL
5GLLogic/constraintDefine constraints; system finds solution; AIProlog

✅ "Relationship between 2GL and machine code" (2024 Q7a — 1 mark)

Usually, one assembly language instruction is translated into one machine code instruction.

✅ "Two reasons programmers avoid low-level languages" (2024 Q7b)

  1. Machine-dependent — not portable to other architectures.
  2. Difficult to develop/debug/maintain — more error-prone; requires knowledge of specific CPU architecture.

3.4 Compilers vs. Interpreters

📌 Compiler

Translates entire source code into standalone machine code executable before any execution.

📌 Interpreter

Translates and executes source code one line at a time in real time. No output file produced.

⚠️ A Compiler Does NOT Execute Code

Compiler TRANSLATES. CPU EXECUTES. "Compiled executable runs faster because no translation is required at runtime."

Image to insert

Два пути: (1) Compiler: Source→Compiler→Executable→CPU. (2) Interpreter: Source→Interpreter(translate+execute line by line).

Поиск: "compiler vs interpreter comparison flowchart"
FeatureCompilerInterpreter
Translation unitEntire program at onceOne line at a time
Output fileStandalone executable ✓No output file
Runtime speedFast — no translationSlower — translates every run
Error reportingAll errors after full analysisStops at first error
DebuggingHarder — all errors listedEasier — error shown at runtime

3.5 Declarative vs. Imperative

📌 Declarative

Expresses WHAT the result should be. Runtime decides HOW. Includes: Functional, Logic (Prolog), Query (SQL).

📌 Imperative

Describes HOW to achieve result — explicit ordered sequence changing program state. Includes: Procedural (C), OOP (Python, Java).

Side-by-side — "Find students with grade A"

Declarative (SQL)
SELECT name FROM students WHERE grade = 'A';

Says WHAT. Runtime decides HOW.

Imperative (Python)
for s in students: if s.grade == 'A': print(s.name)

Every step explicitly defined.

✅ "Two differences: declarative vs imperative" (2023 Q9)

  1. Declarative focuses on WHAT; imperative focuses on HOW step by step.
  2. In declarative, execution sequence not defined by programmer; in imperative, clearly defined sequence is specified.

3.6 Compilation Stages

Image to insert

Pipeline: Source Code→[Lexical]→Tokens→[Syntax]→AST→[Code Gen]→Object Code→[Optimisation]→Executable. Каждый блок другого цвета.

Поиск: "compiler stages pipeline diagram lexical syntax code generation"

📌 Stage 1 — Lexical Analysis

Source code scanned; whitespace/comments removed; characters grouped into tokens (keyword, identifier, operator, literal, separator).

2025 Q7a — Tokenising if(x == 0)

Token TypeValue
Keywordif
Bracket(
Identifierx
Operator==
Number0
Bracket)

Answer: Stage = Lexical analysis

📌 Stage 2 — Syntax Analysis

Receives token stream; checks whether sequence conforms to grammar rules. Produces parse tree / AST.

⚠️ Syntax Analysis Checks STRUCTURE Only

NOT meaning, NOT undeclared variables, NOT logical correctness.

✅ "Describe syntax analysis" (2025 Q7c — 2 marks)

  1. Receives input in the form of tokens from lexical analysis.
  2. Analyses syntax of statements to ensure they conform to the grammar rules of the language.

📌 Stage 3 — Code Generation

Translates verified AST into target machine code (object file).

📌 Stage 4 — Code Optimisation

Transforms generated code to improve efficiency without changing observable behaviour.

TechniqueDefinitionExample
Dead code eliminationRemoves code that can never executeRemove always-false if block
Constant foldingEvaluates constant expressions at compile timex=3*4x=12
Loop optimisationMoves invariant calculations outside loopsExtract constant calc from loop
Strength reductionReplaces expensive ops with cheaper equivalentsmultiply by 2 → left bit shift

2025 Q7b — Dead Code Elimination

a = 5 if (a != 5) { ← ALWAYS FALSE since a=5 ........ ← can NEVER execute }

Optimisation: Dead code elimination | Optimised: a = 5 (if block removed)

Chapter 4 — Communication & Networks

4.1 LAN vs. WAN

FeatureLANWAN
Geographic areaSingle building/campus/siteCities, countries, continents
OwnershipSingle organisationLeased from telecom providers
SpeedHigh: 100 Mbps – 10 GbpsVariable; generally lower
SecurityEasier — controlled environmentHarder — crosses public infrastructure
ExampleSchool/office networkThe Internet, corporate MPLS

4.2 Network Topologies

Image to insert

Четыре диаграммы: Bus (линия), Ring (кольцо), Star (звезда), Mesh (каждый с каждым).

Поиск: "network topology bus ring star mesh comparison diagram"
TopologyAdvantagesDisadvantages
BusCheap; simple; easy to extendBackbone failure = whole network fails
RingEqual access; token passing prevents collisionsOne node failure can break ring
StarOne cable fault doesn't affect othersCentral switch failure disables all nodes
MeshHigh redundancy; no single point of failureVery expensive; complex cabling

✅ 2025 Q8a answers

  • Topology name (Fig.3): Mixed / Hybrid topology
  • Advantage of topology A (ring): Equal access / minimum collision / easy to manage
  • Disadvantage of topology C (star): If central switch fails, all attached nodes are disabled

4.3 Network Hardware

DeviceDefinitionLayerKey feature
HubBroadcasts all data to every portL1No intelligence — creates unnecessary traffic
SwitchForwards data only to intended recipient using MAC tableL2Intelligent forwarding; reduces collisions
RouterConnects different networks; routes packets using IP and routing tableL3Routes between networks/Internet
NICHardware providing network connectivityL1–2Has permanent unique MAC address

✅ "Two purposes of a router" (2025 Q8b)

  1. To direct traffic between different subnetworks using the routing table.
  2. To route data packets through the network to their intended destinations.

4.4 Packet vs. Circuit Switching

📌 Packet Switching

Data broken into discrete packets; each independently routed; reassembled at destination. Different packets may take different routes.

📌 Circuit Switching

Dedicated physical circuit established before transmission; maintained exclusively throughout the session.

Image to insert

Слева: Packet Switching — P1,P2,P3 идут разными путями. Справа: Circuit Switching — одна выделенная линия A→B.

Поиск: "packet switching vs circuit switching comparison diagram"
FeaturePacket SwitchingCircuit Switching
Dedicated pathNo — packets route independentlyYes — fixed circuit
Resource useEfficient — shared bandwidthInefficient — reserved when idle
Data orderMay arrive out of orderAlways in order
Use caseInternet, email, file transferTraditional telephone (PSTN)

✅ "Why FTP NOT suitable for live streaming" (2024 Q8d-i)

  1. FTP breaks data into packets that can be retransmitted and reassembled out-of-order — this takes time.
  2. Not suitable for continuous real-time streaming requiring immediate sequential delivery.

4.5 The OSI Model

📌 OSI Model

7-layer framework standardising network communication, with each layer having specific responsibilities. Enables interoperability between different systems.

Image to insert

Вертикальная диаграмма 7 слоёв: Layer 7 Application → Layer 1 Physical. Слои 4 и 2 выделены.

Поиск: "OSI model 7 layers diagram all protocols"
#LayerKey Protocols / Devices
7ApplicationHTTP, HTTPS, FTP, SMTP, POP3, DNS
6PresentationSSL/TLS, JPEG, ASCII
5SessionNetBIOS, RPC
4Transport ★TCP, UDP
3NetworkIP, ICMP, Routers
2Data Link ★Ethernet, Wi-Fi, Switches, MAC addresses
1PhysicalCables, hubs, electrical signals

⚠️ Layer Assignments Are Directly Examined

  • MAC = Layer 2 (Switches). IP = Layer 3 (Routers). TCP/UDP = Layer 4. HTTP/FTP/SMTP = Layer 7.

✅ 2025 Q10c — Missing layers: Layer 4 = Transport | Layer 2 = Data Link

4.6 WWW vs. Internet vs. Intranet

📌 The Internet

Global network of interconnected networks — the physical infrastructure of hardware (cables, routers, servers) connecting billions of devices.

📌 World Wide Web (WWW)

Collection of multimedia web pages accessed via the Internet using HTTP/HTTPS. One service running ON the Internet.

📌 Intranet

Private network for an organisation's members only; uses Internet technologies but not publicly accessible.

⚠️ Internet ≠ World Wide Web

Internet = physical infrastructure (cables, routers). WWW = service (web pages via HTTP) running ON the Internet. "The internet is where you find websites" conflates these — loses the mark.

Image to insert

Вложенные круги: "Internet (physical)" → внутри "WWW (web pages via HTTP)" + другие сервисы. Отдельный круг "Intranet (private)".

Поиск: "internet vs WWW intranet nested circles venn diagram"

4.7 URL Structure & DNS

📌 URL (Uniform Resource Locator)

Complete address: protocol + hostname/domain + path + filename.

URL Anatomy & Domain Levels

https://www.nis.edu.kz/documents/report.pdf ↑ ↑ ↑ Protocol Hostname Path+file www.sk.nis.edu.kz (read RIGHT → LEFT) .kz = TLD (top-level domain) edu = 2nd-level ← (2023 Q12d answer) nis = 3rd-level sk = subdomain

📌 DNS (Domain Name System)

Hierarchical distributed database translating domain names (e.g., www.google.com) into IP addresses.

Image to insert

DNS resolution: Browser→Local Cache→Local DNS→Root DNS→TLD DNS→Authoritative DNS→IP returned→Browser connects.

Поиск: "DNS resolution process steps diagram browser root authoritative"

✅ "How domain name used to access website" (2024 Q8a — 5 marks)

  1. DNS server contains list of domain names and corresponding IP addresses.
  2. Browser checks local cached host file for the IP address.
  3. Local DNS server is queried.
  4. If not found, query passed to a higher-level DNS server.
  5. IP address resolved and returned; browser connects and downloads site.

4.8 MAC Addresses

📌 MAC Address

Permanent hardware identifier assigned to NIC by manufacturer. 48 bits; 6 hex pairs e.g. 00:1A:2B:3C:4D:5E. Used for routing within LAN at OSI Layer 2.

⚠️ MAC = LAN. IP = WAN. Never Reverse.

MAC: physical, permanent, Layer 2, switches, within LAN. IP: logical, changeable, Layer 3, routers, across Internet.

✅ "Two differences MAC vs IP" (2025 Q9c)

  1. MAC is physical/hardware identifier (manufacturer); IP is logical/network identifier (admin/DHCP).
  2. MAC is permanent; IP is changeable.
  3. MAC for routing within LAN; IP for routing across networks/Internet.

✅ "Two ways to find MAC address" (2025 Q9b)

  1. Command prompt: ipconfig /all (Windows) or ifconfig (Linux/Mac)
  2. GUI: Control Panel → Network and Sharing Centre → Adapter Properties

4.9 Network Protocols

Image to insert

Карточки с иконками: HTTP (браузер), HTTPS (замок), FTP (папка), SMTP (отправка письма), POP3 (получение письма), TCP/IP (соединение).

Поиск: "network protocols HTTP SMTP FTP POP3 TCP icons table"
ProtocolFull NameFunction
HTTPHyperText Transfer ProtocolTransferring web pages — unencrypted
HTTPSHTTP SecureEncrypted HTTP using TLS/SSL
FTPFile Transfer ProtocolTransferring files between client and server
SMTPSimple Mail Transfer ProtocolSending email client → mail server
POP3Post Office Protocol v3Retrieving email from mail server → client
TCP/IPTransmission Control Protocol / Internet ProtocolEstablishing reliable connections; foundational Internet suite

⚠️ SMTP Sends. POP3 Receives. FTP = Files Only.

Reversed every year. FTP NOT suitable for real-time streaming.

✅ Protocol matching (2025 Q10a — 3 marks)

  • TCP/IP → establish a connection between devices on a network
  • FTPtransferring files between client and server
  • POP3retrieving email messages from a mail server

4.10 IP Addresses

📌 IPv4

Decimal notation with four 8-bit octets separated by dots. 32 bits total → 2³² ≈ 4.3 billion addresses. Example: 188.10.52.2

📌 IPv6

Hexadecimal notation with eight groups of four hex digits separated by colons. 128 bits total → 2¹²⁸ addresses.

Image to insert

IPv4: "192.168.1.1" — 4 octets × 8 bits = 32 bits. IPv6: "2001:0db8:..." — 8 quartets × 16 bits = 128 bits.

Поиск: "IPv4 vs IPv6 address format comparison annotated"
ClassFirst OctetDefault Mask
A1–126255.0.0.0
B128–191255.255.0.0
C192–223255.255.255.0

📋 Network and Host Address from Subnet Mask

  • Mask = 255: keep IP octet → network address
  • Mask = 0: replace with 0 → network; keep original → host address

2024 Q8e — IP: 188.10.52.2, Mask: 255.255.0.0

Class: B (188 in range 128–191) Network address: 188.10.0.0 Host address: 0.0.52.2

✅ "Explain formats of IPv4 and IPv6" (2025 Q10b — 2 marks)

  • IPv4: Decimal notation; four 8-bit octets; 32 bits; 2³² addresses
  • IPv6: Hexadecimal notation; eight groups of four hex digits; 128 bits; 2¹²⁸ addresses
FeaturePublic IPPrivate IP
Globally unique✓ Yes✗ No (unique within LAN only)
Routable on Internet✓ Yes✗ No (requires NAT)
Assigned byISPRouter DHCP or admin
Private ranges10.x.x.x / 172.16–31.x.x / 192.168.x.x

Appendix — Quick Reference

A — Command Words

CommandExpected ResponseMarks
STATE / NAMESpecific fact only. Zero explanation.1
DESCRIBEWhat it is + how it works. Do NOT explain why.2–3
EXPLAINFact + reason/consequence. Use "because…", "therefore…", "which means…"2–4
COMPAREAddress BOTH items in same sentence. "Unlike X which A, Y does B."2–4
EVALUATEPros + cons + concluding judgement for the scenario.4–6
DEFINEPrecise technical meaning. No analogies.1–2
JUSTIFYState decision + defend with technical reasons from the scenario.2–3

B — Topic Frequency (2023–2025)

Topic202320242025Priority
Two's complement🔴 Critical
Floating-point / normalisation🔴 Critical
Data security / integrity / privacy🔴 Critical
Protocols (HTTP/SMTP/FTP/POP3)🔴 Critical
Memory addressing modes🔴 Critical
DNS resolution process🔴 Critical
OS functions / memory management🔴 Critical
RISC vs. CISC🟠 High
FDE cycle / register notation🟠 High
Compilation stages🟠 High
Backup vs. disk mirroring🟠 High
Open-source software🟠 High
Paging / segmentation🟠 High
Virtual machine (hosted/unhosted)🟠 High
MAC vs. IP address🟠 High
OSI model layers🟠 High
VR vs. AR🟡 Medium
AI applications🟡 Medium
CPU performance factors🟡 Medium
IP classes / subnet mask🟡 Medium
Packet vs. circuit switching🟡 Medium
Network topology🟡 Medium
Validation vs. Verification🟡 Medium
Declarative vs. Imperative🟡 Medium

C — All Warnings (Pre-exam Review)

W1 — Disk mirroring is NOT a backup

Ransomware/deletion/virus = instantly mirrored. Only offline backup preserves clean history.

W2 — Security ≠ Privacy ≠ Integrity

Security=HOW. Privacy=WHO. Integrity=WHETHER. Never conflate them.

W3 — Validation does NOT check if data is TRUE

Only "reasonable" and "follows the rules." Zero for "checks if correct/true."

W4 — Open-source ≠ free to download

Mark awarded for source code licence and right to copy/modify/redistribute.

W5 — Non-normalised floating-point mantissa

Positive: 0.1... Negative: 1.0... Starting 0.01... = not normalised → no mantissa mark.

W6 — Show 8-bit overflow explicitly

Always show carry bit, then state 8-bit result. Marks awarded separately.

W7 — FDE register errors (2024)

Step 1: MAR not MDR. Step 2: +1 not +2. Step 4: CIR←[MDR] not [MAR].

W8 — Never say "RISC is faster" without qualification

Always compare BOTH architectures in the same sentence.

W9 — Compiler does NOT execute code

Compiler=TRANSLATES. CPU=EXECUTES the machine code output.

W10 — Syntax analysis checks structure ONLY

NOT meaning, NOT undeclared variables, NOT logical correctness.

W11 — Internet ≠ WWW

Internet=physical infrastructure. WWW=service running on the Internet via HTTP.

W12 — MAC=LAN. IP=WAN.

MAC: physical, permanent, Layer 2, switches, LAN. IP: logical, changeable, Layer 3, routers, Internet.

W13 — SMTP sends. POP3 receives. FTP=files only.

FTP NOT suitable for real-time streaming.

W14 — AI: describe purpose, not software name

"ChatGPT" = zero. Write what the AI DOES.

W15 — Anti-cracking ≠ general security

Backup/firewall/antivirus NOT accepted. Need: 2FA, password complexity, SSL, encryption, hashing, login monitoring.