What is the total block length 'n' of a Hamming code?
2^r
2^r - 1
2^(r-1) - 1
2^r + 1
Correct Answer: B — 2^r - 1
Explanation:
For a Hamming(7, 4) code, the block length n = 2^r - 1, where r is the number of parity bits. Here r = 3, so n = 7.