[Concepts] Paper 1


CHAPTER 1: INFORMATION REPRESENTATION

1.1 DATA REPRESENTATION

1.1.1 Fundamental Characteristics of Number Systems

Every number system has two fundamental characteristics:

  1. Base (Radix): The number of different digits that a system can use to represent numbers
  2. Place Value: The specific value of a digit based on its position within a number

1.1.2 Denary (Decimal) System - Base 10

1.1.3 Binary System - Base 2

Key Points:

Binary Place Values:

<TEXT>

128 | 64 | 32 | 16 | 8 | 4 | 2 | 1
2⁷ 2⁶ 2⁵ 2⁴ 2³ 2² 2¹ 2⁰

Example - Converting Denary to Binary:

Example - Converting Binary to Denary:

1.1.4 Binary Prefixes vs Decimal Prefixes

It is crucial to understand the difference between binary prefixes (based on powers of 2) and decimal prefixes (based on powers of 10):

Denary Prefix Factor Value Binary Prefix Factor Value
kilo- (k) ×10³ 1,000 kibi- (Ki) ×2¹⁰ 1,024
mega- (M) ×10⁶ 1,000,000 mebi- (Mi) ×2²⁰ 1,048,576
giga- (G) ×10⁹ 1,000,000,000 gibi- (Gi) ×2³⁰ 1,073,741,824
tera- (T) ×10¹² 1,000,000,000,000 tebi- (Ti) ×2⁴⁰ 1,099,511,627,776

Important: Always use the correct prefix:

1.1.5 Binary Coded Decimal (BCD)

Definition: Binary representation where each individual denary digit is represented by a sequence of 4 bits (nibble).

Characteristics:

Example - Converting 429 to BCD:

<TEXT>

4 = 0100
2 = 0010
9 = 1001
Therefore, 429 in BCD = 0100 0010 1001

Practical Applications:

1.1.6 Two's Complement Representation

Two's complement is used to represent negative numbers in binary.

Converting Negative Denary to Binary (Example: -42):

Step 1: Find binary equivalent (ignoring sign)

<TEXT>

42 = 00101010 (8-bit representation)

Step 2: Convert to one's complement (flip all bits)

<TEXT>

00101010 → 11010101

Step 3: Add 1 to get two's complement

<TEXT>

11010101 + 1 = 11010110

Converting Binary Two's Complement to Denary (Example: 11010110):

Step 1: Flip all bits

<TEXT>

11010110 → 00101001

Step 2: Add 1

<TEXT>

00101001 + 1 = 00101010

Step 3: Convert to denary and apply negative sign

<TEXT>

00101010 = 42
Therefore: -42

Range in 8-bit Two's Complement:

Overflow:

1.1.7 Hexadecimal System - Base 16

Characteristics:

Converting Denary to Hexadecimal: Example: 165 to Hex

<TEXT>

165 ÷ 16 = 10 remainder 5
10 = A
Therefore: 165 = A5 (hex)

Converting Hexadecimal to Denary: Example: A5 to Denary

<TEXT>

A5 = (10 × 16) + (5 × 1) = 160 + 5 = 165

Practical Applications:

1.1.8 Character Sets and Encoding

Definition: A character set is a collection of characters that can be represented using binary codes. It typically includes upper and lower case letters, number digits, punctuation marks, and other characters.

Character Encoding Standards:

Standard Description Bits per Character Characters
ASCII American Standard Code for Information Interchange 7 bits 128
Extended ASCII Extension of ASCII 8 bits 256
Unicode Superset of ASCII and extended ASCII 16 or 32 bits 65,536+

ASCII:

Extended ASCII:

Unicode:


1.2 MULTIMEDIA - GRAPHICS AND SOUND

1.2.1 Bitmap Images

Definition: Bitmap images are created by assigning a solid colour to each pixel using bit patterns. The image is represented as a grid of pixels, where each pixel's colour is encoded using binary values.

Key Terms:

Image Resolution:

Screen Resolution:

Colour Depth:

File Size Calculation:

<TEXT>

File Size = Number of Pixels × Colour Depth

Example Calculation:

<TEXT>

