Binary, denary and hexadecimal conversions – OCR A Level Computer Science lesson (H446)
Students learn to convert positive integers between binary, denary and hexadecimal, and explain why hexadecimal is used.
Lesson 1 of 13 in unit 12.3 Data Representation and Logic Gates, taught in Year 12, Autumn 2. It answers one big question: Why do programmers write binary as hexadecimal?
By the end, students can convert positive integers between binary, denary and hexadecimal, and explain why hexadecimal is used.
- The Build (the main task)
- Calculate the hexadecimal and denary values of the Wrenhome Sensors sensor ID 1011 0110 0011 1101, showing your working, and explain why the engineers write IDs in hexadecimal (6 marks).
- Support version
- A nibble grid with the place values 8, 4, 2, 1 over each group of four bits and a 0–15 hexadecimal look-up row; the first nibble is done.
- Challenge
- Calculate the hexadecimal value of the reading 2024 without going through binary, and check it by converting back.
- Real-world link
- Students meet Wrenhome Sensors, a fictional small company making temperature, door and motion sensors for homes: the unit's running context. Every sensor has a 16-bit ID printed in hexadecimal.
- Key words
- Hexadecimal, Denary and Convert, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Hexadecimal takes up less memory than binary”; “To convert binary to hexadecimal, group the bits into fours from the left”.
- OCR H446 specification
- 1.4.1 (b); (e); (f).
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.
Students can do it all on paper.
Also sold in the Data Representation and Logic Gates unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
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 A Level Computer Science
See allStudents learn to represent positive and negative integers in 8-bit sign and magnitude, state its range and explain its drawbacks.
Students learn to convert between denary and 8-bit two's complement, state its range and explain why it is preferred to sign and magnitude.
Students learn to add two 8-bit binary integers, showing the carries, and identify when overflow has occurred.
Written for the specifications named. Not endorsed by or affiliated with any exam board.