Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

      Lesson details

      Learning outcome

      I can perform binary shifts to multiply and divide binary numbers, but recognise the errors this may introduce.

      Key learning points

      1. Binary shifting is shifting the bits to the left or to the right.
      2. If you shift to the left, you multiply the number by a power of 2.
      3. If you shift to the right, you divide the number by a power of 2.
      4. Overflow is when a number is too large to be stored in allocated memory.
      5. Underflow is when a number is too small to be processed.

      Keywords

      • Binary shifting - when binary digits are moved left or right, multiplying or dividing them by powers of 2

      • Overflow - when a number is too large to be represented in the available binary digits

      • Underflow - when a number is too small to be represented in the available binary digits

      Common misconception

      When performing binary multiplication any result can be stored, regardless of how many binary digits are needed.

      The size of a binary number that can be stored is allocated in memory. Sometimes the result of a binary shift may result in a larger binary number that can be stored in the number of bits available.

      Teacher tip

      Computers are not infalable and can make mistakes. Based on the example in the slide deck, discuss with pupils other things that might go wrong with computers when the data they used is limited.

      Licence

      This content is © Oak National Academy Limited (2025), licensed on Open Government Licence version 3.0
      except where otherwise stated. See Oak's terms & conditions
      (Collection 2).

      Lesson video

      Loading...

      Prior knowledge starter quiz

      6 Questions

      Q1.
      Match the terms to the description.

      Correct Answer:binary,a number system using 0 and 1

      a number system using 0 and 1

      Correct Answer:decimal,a number system using the digits 0 to 9

      a number system using the digits 0 to 9

      Correct Answer:transistor,a switch in an electronic circuit

      a switch in an electronic circuit

      Correct Answer:instruction,a direction for performing a task

      a direction for performing a task

      Q2.
      What number system uses only the digits 0 and 1?

      decimal
      Correct answer: binary
      octal
      hexadecimal

      Q3.
      What is the base of the decimal number system?

      2
      8
      Correct answer: 10
      16

      Q4.
      What is a carry in binary addition?

      a number that is discarded
      a digit that remains unchanged
      a subtraction result
      Correct answer: a value moved to the next column

      Q5.
      What is the result of the binary addition 1 + 1?

      Correct Answer: 10

      Q6.
      What is the result of the binary addition 11001 + 111?

      Correct Answer: 100000

      6 Questions

      Q1.
      Match the terms with their descriptions

      Correct Answer:left shift,multiplies by powers of 2

      multiplies by powers of 2

      Correct Answer:right shift,divides by powers of 2

      divides by powers of 2

      Correct Answer:overflow,when memory capacity is exceeded

      when memory capacity is exceeded

      Correct Answer:underflow,when digits are rounded down as they drop near zero

      when digits are rounded down as they drop near zero

      Q2.
      What is an overflow in binary operations?

      a number that is too small to process
      a number that fits perfectly in memory
      a number that is negative
      Correct answer: a number that is too large to be represented

      Q3.
      Which of the following can cause overflow?

      Correct answer: adding two large numbers
      subtracting two small numbers
      multiplying by zero
      dividing by one

      Q4.
      In binary, what is 11001 × 10?

      Correct Answer: 110010

      Q5.
      In binary, what is 11001 ÷ 100?

      Correct Answer: 110

      Q6.
      What should be considered when storing binary multiplication results?

      The result can be any size.
      The result is always zero.
      Correct answer: The result must fit within the allocated memory.
      The result is always negative.

      To help you plan your 10 computer science lesson on: Binary shifts, download all teaching resources for free and adapt to suit your pupils' needs...