Logic circuits
When an even parity bit is added to the 7-bit data 1011001, what is the parity bit?
- A1
- B0
- CAlways 1 regardless of the data
Show answer and explanation
Answer: B. 0
Even parity sets the parity bit so the total number of 1s, including it, is even. 1011001 already has four 1s, so the parity bit is 0. If the receiver counts an odd number of 1s, a single-bit error is detected, but two simultaneous errors go unnoticed and the faulty bit cannot be located. Memories that need correction use ECC such as Hamming codes, which combine multiple parity bits.