Difficulty: Easy
Correct Answer: data = 1101 1011 parity = 1
Explanation:
Introduction / Context:
Parity bits provide a simple integrity check by constraining the total count of 1s in a codeword. For odd parity, the parity bit is selected so that data plus parity contains an odd number of 1s. This question checks your ability to count 1s correctly and apply the rule.
Given Data / Assumptions:
Concept / Approach:
Count the number of 1s in the data field. If the count is even, parity must be 1 to make the total odd. If the count is already odd, parity must be 0 to keep the total odd. Verify each option against this rule.
Step-by-Step Solution:
Verification / Alternative check:
A quick check: for odd parity, parity = NOT(even(data_ones)). Only option A uses parity = 1 when data has an even count, satisfying the requirement.
Why Other Options Are Wrong:
Common Pitfalls:
Miscounting ones; forgetting spaces in visual groups do not affect counting; mixing odd/even rules; assuming parity “fixes” any error (it only detects many single-bit flips).
Final Answer:
data = 1101 1011 parity = 1
Discussion & Comments