Single lesson · Written for OCR A Level (H446)

Logical and arithmetic shifts – OCR A Level Computer Science lesson (H446)

Students learn to carry out logical and arithmetic shifts on 8-bit patterns and explain their effect on unsigned and two's complement numbers.

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 6 of 13 in unit 12.3 Data Representation and Logic Gates, taught in Year 12, Autumn 2. It answers one big question: How can moving bits multiply or divide a number?

By the end, students can carry out logical and arithmetic shifts on 8-bit patterns and explain their effect on unsigned and two's complement numbers.

The Build (the main task)
Calculate the result of a logical right shift of 2 on the Wrenhome Sensors light reading 1101 0100 and of an arithmetic right shift of 2 on the two's complement temperature 1110 1000, and explain the effect of each shift on the value (6 marks).
Support version
8-bit grids with arrows for each move, and the fill rules written beside them ('logical: fill with 0', 'arithmetic right: copy the MSB').
Challenge
Explain why a logical left shift of 3 on 0011 0101 does not give 8 × 53, and what this means for the sensor.
Real-world link
Wrenhome Sensors's sensors scale readings by shifting, which is faster than multiplying.
Key words
Logical shift, Arithmetic shift and Multiply, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“A right shift of a negative two's complement number fills with 0s, like any shift”; “A left shift of 2 multiplies by 2”.
OCR H446 specification
1.4.1 (i).

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.