Image: 1024 × 768 pixels, 24-bit colour
Number of Pixels = 1024 × 768 = 786,432
Colour Depth = 24 bits
File Size = 786,432 × 24 = 18,874,368 bits
= 18,874,368 ÷ 8 = 2,359,296 bytes
≈ 2.36 MB

Applications:

1.2.2 Vector Graphics

Definition: Made up of drawing objects (mathematically defined constructs like rectangles, lines, circles, curves).

Components:

Advantages over Bitmap:

Disadvantages:

Applications:

1.2.3 Sound Representation

Analogue vs Digital:

Analogue Digital
Continuous electrical signals Discrete electrical signals
Infinite detail Finite representation
Cannot be stored directly Can be stored in binary

Sound as Analogue Data:

Conversion Process (Analogue to Digital):

  1. Sampling: The sound wave's amplitude is measured at set time intervals
  2. Quantization: Each sample is assigned a binary value
  3. Encoding: Binary values are stored

Key Terms:


1.3 COMPRESSION

1.3.1 Need for Compression

Definition: Compression is the process of reducing file size without significant loss in quality.

Benefits:

1.3.2 Lossless Compression

Definition: A type of compression that allows original data to be perfectly reconstructed from the compressed file.

Key Feature:

Examples:

Run-Length Encoding (RLE):

Definition: A form of lossless compression used for compressing text files and bitmap images.

Mechanism:

Example: Original: AAAAAAABBBBBCCCCCC Compressed: 7A5B6C

Example - Bitmap: Original row: White White White White White Black Black Compressed: 5W2B

Applications:

1.3.3 Lossy Compression

Definition: A type of compression that irreversibly eliminates unnecessary data.

Characteristics:

Examples:

Mechanism in Sound Files (MP3):

Mechanism in Images (JPEG):

When to Use Lossy vs Lossless:

Lossless Lossy
Text documents Photography
Database files Video streaming
Program files Music (streaming)
Spreadsheets Web graphics (where size matters)

CHAPTER 2: COMMUNICATION AND NETWORKING


2.1 NETWORKS INCLUDING THE INTERNET2.1.1 Introduction to Networks

Definition: Networking devices are interconnected devices that enable fast data transmission within a network.

Benefits of Networking:

  1. File Sharing: Easily share data between different interconnected devices
  2. Resource Sharing: Use network-connected output devices like printers or share software
  3. Higher Storage: Files can be stored in network-connected storage mediums
  4. Communication: Email and messaging between users
  5. Centralized Management: Easier to backup and secure data

2.1.2 Types of Networks

LAN (Local Area Network):

Characteristic Description
Geographic Area Small area, often within the same building
Ownership Private ownership
Transmission Medium Twisted pair cables, coaxial cables, or Wi-Fi
Data Transfer Rate Higher (100 Mbps to 10 Gbps)
Congestion Less congestion
Setup Cost Lower initial cost

WAN (Wide Area Network):

Characteristic Description
Geographic Area Large area - city, country, or globally
Ownership Private or public ownership
Transmission Medium PSTN, satellite links, leased lines
Data Transfer Rate Lower
Congestion Higher congestion
Setup Cost Higher initial cost

2.1.3 Network Models

Client-Server Model:

Server Types:

Client-Server Login Process:

  1. Client sends login request to server
  2. Server processes request
  3. Server grants access if user ID & password are recognized

Thin Clients vs Thick Clients:

Thin Clients Thick Clients
Runs solely on server resources Processes most application locally
No local storage Has local storage and processing power
Smaller purchase cost More expensive
Requires constant server connection Can work offline
Improved security More vulnerable to unauthorized software

Peer-to-Peer (P2P) Network:

Comparison:

Feature Client-Server Peer-to-Peer
Centralized backup Yes No
Initial setup cost Higher Lower
Network traffic Higher (goes through server) Lower (direct)
Security Better (centralized control) Weaker
Reliability Server failure affects all Peer failure affects one

2.1.4 Network Topologies

Bus Topology:

Star Topology:

Mesh Topology:

Hybrid Topology:

2.1.5 Transmission Media

Wired Networks:

Copper Cable:

