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 | |
|---|---|---|
| 1256.10.4.7 | AThe second group is a letter. Groups must be numbers from 0 to 255, so the address is invalid. | |
| 2192.168.1 | BInvalid: it has only three groups instead of exactly four | |
| 3An IPv4 address with more than four groups is invalid | C10.0.0.1.5 | |
| 4Every group in a valid IPv4 address must be a whole number from 0 to 255 | D172.16.254.1 | |
| 510.-5.2.1 | EThe second group is a negative number. Groups cannot be below 0, so the address is invalid. | |
| 610.a.2.1 | FInvalid: the first group is 256, which is above the maximum of 255 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
invalid IPv4 address — An address without exactly four groups, or with a group outside 0 to 255. Examples: 256.1.1.1 (too big), 192.168.1 (too few groups), 10.-5.2.1 (negative) and 10.a.2.1 (letter).256.1.1.1 is invalid: 256 is above 255192.168.1 is invalid: 3 groups, need 410.-5.2.1 is invalid: -5 is below 010.a.2.1 is invalid: a group must be a numberIF group < 0 OR group > 255 THEN
OUTPUT "Invalid"
ENDIF