Even parity
A parity bit is added so the total number of 1s in the byte, including the parity bit, is even. Odd count of 1s in the data gives parity bit 1; even count (even 0) gives 0.
Understanding Even parity in IGCSE Computer Science Paper 1
What it does: Zero 1s is an even count, so no 1 is needed. The parity bit stays 0 and the whole byte keeps an even number of 1s. 1011000 has three 1s, which is odd. The parity bit is 1 to make the total four, which is even.
Common mistakes: Parity depends on the number of 1s in the data, so the code must count "1", not "0". The line should be ones = data.count("1"). The bits must be stored as a string in quotes so that .count("1") works on them. Without quotes it is a number and the program fails. It should be bits = "1100110".
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
even parityFill in the Blanks
Spot the Error
Student with a class code? Join your class →