22. Which of the following methods is used to detect double errors?
- (A)
Odd Parity
- (B)
Even Parity
- (C)
Checksum (CRC)
- (D)
Checksum (XOR)
22. Which of the following methods is used to detect double errors?
Odd Parity
Even Parity
Checksum (CRC)
Checksum (XOR)
ANSWER
The CRC (cyclic redundancy check) detects double errors, so the answer is option (c).
Official answer: CSource: ISRO's revised and final answer key of 16 February 2024
A single parity bit (odd or even) only checks whether the number of 1s has the required parity. Flipping two bits changes the count of 1s by an even amount, so the parity is unchanged and the error goes unnoticed.
So options (a) and (b) detect only an odd number of bit errors (single, triple, and so on). They cannot detect double errors.
An XOR checksum is the bitwise XOR of the data words, which is a longitudinal parity check. If two bits flip in the same bit position of two different words, the XOR is unchanged, so such double errors are missed. Option (d) is therefore not guaranteed to detect double errors.
A CRC treats the data as a polynomial and divides it by a generator . An error pattern goes undetected only if divides .
A double-bit error has the form , where is the distance between the two flipped bits. Since shares no factor with when , the error is missed only if divides . For a well-chosen generator, such as one with a primitive factor, the smallest such is large, so divides only for at least that period. Any frame shorter than this period therefore has every double-bit error detected.
Generators used in practice, such as those of CRC-16 and CRC-32, are chosen this way, so for ordinary frame lengths every double-bit error is caught.
Hence the method used to detect double errors is the CRC, option (c).
KEY IDEA
Parity and XOR checks are blind to certain even-numbered error patterns, while a CRC with a suitably chosen generator polynomial detects every double-bit error within a frame shorter than the generator's period.
WATCH OUT FOR
Choosing parity or the XOR checksum because they sound like error detection. A parity bit misses any even number of flips, and an XOR checksum misses two flips in the same bit position of different words.
From the ISRO CS 2023 paper. Every question of this paper · The full paper (PDF, ISRO) · All 5 ISRO Data link & MAC questions, with notes