CS FundamentalsModerateHCL · Tech Mahindra pattern

How many parity (check) bits does a single-error-correcting Hamming code need for 11 data bits?

  1. A. 3
  2. B. 4
  3. C. 5
  4. D. 11

Correct answer: B. 4

Need the smallest r with 2^r ≥ m + r + 1. For m = 11: r = 3 gives 8 < 15, r = 4 gives 16 ≥ 16, so r = 4 (the (15, 11) code).

More Computer Networks questions

Exams that ask this topic