📝 Cyclic Redundancy Check Linear Block Codes (21 MCQs)
CRC as a Linear Block-Code Error Detector
A cyclic redundancy check is a systematic error-detection code used to protect frames against transmission corruption. CRC belongs to the family of cyclic linear block codes: the sender appends a remainder calculated from the data using a generator polynomial, and the receiver repeats the division to test whether the received codeword is divisible by that generator. This distinction helps the receiver choose an appropriate integrity check for each frame.
Generator Polynomials and Binary Remainders
Binary polynomial arithmetic uses coefficients from the set zero and one. Addition and subtraction are both performed with modulo-two arithmetic, which is equivalent to bitwise XOR without carries or borrows. A generator polynomial of degree r produces an r-bit CRC remainder and an n-bit codeword from the selected data block. Both endpoints must use matching parameters for the check to be interpreted correctly.
Appending a CRC Remainder to the Dataword
The sender appends r zero bits to the dataword, divides that expanded bit string by the generator using modulo-two long division, and replaces the zeros with the r-bit remainder. The receiver divides the complete received codeword by the same generator; a nonzero remainder signals a detected error. This check takes place before the receiver accepts the protected information.
A Worked CRC Division with a Generator
Take dataword 1101 and generator 1011, whose degree is three. Append three zeros to form 1101000, then perform modulo-two division. The remainder is 001, so the transmitted CRC codeword is 1101001. Dividing that codeword by 1011 produces zero remainder. The example makes the coding rule visible through a reproducible bit sequence.
CRC Protection at the Data-Link Layer
CRC is widely used in link-layer frames because shift-register circuits can calculate it quickly and polynomial choice provides useful burst-error detection. Ethernet frames, for example, include a frame check sequence based on CRC-32. The CRC checks frame integrity; it does not authenticate the sender or correct the data. Its suitability depends on traffic type, delay limits, and acceptable redundancy overhead.
What a Zero Remainder Does and Does Not Mean
'CRC division uses ordinary subtraction' is false; it uses modulo-two XOR. 'The remainder has the same length as data' is false; its length equals the generator degree. 'Zero remainder proves a frame is authentic' is false; it only means the CRC test did not detect an error. These distinctions prevent confusion between detection, recovery, and general data integrity.
Working CRC Codeword and Remainder Problems
Be able to identify the generator degree, append the correct number of zeros, carry out XOR division, and attach the remainder. Check that a valid codeword divides evenly, distinguish generator polynomial from remainder, and explain the CRC's detection role without claiming that it repairs corrupted bits. Show intermediate steps and state assumptions behind any calculated result.
CRC and Linear-Code Terms
- CRC - Detects polynomial division errors.
- Generator polynomial - Defines the cyclic code.
- Remainder - Result of polynomial division.
- Codeword - Encoded sequence of bits.
- Modulo-two - Binary arithmetic uses XOR.
- Frame check sequence - Carries CRC within frames.
📝 All Cyclic Redundancy Check Linear Block Codes MCQs
Q1. What is the primary purpose of a CRC in data communication?
📖 Explanation: A Cyclic Redundancy Check is designed to detect accidental changes to raw data during transmission or storage. It adds check bits derived from the data using polynomial division, allowing the receiver to verify integrity. Therefore, its main function is error detection, not correction, compression, or encryption.
Q2. If a CRC generator polynomial has degree 3, how many check bits are appended to the dataword?
Q3. Which operation is used for the division in CRC generation?
📖 Explanation: CRC generation employs modulo‑2 division, which is equivalent to binary polynomial division without carries. This operation treats addition and subtraction as exclusive‑or, simplifying hardware implementation and ensuring the remainder is computed correctly for error detection.
Q4. If a single‑bit error flips a data bit in the transmitted codeword 10111, what will be the syndrome?
Q5. When two bits are flipped in a codeword that uses simple parity, what syndrome value is expected?
Q6. The receiver obtains a codeword whose syndrome is 0. Which statement must be true?
📖 Explanation: A syndrome of zero means the received vector satisfies the parity‑check equations, so it is a valid codeword. While this could result from no errors, it might also arise from an undetected even number of errors that cancel out. Thus, the only guaranteed fact is that the vector passes the check.
Q7. If three bits are corrupted (an odd number), what will the syndrome be for a simple parity‑check code?
Q8. In a CRC scheme with generator , a received 7‑bit vector yields syndrome . What can be inferred about the parity of the error count?
Q9. If a transmitted codeword 10111 experiences an error that changes only the parity bit, what will the receiver’s syndrome indicate?
Q10. Consider two independent errors occurring at positions 2 and 5 of a 7‑bit codeword using simple parity. Why may the syndrome be zero and what does this imply for detection?
Q11. Given that a CRC can detect all single‑bit errors, prove that any generator polynomial with more than one term ensures this property.
Q12. Which of the following codewords would be incorrectly accepted by a simple parity check but rejected by a CRC with generator ?
📖 Explanation: The codeword 1101011 has even overall parity, so a simple parity check would deem it correct. However, when divided by the polynomial , it yields a non‑zero remainder, causing a CRC decoder to reject it as erroneous.
Q13. Analyze why the syndrome being 0 does not guarantee error‑free transmission in a parity‑check code.
📖 Explanation: A zero syndrome merely indicates that the received vector satisfies the parity equations, i.e., it is a valid codeword. However, certain error patterns—specifically even numbers of bit flips—can also satisfy the parity condition, resulting in an undetected error despite the zero syndrome.
Q14. Examine the impact on the syndrome if a transmitted bit is inverted twice (i.e., error and then correction) before reception.
Q15. Assess the trade‑off between the number of check bits and the probability of undetected errors in a CRC scheme.
📖 Explanation: Adding more check bits lengthens the generator polynomial, which expands the set of detectable error patterns. As the number of check bits grows, the chance that a random error pattern yields a zero remainder diminishes dramatically, thereby reducing the probability of an undetected error.
Q16. Derive the condition on the generator polynomial that guarantees detection of all single‑bit errors and all double‑bit errors separated by less than the degree of .
📖 Explanation: For a CRC to catch every single‑bit error, must contain more than one term, ensuring it does not divide . To also catch double‑bit errors whose separation is smaller than the degree , must not divide for any . This dual condition secures detection of both error types.
Q17. Apply CRC to dataword 1011 using generator . What is the resulting 7‑bit codeword?
📖 Explanation: First, append three zeros to the dataword: 1011000. Dividing this by the generator (binary 1011) yields a remainder of 110. Adding this remainder to the original data gives the codeword 1011110.
Q18. Explain why CRC is widely used in LAN protocols.
📖 Explanation: LAN environments often encounter burst errors caused by electrical noise or collisions. CRCs, with appropriately chosen generator polynomials, can reliably detect such burst errors with minimal overhead, making them ideal for ensuring data integrity without the complexity of error‑correction mechanisms.
Q19. Synthesize the steps of CRC encoding and decoding into a flowchart description.
📖 Explanation: The encoding process starts by appending zeros to the dataword, then performing modulo‑2 division by the agreed generator polynomial. The remainder becomes the CRC bits, which are appended to form the codeword. At the receiver, the same division is performed; a zero remainder (syndrome) indicates no detected errors.
Q20. Apply the concept of cyclic shift to show that shifting a codeword yields another valid codeword.
📖 Explanation: A codeword can be represented as a polynomial divisible by the generator . Multiplying this polynomial by (a left cyclic shift) results in another polynomial still divisible by because the field is modulo‑2. Hence, any cyclic rotation of a valid codeword remains a codeword.
Q21. Explain how the choice of generator polynomial affects the length of the CRC and its error detection strength.
📖 Explanation: The degree of the generator polynomial determines the number of check bits appended to the dataword, i.e., the CRC length is . A higher‑degree polynomial provides more bits, expanding the space of detectable error patterns and enhancing the likelihood of catching errors, especially longer burst errors.