🎓 BookMCQ
← Back to 10. Error Detection and Correction

📝 Error Detection in Block Coding (37 MCQs)

Invalid Codewords Reveal Transmission Errors

A block code detects errors by restricting transmission to a selected set of valid codewords. When a received n-bit pattern is not a member of that set, the receiver knows that corruption occurred. The minimum Hamming distance between valid codewords determines the maximum number of bit changes that are guaranteed to be detected. This distinction helps the receiver choose an appropriate integrity check for each frame.

Minimum Hamming Distance Controls Detection Strength

Hamming distance counts positions at which two equal-length bit strings differ. The minimum distance d-min is the smallest such value among distinct valid codewords. A code with minimum distance d-min can guarantee detection of up to d-min minus one bit errors, provided the received block is aligned correctly. Both endpoints must use matching parameters for the check to be interpreted correctly.

Receiver Checking of a Block-Code Word

The receiver compares a received block with the code constraints, often through parity checks or a syndrome. A nonzero syndrome indicates that the received pattern violates the code. Depending on the code design, the receiver can report an error, identify its location, or pass the syndrome to a correction procedure. This check takes place before the receiver accepts the protected information.

Detecting Errors with a Parity-Based Code

An even-parity code accepts only codewords with an even number of ones. If transmitted 1011 is protected by parity bit 1, the five-bit codeword 10111 contains four ones. A received sequence 10011 has three ones, so the parity test detects an odd number of changed bits. The example makes the coding rule visible through a reproducible bit sequence.

Why Block-Code Detection Depends on Code Structure

Block coding is useful because the same checks apply to each encoded group and can be implemented in hardware or software. Stronger minimum distance improves detection guarantees, but typically requires more check bits. Link protocols may combine these checks with acknowledgements and retransmission. Its suitability depends on traffic type, delay limits, and acceptable redundancy overhead.

Limits of Error Detection in Block Codes

'A valid codeword proves no error occurred' is not always true; some error patterns can turn one valid word into another. 'Distance three detects three errors' is false; it guarantees detection of two. 'A nonzero syndrome always identifies one bad bit' depends on the code and decoder. These distinctions prevent confusion between detection, recovery, and general data integrity.

Evaluating Minimum Distance and Detectable Errors

Find the Hamming distance between candidate codewords, determine d-min, and apply the detection bound s equals d-min minus one. Test received blocks against parity or syndrome rules, and explain why a detectable error may not be correctable without a stronger code and a suitable decoding method. Show intermediate steps and state assumptions behind any calculated result.

Block-Code Error Detection Terms

  • Valid codeword - Pattern accepted by code.
  • Hamming distance - Counts differing bit positions.
  • Minimum distance - Separates valid codewords clearly.
  • Parity check - Tests an evenness rule.
  • Syndrome - Indicates failed code constraints.
  • Detectable error - Corruption identified by code.
8
Easy
17
Medium
12
Hard

📝 All Error Detection in Block Coding MCQs

Q1. Given dataword 0101 is encoded as codeword 011011, if a single‑bit error flips the second bit, which of the following codewords would the receiver detect as erroneous?

A.11
B.1 ✅
C.10
D.111
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: When the second bit flips, the transmitted pattern becomes 001001. The receiver recomputes the expected parity from the original dataword and finds a mismatch with the received pattern. Because 001001 is not a valid codeword for the given encoding, the error is detected, making option B correct.

Q2. If the parity bit for a 3‑bit codeword is set to even parity, which received vector indicates a single‑bit error?

A.110
B.101
C.111 ✅
D.100
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Even parity requires an even number of 1s. The vector 111111 contains three 1s, which is odd, signalling that one bit has been altered during transmission. The other options either preserve even parity or do not correspond to a single‑bit flip, so option C correctly identifies the error.

Q3. A block code with parameters k=2k=2 and n=3n=3 can reliably detect up to how many simultaneous bit errors?

A.1 ✅
B.2
C.3
D.None
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The detection capability equals the minimum Hamming distance minus one. For a simple (2,3)(2,3) block code the minimum distance is 2, allowing detection of at most one erroneous bit. Therefore the code can reliably detect a single‑bit error but not two, making option A correct.

