GATE Computer ScienceVery hardGATE CS (PYQ pattern)

An 8-bit value is stored with an even-parity Hamming code in 12 positions 1..12 (check bits at positions 1, 2, 4, 8). The word read back is 001001110000 (position 1 first). The syndrome is computed as the XOR of the positions of all 1 bits. Which position is in error, and is that position a data bit or a check bit?

  1. A. Position 11, a data bit
  2. B. Position 6, a data bit
  3. C. Position 10, a check bit
  4. D. Position 10, a data bit

Correct answer: D. Position 10, a data bit

XOR of the positions holding 1 gives 10 (binary 1010); this is not a power of two, so it is a data position. Flip it to recover the stored word.

More Computer Organization and Architecture questions

Exams that ask this topic