Multiple shifts
Shifting by n places moves every bit n positions, losing n bits at one end and adding n zeros at the other. Shift all 8 bits out and you get 00000000.
Understanding Multiple shifts in IGCSE Computer Science Paper 1
What it does: 00000101 shifted left 3 places gives 00101000: the 1s move 3 places left and three 0s fill the right-hand end. Every bit moves 8 places and is lost, so only the added zeros remain: 00000000. A logical shift does not wrap bits around. Bits that leave the register are lost and zeros fill the gaps. Right shift by 2: 11010110 becomes 00110101. The last two bits (1 and 0) fall off the right end and two 0s enter on the left. Check: dropping the first two bits leaves 110011, and adding 00 on the right gives 11001100. This answer is correct, so no fix is needed.
Common mistakes: In a left shift the bits that are lost come off the left, so the new zeros are added on the right, not the left. It should read: Add 2 zeros on right: 00110100. 00101101 is the result of shifting right by only 2 places. Shifting right by 3 moves every bit 3 places, giving 00010110.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 18–27) and word search (Modules 3–27).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
shift n placesFill in the Blanks
Spot the Error
Student with a class code? Join your class →