A two-out-of-five code consists of:
Two 0s and three 1s
Three 0s and two 1s
Four 0s and one 1
One 0 and four 1s
Answer and explanation
A two-out-of-five code consists of three 0s and two 1s, giving ten possible combinations to represent digits 0–9.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
A two-out-of-five code consists of:
Two 0s and three 1s
Three 0s and two 1s
Four 0s and one 1
One 0 and four 1s
A two-out-of-five code consists of three 0s and two 1s, giving ten possible combinations to represent digits 0–9.
What is the rate of hamming codes?
1 - r/(2^r - 1)
1 - r/2^r
1 + r/2^r
r/2^r + 1
Rate of a hamming code = message length / block length = (2^r - r - 1) / (2^r - 1) = 1 - r/(2^r - 1). It is the highest rate for a minimum distance of 3.
What is the message length 'k' of a Hamming(7, 4) code?
2^r - 1
2^r - r + 1
2^r - r - 1
2^(r+1) - r
For a Hamming(7, 4) code, the message length k = 2^r - r - 1, where r is the number of parity bits. Here r = 3, so k = 4.
What is the total block length 'n' of a Hamming code?
2^r
2^r - 1
2^(r-1) - 1
2^r + 1
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.
Who invented Hamming codes?
Richard Hamming
Ross Hamming
Shannon
Huffman
Richard W. Hamming invented hamming codes at Bell Telephone Laboratory to minimize errors in punched card readers. Huffman invented Huffman codes. Shannon invented Shannon-Fano codes.
Hamming codes can be used for both single-bit error and burst error detection and correction.
True
False
Hamming codes are suitable only for single-bit error detection and correction, and two-bit error detection. They are very unlikely to detect burst errors.
Why do we require hamming codes?
Error correction
Encryption only
Decryption
Bit stuffing
Hamming codes are used for error detection and correction, channel encoding and decoding. They are linear-error correcting codes.
What is the minimal Hamming distance between any two correct codewords?
1
2
3
4
Since we use a generalized version of Hamming(7, 4) code, the minimal hamming distance is 3. It cannot correct burst errors.
The most common hamming codes are a generalized version of?
Hamming(7, 4) code
Hamming(8, 4) code
Hamming(6, 3) code
Hamming(5, 7) code
The most common hamming codes generalize to form Hamming(7, 4) code. It encodes four bits of data into seven bits by adding three parity bits.