Checking a received byte for a parity error
The receiver counts the 1s in the whole received byte, parity bit included. If the count breaks the agreed even or odd rule, an error has occurred and is detected.
Understanding Checking a received byte for a parity error in IGCSE Computer Science Paper 1
What it does: 11100000 has three 1s. Three is odd, which breaks the even parity rule, so an error is detected. The first bit, the parity bit, flipped from 0 to 1. The count of 1s changed from four to five, so the even parity check fails. The parity bit is part of the received byte. The receiver counts the 1s in the whole byte, parity bit included. A pass means the count of 1s follows the rule. If two bits changed, the count could still look correct, so the error would be missed.
Common mistakes: The check IF ones MOD 2 = 0 passes when the count of 1s is even, so the agreed rule is even parity. Line 1 should be rule ← "even". With odd parity, an odd count of 1s means the byte passes the check. Line 4 should output "No error detected".
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
parity checkFill in the Blanks
Spot the Error
Student with a class code? Join your class →