CS FundamentalsHardAccenture · Tech Mahindra pattern
A single-error-correcting Hamming code must protect 64 data bits. What is the minimum number of parity bits required?
- A. 5
- B. 7
- C. 6
- D. 8
Correct answer: B. 7
The smallest r satisfying 2^r ≥ m + r + 1 is needed. For m = 64: 2^6 = 64 < 71, but 2^7 = 128 ≥ 72, so r = 7.
More Computer Networks questions
- A single-error-correcting Hamming code must protect 68 data bits. What is the minimum number of parity bits required?
- A single-error-correcting Hamming code must protect 75 data bits. What is the minimum number of parity bits required?
- A single-error-correcting Hamming code must protect 90 data bits. What is the minimum number of parity bits required?
- A code must be able to correct any 4-bit error in every codeword. What is the minimum Hamming distance the code must have?
- A code must be able to correct any 5-bit error in every codeword. What is the minimum Hamming distance the code must have?
- A code must be able to correct any 6-bit error in every codeword. What is the minimum Hamming distance the code must have?