Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
Parity schemes append one extra bit to help detect transmission errors. In an odd-parity system, the total number of 1s in the complete word (data + parity) must be odd. We check whether a given data word paired with a stated parity bit satisfies this rule.
Given Data / Assumptions:
Concept / Approach:
Count the number of 1s in the data. If the count is already odd, then an odd-parity bit of 0 keeps the total odd. If the count is even, the parity bit must be 1 to make the total odd.
Step-by-Step Solution:
Verification / Alternative check:
If one data bit flips (e.g., to 011011101), ones become 6; with parity 0 total is 6 (even) and the checker flags an error.
Why Other Options Are Wrong:
Common Pitfalls:
Off-by-one in counting ones; confusing even vs odd parity; mixing parity with checksums/CRCs.
Final Answer:
Correct
Discussion & Comments