Advantages Disadvantages
Less expensive Doesn't perform well with small charges
Easier to install Affected by electromagnetic interference
Flexible Signal degradation over distance
Easy to make terminations  

Fibre-Optic Cable:

Advantages Disadvantages
Greater bandwidth Needs expensive optical transmitters/receivers
Improved security More difficult to install
Lightweight  
Less signal boosting required  
Used in long-distance communications  
Immune to electromagnetic interference  

Wireless Networks:

Type Advantages Disadvantages
Radio Waves Can travel over large distances; inexpensive Low frequency = less data; affected by interference
Microwaves Larger bandwidth Physical obstacles interfere; expensive towers
Satellites Cost-effective for long-distance Expensive setup; susceptible to interference

2.1.6 Ethernet

Definition: The most common wired medium for data transmission in LANs or WANs.

CSMA/CD (Carrier Sense Multiple Access with Collision Detection):

Process:

  1. Device checks if channel is busy before transmitting
  2. If busy, device waits a random time before retrying
  3. During transmission, device listens for other transmissions
  4. If collision occurs, transmission is aborted
  5. Both devices wait random times before retrying

2.1.7 Bit Streaming

Definition: Sequence of digital signals (bits) transferred over a communication path at high speeds.

Types:

Real-time Streaming:

On-demand Streaming:

Importance of High Broadband Speed:

2.1.8 Cloud Computing

Definition: On-demand provision of computing services over the internet.

Services:

Public Cloud vs Private Cloud:

Feature Public Cloud Private Cloud
Access Third-party providers, shared among multiple users Single organization, exclusive access
Management Managed by service providers Can be managed internally or outsourced

Benefits:

Drawbacks:

2.1.9 Internet and World Wide Web

Internet:

World Wide Web (WWW):

2.1.10 Network Hardware

Device Function
Router Connects two networks; translates IP addresses; acts as gateway and firewall
Switch Connects devices in LAN; broadcasts to all devices simultaneously
Server Provides specific functions for computers in the network
NIC (Network Interface Card) Provides unique MAC address for wired connection
WNIC (Wireless NIC) Provides unique address for WiFi connection
WAP (Wireless Access Point) Allows devices to connect via WiFi
Bridge Connects two LANs using same protocol
Repeater Regenerates signal to prevent attenuation
Modem Converts digital to analogue signals for telephone lines

2.1.11 IP Addressing

IPv4:

IPv6:

IP Address Structure:

Subnetting:

Public vs Private IP:

Static vs Dynamic:

2.1.12 DNS (Domain Name Service)

Definition: A naming system that maps domain names to IP addresses.

Function:

CHAPTER 3: HARDWARE AND COMPUTER COMPONENTS

3.1 COMPUTERS AND THEIR COMPONENTS

3.1.1 General-Purpose Computer System

A general-purpose computer system comprises:

  1. Processor (CPU): Executes instructions
  2. Memory: Stores data and instructions
  3. Input/Output (I/O): Interfaces with external world

3.1.2 Essential Features of a Computer

Input:

Output:

Primary Storage (Memory):

Secondary Storage:

Removable Secondary Storage:

3.1.3 Embedded Systems

Definition: Miniature computer systems (microprocessors) that are often part of a larger system.

Characteristics:

Advantages:

Disadvantages:

3.1.4 Hardware Device Operations

Laser Printer:

  1. Laser beam and rotating mirrors draw image on photosensitive drum
  2. Image converted to electric charge
  3. Charged toner attracts to image
  4. Electrostatic-charged paper rolls against drum
  5. Charge pulls toner onto paper
  6. Heat in fuser fuses toner to paper

3D Printer:

  1. Starts with saved digital file (blueprint)
  2. Object built by adding layers of material (polymer resin)
  3. Object cured (hardened by UV light)

Microphone:

  1. Sound waves enter and cause diaphragm vibrations
  2. Vibrations cause coil to move past magnetic core
  3. Electrical current generated
  4. Current digitized

Speaker:

  1. Takes electrical signals
  2. Voice coil generates electromagnetic field
  3. Change in audio signal changes current direction
  4. Electromagnet attracted/repelled to permanent magnet
  5. Diaphragm vibrates, creating sound waves

