🎓 BookMCQ
← Back to 10. Error Detection and Correction

📝 Redundancy through Coding (8 MCQs)

Encoding Data with Structured Extra Information

Coding introduces a controlled relationship between original data bits and additional transmitted bits. The encoder transforms each dataword into a codeword selected from a larger set of possible bit patterns. At the receiver, the decoder tests whether the pattern is valid or uses its structure to estimate the original data after transmission errors. This distinction helps the receiver choose an appropriate integrity check for each frame.

Codewords and the Relationship Between Data and Checks

A code is described by its mapping between datawords and codewords. In a block code, k input bits become n output bits, with n greater than k when redundancy is added. The code rate k/n expresses the fraction of each codeword devoted to the original information. Both endpoints must use matching parameters for the check to be interpreted correctly.

Encoding at the Sender and Decoding at the Receiver

The sender groups information into fixed-size blocks, calculates check symbols, and forms codewords. After the link transports the bits, the receiver divides them into corresponding blocks and applies the decoding rule. A failed check identifies corruption; a correcting decoder may select the most plausible valid codeword. This check takes place before the receiver accepts the protected information.

How a Simple Code Adds a Verification Bit

A repetition code can map data bit 0 to 000 and bit 1 to 111. If 111 is received as 101, majority decision recovers 1 because two of the three positions still agree. This simple code illustrates how deliberate redundancy creates tolerance to limited bit errors. The example makes the coding rule visible through a reproducible bit sequence.

Coding as the Basis of Link Reliability

Coding underlies parity, block codes, cyclic codes, checksums, and FEC. The physical layer carries the encoded bit sequence, while the data-link layer may use the coding result to accept, discard, or recover a frame. Coding improves reliability but consumes bandwidth and may add processing delay. Its suitability depends on traffic type, delay limits, and acceptable redundancy overhead.

Limits of Coding and Redundancy

'Coding always compresses data' is false; error-control coding usually adds bits. 'Every bit pattern is a valid codeword' is false because coding reserves only selected patterns. 'Redundancy has no cost' is false; extra bits reduce the proportion of capacity available for payload. These distinctions prevent confusion between detection, recovery, and general data integrity.

Interpreting Coding Parameters in Examinations

Identify the input length k, output length n, and code rate k/n. Trace a simple encoder and decoder, count redundant bits, and explain what the code can detect or correct. Be careful not to confuse data compression with error-control coding or a codeword with an unencoded dataword. Show intermediate steps and state assumptions behind any calculated result.

Coding and Redundancy Terms

  • Encoder - Creates encoded data patterns.
  • Decoder - Recovers the original data.
  • Codeword - Encoded sequence of bits.
  • Dataword - Original bits before encoding.
  • Code rate - Information fraction per codeword.
  • Overhead - Extra bits beyond payload.
1
Easy
4
Medium
3
Hard

📝 All Redundancy through Coding MCQs

Q1. What does the redundancy ratio represent in a coding scheme?

A.Number of redundant bits per data bit ✅
B.Ratio of data bits to total bits
C.Number of error bits corrected
D.Transmission speed
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The redundancy ratio quantifies how many extra bits are inserted for each original data bit. It is expressed as the count of redundant bits divided by the count of data bits, indicating the overhead added to enable error detection or correction. A higher ratio usually improves reliability but reduces transmission efficiency.

Q2. If a coding scheme doubles the number of redundant bits while keeping the data bits constant, which effect is most directly expected?

A.Error detection capability halves
B.Bandwidth efficiency doubles
C.Probability of undetected error decreases ✅
D.Transmission delay reduces
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Adding more redundant bits creates additional constraints that the receiver can check, so the chance that an error slips past all checks drops. The trade‑off is that more bits occupy the channel, reducing raw throughput, but the primary immediate impact is a lower probability of an undetected error.

Q3. Compare a simple parity check code to a (7,4) Hamming code. Which statement correctly contrasts their redundancy and error detection capabilities?

A.Parity uses 1 redundant bit for 4 data bits and detects only single‑bit errors; Hamming uses 3 redundant bits for 4 data bits and can correct single‑bit errors ✅
B.Parity uses 3 redundant bits for 4 data bits and can correct double‑bit errors; Hamming uses 1 redundant bit and only detects errors
C.Both use same number of redundant bits but Hamming provides no correction
D.Parity provides error correction while Hamming only detects errors
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A parity bit adds a single check bit, allowing detection of any odd‑number of bit flips but no correction. A (7,4) Hamming code adds three check bits, giving a minimum Hamming distance of three, which enables both detection of single‑bit errors and correction of one erroneous bit.

