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 >= 18 with test value 18 | AA value just below the boundary, which should make the condition false | |
| 2age >= 18 with test value 17 | Btemp > 30 tested with 31 | |
| 3Boundary test values for score > 50: just below, exactly on and just above the edge | CTest with 49, 50 and 51 | |
| 4A value just above the boundary checks the true path starts right after the edge | DThe exact boundary value 50 is missing. Add 50 to check that > does not include the edge. | |
| 5Condition: age >= 18. Tests: 5, 10, 90 | EThese values are all far from the boundary. They should include 17, 18 and 19 to test the edge. | |
| 6Condition: mark > 50. Tests: 49, 51, 52 | FA value exactly on the boundary, which checks that the condition includes the edge value |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Boundary values — Test inputs at the edge of a condition. For age >= 18, test 17 (just below), 18 (exactly on) and 19 (just above) to check the algorithm picks the right path at the edge.if age >= 18 then
age <- 17 (just below the edge)Tests for price < 20: 19, 20, 21Tests for mark >= 50: 49, 50, 51Tests for speed > 60: 59, 60, 61if age >= 18 then
Tests: 17 no, 18 yes, 19 yes