CS FundamentalsHardProduct-company MCQ pattern

How many parity bits does a single-error-correcting Hamming code need to protect 18 data bits?

  1. A. 6
  2. B. 5~1
  3. C. 5
  4. D. 4

Correct answer: C. 5

The smallest r with 2^r ≥ m + r + 1 is used. For m = 18, r = 4 gives 2^4 = 16 < 23, but r = 5 gives 2^5 = 32 ≥ 24.

More Computer Networks questions

Exams that ask this topic