Q4. Suppose the sender uses the generator matrix G=[101011]G=\begin{bmatrix}1&0&1\\0&1&1\end{bmatrix}. Which codeword corresponds to dataword 1010?

A.101 ✅
B.110
C.11
D.111
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Multiplying the dataword vector [1  0][1\;0] by GG yields [1  0]×G=[1  0  1][1\;0]\times G = [1\;0\;1], i.e., codeword 101101. This follows directly from matrix multiplication over GF(2). Hence option A correctly represents the encoded codeword.

Q5. If a transmitted codeword 011011 suffers a burst error affecting the last two bits, which of the following received words could still pass the parity check?

A.1
B.10
C.111
D.100 ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A burst that flips the last two bits changes 011011 to 000000. The even‑parity check would then see zero 1s (even) and mistakenly accept the word as error‑free. Among the options, only 100100 retains an even number of 1s, so it could erroneously pass the check, making option D correct.

Q6. When using a CRC polynomial x3+x+1x^3+x+1 for a 3‑bit message, which remainder indicates that the received frame contains an error?

A.0
B.1 ✅
C.10
D.11
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A correct CRC leaves a remainder of zero. Any non‑zero remainder signals corruption. The polynomial division of the received frame by x3+x+1x^3+x+1 yields a remainder; if that remainder is 001001, it confirms that at least one error occurred. Therefore option B correctly identifies an erroneous remainder.

Q7. A system employs a two‑dimensional parity scheme on a 2×32\times3 block. If the row parity bits are all correct but the column parity bits show a discrepancy in the second column, what can be inferred?

A.A single‑bit error in column two ✅
B.Two‑bit error in same row
C.Error in parity bits themselves
D.No error
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Two‑dimensional parity isolates errors at the intersection of the erroneous row and column. Since all row parities are satisfied, the faulty bit must lie in the column that fails its parity check. Consequently, the error is a single‑bit flip located somewhere in the second column, making option A correct.

Q8. Consider a Hamming (7,4) code with parity‑check matrix HH. If the syndrome computed is [0  1  1][0\;1\;1], which statement best describes the situation?

A.Error in bit 3
B.Error in bit 5 ✅
C.No error
D.Multiple errors
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The syndrome vector points to the column of HH that matches it. In a standard Hamming (7,4) layout, the column [0  1  1][0\;1\;1] corresponds to bit position 5. Thus the receiver concludes that bit 5 is corrupted and corrects it, so option B is accurate.

Q9. A communication link uses a checksum that sums all bytes modulo 256. If the transmitted checksum is 0x5A and the receiver computes 0x5A, which conclusion is valid?

A.No error occurred ✅
B.Exactly one bit error occurred
C.An even number of bit errors occurred
D.Error detection failed
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The checksum method declares the packet correct when the computed sum matches the transmitted checksum. A match of 0x5A indicates that the receiver’s calculation agrees with the sender’s, suggesting that no detectable error is present. Hence option A correctly reflects the outcome.

Q10. When a code with minimum Hamming distance dmin⁡=3d_{\min}=3 is used, what is the maximum number of detectable errors?

A.1
B.2 ✅
C.3
D.4
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: A code can detect up to dmin⁡−1d_{\min}-1 errors. With dmin⁡=3d_{\min}=3, the code guarantees detection of any combination of up to two erroneous bits. It cannot assure detection of three or more errors. Therefore option B, representing two detectable errors, is correct.

Q11. In a system employing a (3,2) linear block code, the syndrome for a received word is non‑zero. Which action should the decoder take?

A.Correct the error using the syndrome ✅
B.Discard the word as uncorrectable
C.Request retransmission
D.Do nothing
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A non‑zero syndrome indicates that the received word does not belong to the code space. For a (3,2) linear block code, the syndrome uniquely identifies the erroneous bit, allowing the decoder to flip that bit and recover the original codeword. Hence the appropriate response is to correct the error, making option A correct.

Q12. If the generator matrix GG for a (3,2) code is [101011]\begin{bmatrix}1&0&1\\0&1&1\end{bmatrix}, which of the following statements is true about its systematic form?

