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 | |
|---|---|---|
| 11011001 -> parity bit 1 | AOdd parity: the data already has three 1s (odd), so the parity bit stays 0 | |
| 21101100 -> parity bit 0 | BOdd parity: the data has four 1s (even), so the parity bit is 1 to make five 1s in total | |
| 3With odd parity, data with an even number of 1s needs the parity bit set to 1 | C0110 0000 -> 1 0110 0000 | |
| 4Switching from even parity to odd parity flips the parity bit for the same data | DThe data 1110 0000 already has three 1s, which is odd, so the parity bit should be 0. Adding 1 makes the total four, which is even. | |
| 5Odd parity: 1110 0000 -> parity bit 1 (total four 1s) | EThe data 1001 0000 has two 1s, which is even, so the parity bit should be 1. A bit of 0 leaves an even total, which breaks the odd parity rule. | |
| 6Odd parity: 1001 0000 -> parity bit 0 (total two 1s) | FData 0100 0001: even parity bit 0, odd parity bit 1 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
odd parity — A rule where the parity bit is set so the total number of 1s in the byte, including the parity bit, is odd. Even number of 1s in the data gives bit 1; odd number gives bit 0.IF ones MOD 2 = 0 THEN parity ← 1IF ones MOD 2 = 1 THEN
parity ← 0
ENDIFIF ones MOD 2 = 0 THEN parity ← 1Data: 11000000 (two 1s)
Even parity bit: 0
Odd parity bit: 1Data: 1110000 has three 1s (odd)
Odd parity bit: 0
Sent byte: 01110000