Back to Activities

Ready-to-use computing activity

Binary Overflow and Shifts

GCSE50-60 minutesClassPilot Binary Lab

Teacher overview

Prior knowledge: Learners should be able to add small binary values and recognise 8-bit place values.

Learning objective: Predict and test binary addition, carry, overflow and logical shifts.

Starter

Ask learners to predict what happens to 00001100 after a logical left shift.

Main task

  1. Add 00000101 + 00000011 and record each carry.
  2. Add 11111111 + 00000001 and explain why the 8-bit result overflows.
  3. Predict the result of shifting 00010110 left once and right once.
  4. Use Binary Lab to test the predictions and correct the trace.
  5. Write one sentence explaining why a left shift often doubles a positive unsigned value.

Support prompts

  • Line up the bits before adding.
  • A carry leaves the current column and moves left.
  • Overflow means the answer needs more bits than are available.

Challenge

Compare unsigned overflow with signed overflow for 01111111 + 00000001.

Plenary or exit question

Why is overflow a computer problem rather than just a maths problem?

Related tool

Open ClassPilot Binary Lab