Hexadecimal – OCR GCSE Computer Science lesson (J277)
Pupils learn to convert between hexadecimal, binary and denary for 2-digit hex numbers, and explain why hex is used.
Lesson 7 of 11 in unit 10.3 Binary, Boolean Logic and Iteration, taught in Year 10, Spring 1. It answers one big question: Why do programmers write binary as hexadecimal?
By the end, pupils can convert between hexadecimal, binary and denary for 2-digit hex numbers, and explain why hex is used.
- The Build (the main task)
- Complete three smart bulb colour conversions – a) hex 3C to denary, b) binary 10101110 to hex, c) denary 201 to hex – showing the nibbles or place values. Then explain two reasons why the app shows colours in hexadecimal rather than binary.
- Support version
- Part-filled conversions with a hex table (0–15 beside 0–F and 4-bit binary), and each binary number already split into two nibbles.
- Challenge
- Explain why one hex digit always matches exactly one nibble.
- Real-world link
- The smart bulb app sets colours with hex codes such as #3CAE50.
- Key words
- Hexadecimal, Nibble and Shorthand, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “In hex the left digit is worth tens, so 3C is 3 × 10 + 12 = 42”; “Computers process hex, so it is faster than binary”.
- OCR J277 specification
- 1.2.4 (data storage – numbers: converting between denary, 8-bit binary and 2-digit hexadecimal; adding two 8-bit binary numbers and overflow errors; binary shifts).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Pupils can do it all on paper.
Also sold in the Binary, Boolean Logic and Iteration unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for GCSE Computer Science (OCR)
See allPupils learn to order the units of data from bit to petabyte and convert between them, stating why all data is stored in binary.
Free sample lessonPupils learn to trace and write FOR loops that use range() with a start, stop and step, and use the loop variable inside the loop.
Pupils learn to convert between denary numbers from 0 to 255 and 8-bit binary using place values.
Written for the specifications named. Not endorsed by or affiliated with any exam board.