A.It is already systematic
B.It can be converted to systematic by column swaps ✅
C.It cannot be systematic
D.Systematic form is irrelevant
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A systematic generator matrix has the identity matrix as its leftmost sub‑matrix. The given GG lacks this form, but by swapping the third column with the second, we obtain [110011]\begin{bmatrix}1&1&0\\0&1&1\end{bmatrix}, which places an identity block on the left. Thus the matrix can be made systematic, making option B correct.

Q13. When comparing even‑parity and odd‑parity schemes for a 4‑bit block, which statement best captures their relationship?

A.They detect the same error patterns ✅
B.Odd parity detects more errors
C.Even parity is more efficient
D.Both require the same number of extra bits
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Both schemes add a single parity bit and differ only in the rule for counting 1s. Consequently, each can detect any single‑bit error, and the set of detectable error patterns is identical; the distinction lies solely in the parity rule. Therefore option A accurately describes their relationship.

Q14. A dataword 1010 is encoded using the generator matrix GG given earlier. If the transmitted codeword suffers a single‑bit error in the third position, which of the following syndromes will the receiver compute?

A.[0 0]
B.[1 0]
C.[0 1] ✅
D.[1 1]
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The parity‑check matrix HH for this code is [111101]\begin{bmatrix}1&1&1\\1&0&1\end{bmatrix}. Multiplying the error vector [0  0  1][0\;0\;1] by HTH^T yields the syndrome [0  1][0\;1]. Hence the receiver obtains syndrome [0  1][0\;1], corresponding to option C.

Q15. If a burst error of length 3 occurs in a 7‑bit codeword, which type of error‑detecting code is most likely to catch it?

A.Parity code
B.Cyclic Redundancy Check ✅
C.Hamming code
D.Repetition code
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Cyclic Redundancy Checks are designed to detect burst errors up to a length equal to the degree of the generator polynomial. A CRC can reliably flag a three‑bit burst, whereas simple parity or Hamming codes may miss such patterns. Therefore option B is the most appropriate choice.

Q16. Consider two codes: Code X with dmin⁡=2d_{\min}=2 and Code Y with dmin⁡=4d_{\min}=4. Which statement correctly compares their error‑detection capabilities?

A.X detects more errors than Y
B.Y detects more errors than X ✅
C.Both detect the same number of errors
D.Neither can detect errors
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The number of detectable errors equals dmin⁡−1d_{\min}-1. Code X can detect at most one error, while Code Y can detect up to three. Hence Code Y possesses superior detection capability, making option B correct.

Q17. A sender uses a (3,2) linear block code and transmits codeword 011011. The receiver obtains 001001. Which of the following is true about the error?

A.Two bits are wrong
B.One bit is wrong ✅
C.No error occurred
D.More than two bits are wrong
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The Hamming distance between 011011 and 001001 is one, indicating a single‑bit discrepancy. Since the code can detect single‑bit errors, the receiver identifies exactly one erroneous bit, making option B correct.

Q18. In a two‑dimensional parity scheme, if both row and column parity checks fail at the same position, what can be deduced?

A.A single‑bit error at that position ✅
B.Two independent errors
C.Error in the parity bits themselves
D.No error
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: When the intersecting row and column both exhibit parity mismatches, the error must be located at their crossing cell, implying a solitary bit flip at that exact location. Hence option A accurately captures the deduction.

Q19. Which of the following best describes the relationship between minimum Hamming distance and error‑correction capability?

A.A code with distance dd can correct up to ⌊(d−1)/2⌋\lfloor(d-1)/2\rfloor errors ✅
B.Distance dd equals the number of correctable errors
C.Higher distance reduces correction ability
D.Distance does not affect correction
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The fundamental bound states that a code with minimum distance dmin⁡d_{\min} can reliably correct up to ⌊(dmin⁡−1)/2⌋\lfloor(d_{\min}-1)/2\rfloor errors. This relationship directly links distance to correction strength, making option A the precise description.

Q20. If a CRC generator polynomial is x4+x+1x^4+x+1, what is the length of the checksum appended to each message?

A.2 bits
B.3 bits
C.4 bits ✅
D.5 bits
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: The degree of the generator polynomial determines the checksum length. Here the polynomial's highest exponent is 4, so a 4‑bit remainder (checksum) is produced and appended. Therefore option C correctly states the checksum length.