Magnetic Hard Disk:

  1. Platters covered with magnetizable material
  2. Mounted on central spindle, rotated at high speed
  3. Surface divided into concentric tracks & sectors
  4. Data encoded as magnetic patterns
  5. Read/write heads access data

Solid State (Flash) Memory:

Optical Disc Reader/Writer:

  1. Disc surface has reflective metal layer
  2. Spun at high speed
  3. Laser beam reads/writes
  4. Tracks have amorphous and crystalline states
  5. Different states encode bit patterns

Touchscreen:

Type Description
Resistive Two charged plates; pressure causes contact
Capacitive Materials that store electric charge; touch transfers charge

3.1.5 Memory Types

RAM vs ROM:

Feature RAM ROM
Volatility Volatile (loses data when power off) Non-volatile
Read/Write Can be read and written Can only be read
Use Stores currently executing program Stores OS kernel, boot-up instructions

Static RAM vs Dynamic RAM:

Feature SRAM DRAM
Refresh Doesn't need to refresh Must be refreshed
Speed Faster access time Slower access time
Power Uses less power Needs higher power
Cost More expensive (complex circuitry) Less expensive
Structure Each bit stored in flip-flop Each bit stored as charge in capacitor
Density Lower data density Higher data density
Use Cache memory Main memory

PROM vs EPROM vs EEPROM:

Type Description Erasure Method
PROM Programmable once after creation Cannot be erased
EPROM Can be reprogrammed UV light exposure
EEPROM Can be reprogrammed Electrical signal

3.1.6 Monitoring and Control Systems

Monitoring System:

Control System:

Components:

Feedback Systems:


3.2 LOGIC GATES AND LOGIC CIRCUITS

3.2.1 Basic Logic Gates

AND Gate:

A B Output
0 0 0
0 1 0
1 0 0
1 1 1

OR Gate:

A B Output
0 0 0
0 1 1
1 0 1
1 1 1

NOT Gate (Inverter):

A Output
0 1
1 0

3.2.2 NAND and NOR Gates

NAND Gate:

A B Output
0 0 1
0 1 1
1 0 1
1 1 0

NOR Gate:

A B Output
0 0 1
0 1 0
1 0 0
1 1 0

3.2.3 XOR Gate

XOR (Exclusive OR):

A B Output
0 0 0
0 1 1
1 0 1
1 1 0

3.2.4 Constructing Circuits from Truth Tables

Process:

  1. Identify required output for each input combination
  2. Identify the logic expression
  3. Design the circuit using appropriate gates
  4. Test with truth table

CHAPTER 4: PROCESSOR FUNDAMENTALS

4.1 CENTRAL PROCESSING UNIT (CPU) ARCHITECTURE

4.1.1 Von Neumann Model

Key Concept:

Components:

4.1.2 Registers

Definition: The smallest unit of storage in a microprocessor; allows fast data transfer.

General Purpose Registers:

Special Purpose Registers:

Register Function
PC (Program Counter) Holds address of next instruction
MDR (Memory Data Register) Holds data fetched from memory
MAR (Memory Address Register) Holds address of memory cell to access
ACC (Accumulator) Holds values processed by ALU
IX (Index Register) Stores number to modify address
CIR (Current Instruction Register) Holds current instruction for decoding
Status Register Holds results of comparisons, arithmetic flags

4.1.3 CPU Components

ALU (Arithmetic and Logic Unit):

Control Unit (CU):

System Clock:

IAS (Immediate Access Store):

4.1.4 Buses

Definition: Set of parallel wires allowing data transfer between components.

Data Bus:

Address Bus:

Control Bus:

4.1.5 Performance Factors

Clock Speed:

Bus Width:

Cache Memory:

Number of Cores:

4.1.6 Ports

Port Type Description
USB Connects input and output devices
HDMI High-definition video and audio output
VGA Video output only (older displays)

4.1.7 Fetch-Execute Cycle

Fetch Stage:

  1. PC holds address of next instruction
  2. Address copied to MAR
  3. PC incremented
  4. Instruction loaded to MDR from address in MAR
  5. Instruction from MDR loaded to CIR

Decode Stage:

Execute Stage:

