Single lesson · Written for OCR A Level (H446)

Sign and magnitude – OCR A Level Computer Science lesson (H446)

Students learn to represent positive and negative integers in 8-bit sign and magnitude, state its range and explain its drawbacks.

Also in a bundle Data Representation and Logic Gates – OCR A Level Computer Science lessons (H446) 13 lessons for £45 · save 13% on buying separately

Lesson 2 of 13 in unit 12.3 Data Representation and Logic Gates, taught in Year 12, Autumn 2. It answers one big question: How can a pattern of bits show a negative number?

By the end, students can represent positive and negative integers in 8-bit sign and magnitude, state its range and explain its drawbacks.

The Build (the main task)
Write the Wrenhome Sensors freezer readings −19 and +45 in 8-bit sign and magnitude, and explain two problems with using sign and magnitude for the company's temperature readings (6 marks).
Support version
An 8-bit grid with the MSB column shaded and labelled 'sign', and the place values 64 to 1 over the other seven bits.
Challenge
Show that adding the sign and magnitude patterns for +5 and −5 with ordinary binary addition does not give zero.
Real-world link
Wrenhome Sensors's freezer sensor reports temperatures below zero.
Key words
Sign and magnitude, Most significant bit (MSB) and Negative, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“In sign and magnitude, the MSB has a place value of 128”; “8-bit sign and magnitude can hold −128 to +127”.
OCR H446 specification
1.4.1 (c).

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 all

Written for the specifications named. Not endorsed by or affiliated with any exam board.