CS FundamentalsHardProduct-company MCQ pattern
How many parity bits does a single-error-correcting Hamming code need to protect 18 data bits?
- A. 6
- B. 5~1
- C. 5
- 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
- How many parity bits does a single-error-correcting Hamming code need to protect 29 data bits?
- How many parity bits does a single-error-correcting Hamming code need to protect 47 data bits?
- How many parity bits does a single-error-correcting Hamming code need to protect 61 data bits?
- Run Dijkstra's algorithm on this undirected weighted graph (node-node:weight): P-Q:6, P-R:3, Q-R:2, Q-S:5, R-S:4, S-T:2, R-T:9. Starting…
- Run Dijkstra's algorithm on this undirected weighted graph (node-node:weight): N1-N2:2, N1-N3:4, N2-N3:1, N2-N4:7, N3-N5:3, N4-N6:1…
- A CDN uses DNS-based load balancing: the authoritative server returns a different A record depending on the resolver's apparent location…