Working out the parity bit for a byte
Count the 1s in the 7 data bits, then set the leftmost parity bit to 0 or 1 so the total number of 1s in the whole 8-bit byte matches the agreed rule (even or odd).
Understanding Working out the parity bit for a byte in IGCSE Computer Science Paper 1
What it does: Two 1s is already even, so a leftmost 0 is added to the 7 data bits 1000001, giving 01000001. Three 1s is odd, so a leftmost 1 makes four 1s in total. The byte is 11000011. 1110000 has three 1s, which is already odd. The parity bit must be 0, so the byte is 01110000. With odd parity the total number of 1s must be odd. Four 1s needs one more, so the parity bit is 1.
Common mistakes: The data bits 1011001 contain four 1s, not five. The count should be 4, so even parity needs a parity bit of 0. There are already three 1s, which is odd. Odd parity needs no extra 1, so the parity bit must be 0. A parity bit of 1 would make four 1s, which is even.
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
count the 1sFill in the Blanks
Spot the Error
Student with a class code? Join your class →