Data representation
GCSE Computer Science · Unit 4: Programming
Data representation notes
Fact-checked by a second, independent AI review.
Core ideas in data representation include how binary encodes numbers and text, ranges and storage sizes, character encodings (ASCII/Unicode), and the effects of overflow and precision on data.
- Binary (bits and bytes)
- Data is stored in base-2; a bit is 0 or 1, and a byte is typically 8 bits.
- Denary/Denary ↔ Binary conversion
- Convert numbers between binary and decimal by summing powers of two; practice converting 8-bit binaries to decimal.
- ASCII and Unicode
- Text is represented by character codes. ASCII uses 7 bits (extended ASCII uses 8 bits) for basic characters, while Unicode covers many scripts and symbols and is encoded in formats such as UTF-8, UTF-16 or UTF-32.
- Storage size and range
- The number of values a data type can store depends on bits. Examples: 8-bit unsigned 0–255; 8-bit signed -128 to 127.
- Overflow and precision (fixed-point vs floating-point)
- If a value exceeds a type’s range or rounding occurs, data can be lost or wrap around (overflow/underflow).
Remember it: Hook: 'BITE' — Binary, Integers, Text encodings, Encoding limits.
Exam tip: Explain how binary to denary conversion works, name ASCII vs Unicode, state the storage range for common sizes, and describe overflow/precision effects with a quick example.
Syllabus checklist
- Data representation: core ideas
- Terms and typical exam questions for "Programming" in GCSE Computer Science (OCR/AQA)
Practice questions
1. Which binary value represents 255 in 8-bit unsigned?
Answer checked
Show answer
Answer: 11111111. 11111111₂ equals 255 in decimal.
2. In binary, a nibble is 4 bits.
Answer checked
Show answer
Answer: True. A nibble is exactly 4 bits.
3. In an 8-bit unsigned byte, the value 200 is stored as ____.
Answer checked
Show answer
Answer: 11001000. 200 in decimal equals 11001000₂.
4. ASCII uses 7-bit encoding. How many distinct characters can be represented?
Answer checked
Show answer
Answer: 128. 2⁷ = 128 characters.
5. What is the decimal value of binary 1010?
Answer checked
Show answer
Answer: 10. 1010₂ = 10₁₀.

Practise data representation as a game
Hearts, combos, streaks and an AI tutor that explains every answer. Start free.