Finding the error in a parity block
In a parity block, the row and the column that both fail their parity check cross at the bit that changed. Flip that bit to correct a single-bit error.
Understanding Finding the error in a parity block in IGCSE Computer Science Paper 1
What it does: The failed row and failed column identify the position of the error where they intersect. A single parity bit only shows an error exists, but a block pinpoints the bit so it can be flipped. One failed row and one failed column cross at exactly one bit. That bit is the one that changed. The bit at the intersection has been flipped, so the received 1 must be changed back to 0. Once the crossing bit is located, flipping it back to its other value restores the original data.
Common mistakes: The bit at the crossing of the failed row and column has changed, so you must flip it with 1 - bit. Writing bit back leaves the error in place. This loop checks rows, so a failed row number must be stored in badRow, not badCol. It should be badRow ← r.
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 155–164) and word search (Modules 142–164).
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
failed row and columnFill in the Blanks
Spot the Error
Student with a class code? Join your class →