GCSE Computer Science revision
Data Representation
Binary, hexadecimal, characters, images and sound.
What you will learn
- Binary basics
- Converting binary & denary
- Hexadecimal
- Characters
- Images & sound
Binary basics
Computers use binary — just 0s and 1s — because circuits are either on or off. Each 0 or 1 is a bit; 8 bits make a byte.
- A bit is a single 0 or 1
- 1 byte = 8 bits
- 1 kilobyte (KB) = 1024 bytes
- Binary is base 2; denary is base 10
Converting binary & denary
Each binary place is a power of 2. Add up the values where there is a 1 to convert to denary.
- Places: 128, 64, 32, 16, 8, 4, 2, 1
- 1011 = 8 + 2 + 1 = 11
- To convert denary to binary, subtract the largest power of 2
- An 8-bit number can store 0–255
Hexadecimal
Hexadecimal (hex) is base 16, using digits 0–9 and letters A–F. It is a shorthand for binary.
- Each hex digit = 4 bits (a nibble)
- Hex is easier for humans to read than binary
- Used for colour codes (e.g. #FF5733)
- A = 10, F = 15 in denary
Characters
Characters are stored as binary codes. ASCII uses 7 bits for English; Unicode uses more bits for all languages.
- ASCII: 128 characters, 7 bits
- Unicode covers most world languages and emojis
- Each character maps to a number
- 'A' is 65 in ASCII
Images & sound
Images are stored as pixels; sound is stored as samples. The more detail, the bigger the file.
- Pixels: tiny coloured dots; resolution = pixels per inch
- Colour depth = bits per pixel; more bits = more colours
- Sound is sampled at intervals; sample rate affects quality
- Higher resolution and sample rate mean bigger files
Worked answers
1. How many bits are in a byte?
Answer: 8
Why: 1 byte = 8 bits.
Wrong options to rule out: 4; 16; 10
2. What is 1011 in denary?
Answer: 11
Why: 8 + 0 + 2 + 1 = 11.
Wrong options to rule out: 12; 9; 13
3. Hexadecimal is base…
Answer: 16
Why: Hex uses 16 symbols: 0–9 and A–F.
Wrong options to rule out: 2; 8; 10
Practice questions
Answer from memory first. Pick an option to check it and read the explanation.
1. ASCII uses how many bits per character?
2. Unicode can represent…
3. Colour depth is the number of…
4. What is 255 in binary (8 bits)?
5. A higher sound sample rate gives…