31.0k views
3 votes
Parity checking is the method used for error detection. Given the following scenario:

A sender and receiver agree to use odd parity checking. The sender transmits the following byte: 11011010 and adds a 0 bit for the parity bit. The receiver receives this byte 00100101 and the 0 parity bit that was added by the sender.
Will an error be detected? (yes or no) Why?

1 Answer

5 votes

Final answer:

The error will be detected in the given scenario because the number of 1s in the received byte is an odd number, whereas odd parity checking expects an odd number of 1s.

Step-by-step explanation:

Parity checking is a method used for error detection in data transmission. In odd parity checking, the number of 1s in a byte, including the parity bit, should always be odd.In the given scenario, the sender transmits the byte 11011010 with an added 0 parity bit. The receiver receives the byte 00100101 and the 0 parity bit that was added by the sender.To check for errors, the receiver counts the number of 1s in the byte (including the parity bit). In this case, the receiver counts 3 1s, which is an odd number. Since the agreed upon parity is odd, the receiver expects an odd number of 1s. Therefore, an error will be detected.

User Vangorra
by
7.7k points