Q21. A dataword 0101 is encoded as 011011. Which property ensures that any single‑bit error changes the parity of the codeword?

A.Even parity ✅
B.Odd parity
C.Systematic encoding
D.Linear independence
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Using even parity guarantees that the total number of 1s in the codeword is even. Flipping any single bit toggles the parity from even to odd, thereby revealing the error. Hence option A correctly identifies the property.

Q22. When the Hamming distance between two valid codewords is 3, what does this imply about the code's ability to detect errors?

A.It can detect up to two errors
B.It can correct a single error
C.Both detection and correction of one error
D.All of the above ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A minimum distance of 3 means the code can detect any combination of up to two erroneous bits (since dmin⁡−1=2d_{\min}-1=2). It also enables correction of a single error (⌊(dmin⁡−1)/2⌋=1\lfloor(d_{\min}-1)/2\rfloor=1). Thus all listed capabilities hold, making option D correct.

Q23. In a (3,2) linear code, which of the following statements about the parity‑check matrix HH is true?

A.Rows of HH are orthogonal to rows of GG ✅
B.HH is the inverse of GG
C.HH equals GG
D.HH is unrelated to GG
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: By definition, the parity‑check matrix HH satisfies G HT=0G\,H^{T}=0; that is, each row of HH is orthogonal to each row of the generator matrix GG. This orthogonality condition ensures that valid codewords produce a zero syndrome. Hence option A is accurate.

Q24. If a transmitted codeword 110110 is received as 100100, which error pattern best describes the change?

A.Bit 2 flipped
B.Bit 3 flipped ✅
C.Bits 1 and 2 flipped
D.No error
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Comparing the transmitted and received vectors shows that only the middle bit differs (1→0). Therefore the error pattern corresponds to a flip in bit 2, making option B correct.

Q25. Which of the following best explains why a CRC is more effective than a simple parity check for detecting burst errors?

A.CRC uses polynomial division that captures error patterns ✅
B.Parity checks use more bits
C.CRC requires less hardware
D.Parity cannot detect any errors
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A CRC computes a remainder of the message divided by a generator polynomial, which inherently reflects the structure of burst errors up to a certain length. This mathematical property enables detection of complex error patterns that a single parity bit cannot capture. Hence option A correctly explains the advantage.

Q26. A communication system uses a (7,4) Hamming code. If the syndrome is [1  0  1][1\;0\;1], which bit is identified as erroneous?

A.Bit 5
B.Bit 3 ✅
C.Bit 7
D.Bit 1
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The syndrome vector directly maps to the binary representation of the erroneous bit’s position. The binary number 1012101_2 equals 5, indicating bit 5 is in error. However, because Hamming code positions are numbered starting at 1, the syndrome [1  0  1][1\;0\;1] points to bit 5. Thus option C (bit 7) is incorrect; the correct answer is bit 5, which corresponds to option A. (Correct answer: A)

Q27. When comparing two error‑detecting codes, one with minimum distance 2 and another with distance 3, which code provides higher reliability for single‑bit error detection?

A.Distance‑2 code
B.Distance‑3 code ✅
C.Both are equal
D.Reliability depends on other factors
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A minimum distance of 3 allows detection of any single‑bit error and also any double‑bit error, whereas a distance‑2 code can only guarantee detection of a single error. Hence the code with distance 3 offers superior reliability for detecting single‑bit errors, making option B correct.

Q28. If a block code can correct any single‑bit error, what is the minimum Hamming distance it must have?

A.2
B.3 ✅
C.4
D.5
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Error‑correction capability requires a minimum distance of at least 2t+12t+1 where tt is the number of correctable errors. For t=1t=1, the code must have dmin⁡≥3d_{\min}\ge 3. However, to guarantee correction of any single‑bit error, the distance must be at least 3, which corresponds to option B. (Correct answer: B)

Q29. A sender uses a (3,2) linear code with generator matrix GG. If the received word is 010010 and the syndrome is non‑zero, what can be concluded?

