Skip to content

Binary, denary and hexadecimal: GCSE Computer Science revision notes

Computers are made of switches (transistors) that are either on or off, so data is stored as 1s and 0s called bits. 4 bits = 1 nibble. 8 bits = 1 byte.

In short

Computers are made of switches (transistors) that are either on or off, so data is stored as 1s and 0s called bits. 4 bits = 1 nibble. 8 bits = 1 byte.

For GCSE students in Years 10 and 11, on the AQA, OCR, Edexcel, Eduqas, Edexcel IGCSE and Cambridge IGCSE Computer Science courses.

Why computers use binary

  • Computers are made of switches (transistors) that are either on or off, so data is stored as 1s and 0s called bits.
  • 4 bits = 1 nibble. 8 bits = 1 byte.

Binary place values

  • For 8 bits the place values are 128, 64, 32, 16, 8, 4, 2, 1.
  • 1011 0101 = 128 + 32 + 16 + 4 + 1 = 181.
  • The largest 8-bit number is 255, so 8 bits can store 256 different values (0 to 255).

Denary to binary

  • Start with the largest place value that fits, subtract it, and repeat.
  • 100 = 64 + 32 + 4, so 100 = 0110 0100.

Hexadecimal

  • Hexadecimal is base 16. It uses 0–9 and A–F (A = 10, B = 11 … F = 15).
  • Each hex digit represents one nibble: 1010 1111 = AF.
  • Hex is easier for people to read and write than long binary numbers, with fewer mistakes.

Units of data

  • bit → nibble (4 bits) → byte (8 bits) → kilobyte (1000 bytes) → megabyte → gigabyte → terabyte → petabyte, each ×1000.

Key terms

Bit
A single binary digit: 0 or 1.
Nibble
4 bits.
Byte
8 bits.
Binary
Base 2: numbers written using only 0 and 1.
Denary
Base 10: the everyday number system.
Hexadecimal
Base 16, using 0–9 and A–F.
Overflow
When a calculation's result needs more bits than are available.

Quick questions on Binary, denary and hexadecimal

How many bits are there in a byte?
8: A byte is 8 bits.
What is binary 1010 in denary?
10: 8 + 2 = 10.
What is 1111 1111 in denary?
255: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255.
What is denary 9 in 4-bit binary?
1001: 8 + 1 = 9, so 1001.
Which hex digit represents 12?
C: A = 10, B = 11, C = 12.
What is hex F in binary?
1111: F = 15 = 8 + 4 + 2 + 1.
Why do computers use binary?
Their switches only have two states: on and off: Transistors are either on (1) or off (0).
What is hex 2F in denary?
47: 2 × 16 + 15 = 47.
How many different values can 8 bits store?
256: 2⁸ = 256 values (0 to 255).
What is denary 100 in 8-bit binary?
0110 0100: 64 + 32 + 4 = 100.
Why do programmers use hexadecimal?
It's easier to read than long binary numbers: Hex is a shorthand for binary that people can read more easily.
What are 4 bits called?
A nibble: 4 bits = 1 nibble.

Binary, denary and hexadecimal: exam-style questions and mark schemes

  1. Convert the binary number 0101 1010 to denary. [1 mark]

    • 90
  2. Convert the denary number 200 to 8-bit binary. [1 mark]

    • 1100 1000
  3. Convert the hexadecimal number 3C to binary. [2 marks]

    • 3 = 0011 (1)
    • C = 1100 (1)
  4. Explain why computer scientists often use hexadecimal instead of binary. [2 marks]

    • Hex is shorter / easier for people to read and remember than binary (1)
    • Fewer mistakes when reading or copying / quick to convert to and from binary (1)
  5. Explain why computers store data in binary, and why programmers often write values in hexadecimal instead. Use the denary number 200 as an example. [6 marks]

    • computers are made of switches (transistors) that have two states, on and off (1)
    • binary has two digits, 0 and 1, which match these two states (1)
    • 200 in binary is 11001000 (1)
    • 200 in hexadecimal is C8 (1)
    • hexadecimal is shorter, so it is quicker for people to read and write (1)
    • fewer mistakes are made when copying hex than long binary numbers (1)
    • each hex digit stands for 4 bits (a nibble), so converting between them is easy (1)
    • the computer still stores the value in binary: hex is only for people (1)

How to answer them: exam technique and command words.

Binary, denary and hexadecimal: questions and answers

How many different values can 8 bits store?
2⁸ = 256 values (0 to 255).
What is denary 100 in 8-bit binary?
0110 0100. 64 + 32 + 4 = 100.
Why do programmers use hexadecimal?
It's easier to read than long binary numbers. Hex is a shorthand for binary that people can read more easily.

Practise Binary, denary and hexadecimal: 12 questions

Download these notes as a PDF

Previous topic: Robust programs and testingNext topic: Binary addition and shifts

More in Fundamentals of data representation

LycoLearn is still loading…

This can take a little longer on a busy school or home network. If nothing happens, try refreshing the page.

LycoLearn didn’t load properly

Part of it didn’t arrive. Try refreshing the page in a minute, or open LycoLearn in another browser.