Q4. Design a coding scheme for 4 data bits d1d2d3d4d_1d_2d_3d_4 with 2 redundant bits r1,r2r_1, r_2 that can detect any single‑bit error. Which set of equations correctly defines the redundant bits?

A.r1=d1⊕d2r_1 = d_1 \oplus d_2, r2=d3⊕d4r_2 = d_3 \oplus d_4
B.r1=d1⊕d2⊕d3r_1 = d_1 \oplus d_2 \oplus d_3, r2=d2⊕d3⊕d4r_2 = d_2 \oplus d_3 \oplus d_4 ✅
C.r1=d1⊕d3r_1 = d_1 \oplus d_3, r2=d2⊕d4r_2 = d_2 \oplus d_4
D.r1=d1⊕d2⊕d3⊕d4r_1 = d_1 \oplus d_2 \oplus d_3 \oplus d_4, r2=d1⊕d2r_2 = d_1 \oplus d_2
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Using two parity equations that each involve three of the four data bits ensures that every single‑bit error flips at least one of the check equations, making the error detectable. The chosen equations in option B satisfy this condition while providing independent relationships for the receiver to verify.

Q5. A coding scheme transmits 8 data bits with 4 redundant bits. Assuming each bit has an independent error probability of p=0.001p = 0.001, what is the approximate probability that a double‑bit error goes undetected if the code can detect all single‑bit errors but fails to detect exactly two‑bit errors?

A.Approximately 1.2×10−41.2 \times 10^{-4}
B.Approximately 6×10−56 \times 10^{-5} ✅
C.Approximately 1.5×10−61.5 \times 10^{-6}
D.Approximately 2×10−32 \times 10^{-3}
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The probability of exactly two errors among 12 bits is (122)p2(1−p)10\binom{12}{2}p^{2}(1-p)^{10}. With p=0.001p = 0.001, this yields ≈66×10−6×0.99≈6.5×10−5\approx 66 \times 10^{-6} \times 0.99 \approx 6.5 \times 10^{-5}. Since the code cannot detect double‑bit errors, this value represents the undetected error probability, matching option B.

Q6. Given a noisy channel with bit error rate p=0.02p = 0.02, compare three coding schemes: (i) simple parity (1 redundant bit per 7 data bits), (ii) (7,4) Hamming code, and (iii) a Reed–Solomon code that adds 4 redundant symbols for 8 data symbols. Which scheme offers the highest error detection capability for single‑bit errors, regardless of bandwidth?

A.Simple parity provides highest efficiency but lowest detection
B.Hamming code balances efficiency and can correct single‑bit errors
C.Reed–Solomon offers best detection but lowest efficiency ✅
D.All three have identical trade‑offs
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Reed–Solomon codes are designed with a large minimum Hamming distance, allowing detection of multiple error patterns, including all single‑bit errors. Although they consume more bandwidth than parity or Hamming codes, their superior distance guarantees the strongest detection capability, making option C the correct choice.

Q7. If a system combines an even‑parity check with a checksum that sums all data bytes modulo 256, which of the following statements is true about its error detection capability?

A.It can detect any odd number of bit errors and also most multi‑byte errors ✅
B.It can only detect errors affecting the checksum byte
C.It cannot detect any two‑bit errors
D.It provides error correction for single‑bit errors
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The even‑parity check catches any odd‑count bit flips, while the modulo‑256 checksum catches many patterns involving multiple bits or whole‑byte alterations. Together they create complementary coverage, making the combined scheme able to detect virtually all odd‑bit errors and a large portion of even‑bit or multi‑byte errors.

Q8. For an 8‑bit data word, what is the minimum number of redundant bits required to guarantee detection of any double‑bit error? Use the Hamming bound 2r≥n+12^{r} \ge n + 1 where n=data_bits+rn = data\_bits + r.

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

📖 Explanation: We need 2r≥(8+r)+1=r+92^{r} \ge (8 + r) + 1 = r + 9. Testing r=3r = 3 gives 23=8<122^{3}=8 <12; r=4r = 4 gives 24=16≥132^{4}=16 \ge 13. Thus four redundant bits satisfy the bound, ensuring a minimum Hamming distance of three, which is sufficient to detect any two‑bit error. Option B is correct.

🔗 Related Topics (MCQs)