A.The word is invalid and contains an error ✅
B.The word is a valid codeword
C.No errors can be detected
D.The code cannot correct errors
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A non‑zero syndrome indicates that the received vector does not belong to the code space, meaning at least one bit is corrupted. Since the code can detect such discrepancies, the receiver knows the word is invalid and must take corrective action. Hence option A is correct.

Q30. In a system employing a 2‑bit checksum computed as the sum of data bits modulo 4, which of the following received checksums would indicate an error if the transmitted checksum was 01?

A.1
B.10 ✅
C.11
D.0
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The checksum must match the transmitted value for error‑free reception. A received checksum of 1010 differs from the transmitted 0101, signaling a mismatch and therefore an error. The other options either match or are invalid representations, making option B the correct indicator of an error.

Q31. Which statement best captures the trade‑off between error detection and redundancy in block codes?

A.Higher redundancy always improves detection
B.Increasing redundancy may reduce throughput ✅
C.No relationship exists
D.Redundancy only affects correction
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Adding redundancy (extra bits) enhances the ability to detect errors but also consumes bandwidth, potentially lowering the effective data rate. Therefore a balance must be struck between detection capability and throughput, making option B the most accurate description.

Q32. If a code has a generator polynomial that is not primitive, what impact does this have on its error‑detecting performance?

A.It cannot detect any errors
B.It may miss certain burst errors ✅
C.It improves detection of all errors
D.Performance is unchanged
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Non‑primitive polynomials may have factors that reduce the code’s ability to detect specific error patterns, especially certain burst lengths. Consequently, some error configurations could go undetected, whereas a primitive polynomial offers maximal detection coverage. Hence option B correctly states the impact.

Q33. A dataword 1010 is encoded as 101101. If the receiver gets 111111, which error pattern most likely occurred?

A.Bit 2 flipped
B.Bit 3 flipped
C.Bits 1 and 3 flipped ✅
D.No error
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Comparing 101101 and 111111 shows differences in the first and third positions. Flipping both bit 1 and bit 3 transforms the transmitted codeword into the received one, indicating a two‑bit error pattern. Therefore option C correctly describes the most probable error.

Q34. When using a parity‑check matrix HH for a (3,2) code, which condition must hold for all valid codewords cc?

A.HcT=0Hc^{T}=0 ✅
B.cHT=1cH^{T}=1
C.cH=0cH=0
D.Hc=1Hc=1
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The defining property of a parity‑check matrix is that any valid codeword, when multiplied by the transpose of HH, yields the zero vector, i.e., HcT=0Hc^{T}=0. This condition ensures that the syndrome is zero for error‑free transmissions. Hence option A is correct.

Q35. If a burst error of length 4 occurs in a 7‑bit codeword using a CRC with generator polynomial of degree 3, what is the likelihood that the error goes undetected?

A.Zero probability
B.High probability
C.Low probability ✅
D.Cannot be determined
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: A CRC of degree 3 can reliably detect burst errors up to length 3. For a burst of length 4, the detection is not guaranteed, but the probability of an undetected error remains low because the remainder is unlikely to match the original checksum by chance. Thus option C correctly reflects the low but non‑zero risk.

Q36. Which of the following best explains why a code with minimum distance 5 can correct up to two errors?

A.Because 2×2+1=52\times2+1=5 ✅
B.Because 5‑bit checksums are used
C.Because it uses a 5‑bit generator
D.Because distance does not affect correction
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The error‑correction bound states that a code can correct up to ⌊(dmin⁡−1)/2⌋\lfloor(d_{\min}-1)/2\rfloor errors. With dmin⁡=5d_{\min}=5, the calculation yields ⌊(5−1)/2⌋=2\lfloor(5-1)/2\rfloor = 2. Thus the code can reliably correct any two erroneous bits, making option A the correct explanation.

Q37. In a two‑dimensional parity scheme, if only one row parity fails while all column parities are correct, what is the most plausible explanation?

A.A single‑bit error in that row
B.Two‑bit error in the same row
C.Error in the row parity bit itself ✅
D.No error
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: When only the row parity check indicates a mismatch, the inconsistency is most likely due to an error in the parity bit that was added for that row, rather than in the data bits themselves. Hence option C correctly identifies the cause.

🔗 Related Topics (MCQs)