Odd parity
A rule where the parity bit is set so the total number of 1s in the byte, including the parity bit, is odd. Even number of 1s in the data gives bit 1; odd number gives bit 0.
Understanding Odd parity in IGCSE Computer Science Paper 1
What it does: 0110 0000 has two 1s (even). Odd parity adds a parity bit of 1, so the total is three 1s, which is odd. Odd parity means the whole byte, parity bit included, ends up with an odd number of 1s. An even count needs one extra 1 to become odd, so the parity bit is 1. The two rules always give opposite parity bits for the same data.
Common mistakes: len(data) counts every bit, not just the 1s. Odd parity depends on the number of 1s, so it should be data.count("1"). With odd parity, an even number of 1s needs parity bit 1. The test must be ones % 2 == 0. Testing for == 1 swaps the two cases, which is the wrong way round.
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
odd parityFill in the Blanks
Spot the Error
Student with a class code? Join your class →