Shortening an IPv6 address
Replaces one run of all-zero groups in an IPv6 address, and can be used only once. Leading zeros in each group can also be dropped, e.g. 0db8 becomes db8.
Understanding Shortening an IPv6 address in IGCSE Computer Science Paper 1
What it does: The six all-zero groups in a row are replaced by a single ::, giving fe80::1. ::1 has only one written group, so :: stands for seven all-zero groups to reach eight. Only leading zeros can be dropped. The zeros at the end of the group are part of the value, so 0A00 becomes A00. The second address uses :: twice, which is not allowed. 0d80 should become d80, because only the leading 0 is removed.
Common mistakes: Both leading zeros must be dropped, so 00a4 becomes a4. Dropping only one zero leaves 0a4. A group of all zeros shortens to a single 0, not to nothing. Only :: can stand in for whole zero groups.
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 342–354) and word search (Modules 325–354).
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
::Fill in the Blanks
Spot the Error
Student with a class code? Join your class →