AQA Computer Science 8525Topic 3.3 — Fundamentals of data representationFoundation & Higher
Everything a computer stores is a pattern of ones and zeros. This topic is about how the same binary building blocks are arranged to hold numbers, text, pictures, sound and compressed data, and how you work backwards from what is stored to what it means. It is the most calculation-heavy part of Paper 2, and the calculations are all variations on the same two ideas: count the bits, and read the pattern.
What you need to know
The three bases
Understand the following number bases: decimal (base 10), binary (base 2) and hexadecimal (base 16). Decimal is the one you use every day, with ten digits. Binary has two, 0 and 1. Hexadecimal has sixteen: 0 to 9 and then A to F, where A is 10 and F is 15. Hexadecimal is written with letters because using single symbols for the values 10 to 15 keeps the numbers short.
Key fact: Three bases: decimal (10), binary (2) and hexadecimal (16).
Why computers use binary
Understand that computers use binary to represent all data and instructions. It is not a preference — it is how the hardware works. A single piece of memory can be in one of two states, and the easiest way to build a reliable circuit that holds one of two states is a switch that is on or off, or a voltage that is high or low. A bit is that one switch.
Key fact: Computers use binary because a circuit can reliably hold one of two states.
One pattern, many meanings
Students should be familiar with the idea that a bit pattern could represent different types of data including text, image, sound and integer. The same 32 bits might be the number 12345, or four ASCII characters, or a small part of a picture. The computer only knows which meaning to apply because the program tells it.
Key fact: The same bit pattern can mean a number, text, an image or sound — the program decides which.
Why hexadecimal exists
Explain why hexadecimal is often used in computer science. It exists because binary is unreadable and decimal is awkward. One hexadecimal digit is exactly four bits, so a byte is two hexadecimal digits, and every byte can be written as two characters instead of eight. Addresses in memory, colour codes in HTML and bytes in a file are all normally shown in hexadecimal.
Key fact: One hex digit is 4 bits, so 2 hex digits = 1 byte — far shorter than binary.
How the bases relate
The useful thing about hexadecimal is that it converts neatly to binary and back, with no awkward arithmetic. Each hex digit maps to exactly four binary digits: 1 = 0001, 2 = 0010, 7 = 0111, A = 1010, F = 1111. So FF in hex is 1111 1111 in binary, which is 255 in decimal.
Key fact: Each hex digit maps to exactly 4 binary digits, so hex and binary convert both ways without arithmetic.
Counting in each base
In decimal the place values are ones, tens, hundreds and thousands, each worth ten times the one before. In binary each place is worth twice the one before: 1, 2, 4, 8, 16, 32, 64, 128. In hexadecimal each place is worth sixteen times the one before: 1, 16, 256, 4096. Getting these place values right is the whole of the conversion.
What are the three number bases you must understand?
Decimal (base 10), binary (base 2) and hexadecimal (base 16).
Why do computers use binary?
Because a single piece of memory can reliably hold one of two states, and a bit is the simplest possible representation of that.
How many bits does one hexadecimal digit represent?
4 bits.
How many hexadecimal digits make up one byte?
2, because a byte is 8 bits.
What is the hexadecimal equivalent of binary 1111 1111?
FF, which is 255 in decimal.
What values do the hexadecimal digits A to F represent?
10 to 15.
Name four different types of data a bit pattern could represent.
Text, image, sound and integer.
Exam questions
Written in the style of AQA Computer Science, with a mark scheme for each one. No question here is a real past paper question.
mcq1 mark
Why is hexadecimal used in computer science?
It can represent larger numbers than binary
It is the base that computers actually store data in
It avoids the need for a byte
It uses fewer symbols than binary while remaining exactly equivalent to it
Mark scheme: 1 mark for identifying that hexadecimal is a compact way of writing binary, since one hex digit is exactly 4 bits. It represents exactly the same range as binary and computers store data in binary, not hex.
short3 marks
Explain in English why hexadecimal is often used instead of binary, and why it is easier to convert.
Mark scheme: 1 mark for explaining that hexadecimal is much more compact, with 16 symbols per digit rather than 2. 1 mark for explaining that one hex digit maps to exactly 4 binary digits, so a byte is 2 hex digits rather than 8 binary digits. 1 mark for giving the example that FF corresponds to 1111 1111, showing the conversion needs no arithmetic.
six6 marks
Explain in English why computers use binary and what hexadecimal is for.
Mark scheme: Level 1 (1-2 marks): A short answer saying computers store two states and hex is a compact form of binary. Level 2 (3-4 marks): A structured answer covering the three bases, the hardware reason and the compactness argument. Level 3 (5-6 marks): A detailed answer explaining that memory holds one of two states so binary is the natural representation, explaining that the same bit pattern can be read as a number, text, an image or sound depending on the program, explaining that hexadecimal gives 16 symbols per digit with exactly 4 bits per digit so conversion is a direct mapping with no arithmetic, and giving examples of where hexadecimal appears such as memory addresses, colour codes and file bytes.