Wrapping around from Z to A
When a shift goes past Z, the count carries on from A, so X shifted by 3 becomes A. The alphabet works like a circle of 26 letters, numbered 0 to 25.
Understanding Wrapping around from Z to A in ACARA Digital Technologies Years 7–8
What it does: Going one step past Z (25) gives 26, which is the same position as A (0) on the circle. Subtracting 26 takes you once around the circle and lands on the correct letter number between 0 and 25. X moves to Y, then Z, then wraps around to A. The count carries on from A after Z. A is 0, so the 26th letter, Z, is number 25. There is no letter 26. The count wraps back to 0, which is A. The letter after Z is A in the circular alphabet, so the shift carries on. The broken code forgets to wrap. Subtracting 26 gives 0, so X shifted by 3 is A.
Common mistakes: The alphabet has 26 letters, numbered 0 to 25, so the wrap-around size must be 26, not 25. With 25, X shifted by 3 would not come out as A. The remainder must use 26 because the circular alphabet has 26 letters. The line should be new = (num + shift) % 26, which gives 0 (A) for X shifted by 3.
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 674–695) and word search (Modules 635–695).
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
wrap aroundFill in the Blanks
Spot the Error
Student with a class code? Join your class →