GATE Computer ScienceHardGATE CSE

A 7-bit even-parity Hamming codeword (bit positions 1 to 7, parity bits at positions 1, 2 and 4) is received as 1010110 (position 1 first). Which bit position, if any, is in error?

  1. A. Position 2
  2. B. Position 1
  3. C. Position 4
  4. D. No error

Correct answer: B. Position 1

XORing the positions of the 1 bits gives the syndrome 1, which is the position of the erroneous bit.

More Computer Organization and Architecture questions

Exams that ask this topic