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 | |
|---|---|---|
| 1Age ← 17 | AA boundary test value exactly on the limit, so Age >= 18 is TRUE | |
| 2Age ← 18 | BNo test data is on the boundary. Values 17, 18 and 19 are missing, so an error like > 18 would not be found. | |
| 3Test all four combinations of two parts: TRUE/TRUE, TRUE/FALSE, FALSE/TRUE and FALSE/FALSE | COne value only makes both parts TRUE. It never tests a FALSE part, so most paths are untested. | |
| 4Test the loop so it runs zero times, because the condition is FALSE the first time | DCount ← 10 then WHILE Count < 5 | |
| 5Test only Age = 25 for IF Age >= 18 AND Age <= 65 | EAge ← 20, HasTicket ← FALSE | |
| 6Test Age = 10, 15 and 30 for IF Age >= 18 | FA boundary test value just below the limit, so Age >= 18 is FALSE |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
test data — Values chosen so each part of a compound condition is TRUE and FALSE in turn, including boundaries like 17, 18 and 19 for Age >= 18, so every path gets tested.IF Age >= 18 THEN
Test Age: 17, 18, 19IF Age >= 18 AND HasLicence = TRUE THEN
Test: Age = 20, HasLicence = FALSEIF Age < 13 OR Age > 65 THEN
Test Age = 40: both parts are FALSEWHILE Lives > 0 AND Time > 0 DO
Test: Lives = 0, so loop runs zero timesIF A AND B THEN
Two parts, each TRUE or FALSE, need 4 tests