CS FundamentalsHardIBM · Deloitte pattern

Using the (7, 4) Hamming code with even parity and bit layout p1 p2 d3 p4 d5 d6 d7 (data in positions 3, 5, 6, 7), what codeword is sent for the data 1011?

  1. A. 1010101
  2. B. 0111011
  3. C. 0110011
  4. D. 1011010

Correct answer: C. 0110011

d3 = 1, d5 = 0, d6 = 1, d7 = 1. p1 covers 3, 5, 7: 1⊕0⊕1 = 0. p2 covers 3, 6, 7: 1⊕1⊕1 = 1. p4 covers 5, 6, 7: 0⊕1⊕1 = 0. Codeword p1 p2 d3 p4 d5 d6 d7 = 0 1 1 0 0 1 1.

More Computer Networks questions

Exams that ask this topic