Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 110110010 (even parity) | AFour is an even count. Odd parity needs an odd count of 1s, so this byte fails the check and an error is detected. | |
| 211010100 (odd parity) | B11100000 (even parity) | |
| 3A byte arrives under even parity with an odd number of 1s, so the receiver reports an error | CFour 1s is an even count, which breaks the odd rule, so the check fails and an error is detected. | |
| 4The parity bit itself can be the bit that changed, and the check still fails | D01100110 -> 11100110 (even) | |
| 5Odd parity: 10110100 has four 1s, so it passes | EThe receiver must count the 1s in the whole byte, parity bit included. Ignoring the parity bit gives the wrong result. | |
| 6Count the 1s in the 7 data bits only and ignore the parity bit | FFour 1s is an even count, so the even parity check passes and no error is detected. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
parity check — The receiver counts the 1s in the whole received byte, parity bit included. If the count breaks the agreed even or odd rule, an error has occurred and is detected.received ← 10110010
ones ← 4
IF ones MOD 2 = 0 THEN OUTPUT "No error"received ← 11010110
ones ← 5
IF ones MOD 2 = 1 THEN OUTPUT "No error"IF ones MOD 2 = 0 THEN OUTPUT "No error"
ELSE OUTPUT "Error detected"received ← 10110011
ones ← 5 // parity bit included
IF ones MOD 2 <> 0 THEN OUTPUT "Error"received ← 11010100
ones ← 4
IF ones MOD 2 = 0 THEN OUTPUT "Error"