AQA · GCSE · Computer Science
Course version: 8525 · Version from Sept 2020
Students will be expected to understand and use only a logical binary shift.
Full specification wording
Binary arithmetic: Students will be expected to understand and use only a logical binary shift.
A logical binary shift moves every bit in a binary pattern a stated number of places left or right and fills the vacated positions with 0.
Checked against the AQA 8525 specification (opens in a new tab) on .
- Point 4 of 6
Study notes
From the checked teaching notes for this specification point.
The idea
A logical binary shift moves every bit in a binary pattern a stated number of places left or right and fills the vacated positions with 0. A left shift by n places multiplies the value by 2ⁿ; a right shift by n places divides by 2ⁿ, discarding bits shifted off the right-hand end. For example, 0000 1011 (11) shifted left by 2 gives 0010 1100 (44), and 0000 1011 shifted right by 2 gives 0000 0010 (2), because the two lowest bits are lost. The specification limits you to logical shifts only, so you are not required to handle arithmetic shifts that preserve a sign bit. Track the bit pattern and the place value together, and state the number of places moved.
What earns the marks
- A logical shift fills vacated bit positions with 0, not with a copied sign bit.
- A left shift by n places multiplies the binary value by 2ⁿ.
- A right shift by n places divides by 2ⁿ, discarding bits shifted beyond the right-hand end.
- The number of places shifted must be identified and applied to every bit in the pattern.
- Only logical shifts are required; arithmetic shifts that preserve a sign bit are outside the expected scope.
Common mistakes and how to put them right
Filling vacated positions with a 1 or a copied sign bit.
Put it right by filling every vacated position with 0 for a logical shift.
Shifting the wrong direction for multiplication.
Put it right by remembering a left shift multiplies and a right shift divides.
Forgetting that right-shifted bits are lost.
Put it right by discarding bits moved past the right-hand end rather than wrapping them round.
Exam tips
- Write the original bit pattern and the shifted pattern side by side so each bit's movement is visible.
- State the number of places shifted and whether it is left or right before calculating the new value.
- Check your answer by converting both patterns to denary and confirming the multiply-or-divide relationship.
Try the lesson
The start of the Binary arithmetic: Students will be expected to understand and use only a logical binary shift. lesson, made from checked teaching notes for this specification point.
Have a go first
A binary value is shifted two places to the left. What is the effect on the value of the number?
There is more to this lesson
The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge
Test your understanding of Binary arithmetic: Students will be expected to understand and use only a logical binary shift.
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge