CS FundamentalsHardProduct-company MCQ pattern

A (7, 4) even-parity Hamming codeword (layout p1 p2 d3 p4 d5 d6 d7) is received as 0110111. Assuming at most one bit is in error, what are the four data bits d3 d5 d6 d7 after correction?

  1. A. 1111
  2. B. 1010
  3. C. 0111
  4. D. 1011

Correct answer: D. 1011

Check p1 (1,3,5,7): 0⊕1⊕1⊕1 = 1. p2 (2,3,6,7): 1⊕1⊕1⊕1 = 0. p4 (4,5,6,7): 0⊕1⊕1⊕1 = 1. Syndrome = 4 + 1 = 5, so bit 5 is wrong: corrected word 0110011, data 1, 0, 1, 1 = 1011. 1111 is the uncorrected data.

More Computer Networks questions

Exams that ask this topic