A-Level Computer Science Revision

Data Representation

Number bases, two's complement, floating point, character sets and representing images and sound.

Data Representation is a core part of A-Level Computer Science. Revise the key concepts and common mistakes below, then lock them in with the free games.

Key concepts

BinaryBase-2 representation using only 0s and 1s.
HexadecimalBase-16, a shorthand for binary (0–9, A–F).
Bits & bytesA bit is one binary digit; 8 bits make a byte.
Character encodingASCII and Unicode represent text as binary codes.
Image representationImages stored as pixels with a colour depth.
Sound representationSound sampled at a rate and bit depth to store digitally.

Common mistakes to avoid

Questions where students often pick the tempting wrong answer — make sure you know the right one:

What does in-order traversal of a binary search tree produce?✗ Nodes in the order they were inserted.   ✓ Nodes in ascending sorted order.
What is encapsulation in OOP?✗ Putting code inside other code (nesting).   ✓ Bundling data and methods together while restricting direct access to internal state.
What comes after F when counting in hexadecimal?✗ G - the alphabet simply continues after F.   ✓ 10 (one-zero), which represents denary 16; the digits restart and a new place value column begins, just as 9 rolls over to 10 in denary.
Does doubling the colour depth of an image double the number of available colours?✗ Yes - twice the bits means twice the colours.   ✓ No - each extra BIT doubles the colours, so going from 8-bit to 16-bit multiplies the available colours by 2^8 = 256, not by 2.
Compared with ASCII, Unicode:✗ Uses fewer bits for every character   ✓ Can represent characters from far more of the world's writing systems

Practise Data Representation — free games

Test yourself with these quick revision games for this topic:

See all 17 games in the Subjects Arcade →

More A-Level Computer Science topics

← All revision guides

Want to revise every topic this smart?

The Velvet Method teaches you to use AI to revise any subject — £25, lifetime access.

Explore the Course →