ASCII (American Standard Code for Information Interchange) assigns a unique 7-bit binary number to each character. It covers 128 characters (0–127), including uppercase/lowercase letters, digits, punctuation, and control characters.
| Character | ASCII (Denary) | Binary |
|---|---|---|
| 'A' | 65 | 01000001 |
| 'a' | 97 | 01100001 |
| '0' | 48 | 00110000 |
| Space | 32 | 00100000 |
Key relationships: uppercase 'A'–'Z' = 65–90; lowercase 'a'–'z' = 97–122. Adding 32 to an uppercase ASCII value gives the lowercase equivalent.
Unicode is an extension of ASCII that can represent characters from all world languages, emojis, and special symbols. It uses more bytes per character:
A bitmap stores an image as a grid of pixels. Each pixel is stored as a binary value representing its colour.
| Colour depth (bits) | Colours possible | Example |
|---|---|---|
| 1 | 2¹ = 2 | Black & white |
| 8 | 2⁸ = 256 | Early GIF |
| 24 | 2²⁴ = 16,777,216 | True colour |
File size formula: width × height × colour depth ÷ 8 = bytes
Example: 200×150 pixels, 24-bit colour → 200 × 150 × 24 ÷ 8 = 900,000 bytes ≈ 879 KiB
Sound is an analogue wave. To store it digitally, it must be sampled:
File size formula: sample rate × bit depth × duration (seconds) ÷ 8 = bytes
For stereo, multiply by 2 (2 channels).
Example: 44,100 Hz × 16-bit × 10 s ÷ 8 = 882,000 bytes ≈ 861 KiB (mono)
8 Edexcel-style questions · AI-marked
| Term | Definition |
|---|
Timed exam-style test.