Register Transfer Notation (RTN):

<TEXT>

MAR ← [PC]
PC ← [PC] + 1
MDR ← [[MAR]]
CIR ← [MDR]
Decode
Execute
Return to start

4.1.8 Interrupts

Definition: A signal from a program seeking the processor's attention.

ISR (Interrupt Service Routine):

Interrupt Handling Process:

  1. Processor checks interrupt register at end of F-E cycle
  2. If interrupt flag is set, source detected
  3. If low priority, interrupt disabled
  4. If high priority:
    • Save register contents to stack
    • Load PC with ISR address
    • Execute ISR
    • Restore registers from stack
    • Continue interrupted program

4.2 ASSEMBLY LANGUAGE

4.2.1 Introduction

Assembly Language:

Machine Code:

Assembler:

4.2.2 Assembler Types

One-Pass Assembler:

Two-Pass Assembler:

Pass 1:

Pass 2:

4.2.3 Addressing Modes

Mode Description
Immediate Data is the actual value (e.g., LDM #n)
Direct Load contents at given address (e.g., LDD address)
Indirect Address to use is at given address (e.g., LDI address)
Indexed Address = given address + contents of IX (e.g., LDX address)
Relative Next instruction is offset from current instruction

4.2.4 Instruction Types

Data Movement:

Arithmetic:

Comparing:

Conditional Jumps:

Unconditional Jumps:

I/O:

End:


4.3 BIT MANIPULATION

4.3.1 Binary Shifts

Left Shift (LSL #n):

Right Shift (LSR #n):

Arithmetic Shift:

Cyclic Shift:

4.3.2 Bit Masking

Purpose: Each bit can represent an individual flag. By manipulating bits, flags can be operated upon.

Operations:

Masking to 1:

Masking to 0:

Testing Bits:

Practical Applications:

CHAPTER 5: SYSTEM SOFTWARE

5.1 OPERATING SYSTEMS

5.1.1 Need for Operating System

Definition: A set of programs designed to run in the background on a computer system.

Functions:

Why OS is Essential:

5.1.2 Key Management Tasks

Memory Management:

File Management:

Security Management:

Hardware Management:

Process Management:

5.1.3 Utility Software

Disk Formatter:

Virus Checker:

Defragmentation Software:

Disk Repair Software:

File Compression:

Backup Software:

5.1.4 Program Libraries

Definition: Pre-written code that can be linked to software under development.

Benefits:


5.2 LANGUAGE TRANSLATORS

5.2.1 Assembler

Purpose: Translates assembly language to machine code (binary).

Characteristics:

5.2.2 Compiler vs Interpreter

Feature Compiler Interpreter
Translation Translates entire program before execution Translates line-by-line
Output Creates .exe file No .exe created
Execution Faster (already compiled) Slower (translates each time)
Error Reporting All errors at end Stops at first error
Development Used when development complete Used during development
Debugging Difficult (all errors at end) Easier (stops at error)

5.2.3 Two-Step Translation (Java)

Process:

  1. Java compiler translates source code to bytecode
  2. Java Virtual Machine (JVM) interprets bytecode to machine code

Benefits:

5.2.4 IDE Features

Coding Features:

Error Detection:

Presentation:

Debugging:

CHAPTER 6: SECURITY, PRIVACY AND DATA INTEGRITY

6.1 DATA SECURITY

6.1.1 Definitions

Data Security:

Data Integrity:

Data Privacy:

6.1.2 Threats to Computer and Data Security

Malware:

Hacking:

Phishing:

Pharming:

6.1.3 Security Measures

User Accounts and Passwords:

Firewalls:

Authentication:

Anti-virus Software:

Anti-spyware Software:

Encryption:

Data Backup:

6.1.4 Data Security vs System Security

Data Security System Security
Protection of data on system Protection of computer system
Prevents corruption, unauthorized use Prevents viruses, hacking
Example: encryption Example: firewall, passwords


6.2 DATA INTEGRITY

6.2.1 Data Validation

Definition: Checks if data entered is valid (sensible).

Methods:

Method Description
Range Check Data must be between set values
Format Check Data must follow correct pattern
Length Check Data must have exact number of characters
Presence Check Checks if data has been entered
Existence Check Data entered must exist in database
Limit Check Value within acceptable min/max
Check Digit Arithmetic result of other digits; verifies accuracy

6.2.2 Data Verification

Definition: Checks data entered is accurate (correct).

Data Entry Verification:

Method Description
Visual Check Person manually compares original with entered data
Double Entry Enter data twice; compares results

Data Transfer Verification:

Parity Check:

Checksum Check:

CHAPTER 7: ETHICS AND OWNERSHIP

7.1 ETHICS AND OWNERSHIP

7.1.1 Ethics

Definition: A system of moral principles that guide behaviour based on philosophical views.

Computer Ethics:

Professional Bodies:

7.1.2 Ownership

Data Ownership:

Copyright:

Need for Legislation:

7.1.3 Software Licensing

Type Description
Free Software Foundation Users have freedom to run, copy, distribute, study, change, improve; copyleft (modified versions must also be free)
Open Source Initiative Source code available; users can review and redistribute
Shareware Free trial period; payment expected after evaluation
Commercial Requires payment; includes all features

7.1.4 Artificial Intelligence (AI)

Definition: The ability of computer to perform tasks conventionally associated with human intelligence.

AI Capabilities:

AI Applications:

AI Impacts:

Area Impact
Social Replacement of manual labour; unemployment; increased leisure time
Economic Lower manufacturing costs; increased innovation
Environmental Detrimental impact; robot manufacture; waste disposal

CHAPTER 8: DATABASE CONCEPTS AND MANAGEMENT

8.1 DATABASE CONCEPTS

8.1.1 Limitations of File-Based Systems

Disadvantages:

8.1.2 Database Approach

Database:

DBMS (Database Management System):

8.1.3 Relational Database Terminology

Term Definition
Entity Object/event that can be distinctly identified
Table Contains related entities in rows and columns
Tuple Row/record in relational database
Attribute Field/column in relational database
Primary Key Attribute that uniquely identifies each tuple
Candidate Key Attribute that can potentially be primary key
Foreign Key Attribute that relates two different tables
Secondary Key Candidate key not chosen as primary
Referential Integrity Prevents inconsistent data in relationships

8.1.4 Entity-Relationship Diagrams

Relationships:

8.2 DATABASE MANAGEMENT SYSTEMS (DBMS)

8.2.1 Features of DBMS

Data Management:

Data Dictionary:

Data Modelling:

Logical Schema:

Data Integrity:

Data Security:

Data Change Handling:

Deadlock:

8.2.2 DBMS Tools

Developer Interface:

Query Processor:

8.3 NORMALIZATION

8.3.1 First Normal Form (1NF)

Requirements:

8.3.2 Second Normal Form (2NF)

Requirements:

8.3.3 Third Normal Form (3NF)

Requirements:

8.3.4 Many-to-Many Relationships

8.4 SQL (STRUCTURED QUERY LANGUAGE)

8.4.1 Data Definition Language (DDL)

CREATE DATABASE:

<SQL>

CREATE DATABASE database-name

CREATE TABLE:

<SQL>

CREATE TABLE table-name (
field1 data-type,
field2 data-type,
...
)

ALTER TABLE:

<SQL>

ALTER TABLE table-name ADD field-name data-type

PRIMARY KEY:

<SQL>

PRIMARY KEY (field)

FOREIGN KEY:

<SQL>

FOREIGN KEY (field) REFERENCES table(field)

8.4.2 Data Manipulation Language (DML)

SELECT (Query):

<SQL>

SELECT field-name
FROM table-name
WHERE condition

Operators: =, >, <, >=, <=, <>, IS NULL

ORDER BY: Sort ascending

<SQL>

ORDER BY field-name

GROUP BY: Group identical data

<SQL>

GROUP BY field-name

INNER JOIN: Combine fields from different tables

<SQL>

INNER JOIN table ON condition

INSERT:

<SQL>

INSERT INTO table (field1, field2)
VALUES (value1, value2)

DELETE:

<SQL>

DELETE FROM table WHERE condition

UPDATE:

<SQL>

UPDATE table
SET field = value
WHERE condition

Data Types: