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 | |
|---|---|---|
| 10 and -1 | AThese values are far outside the range. Boundary data uses the values right next to the limits, -1 and 121, along with 0 and 120. | |
| 2120 and 121 | BTest 120 (accept) and 121 (reject) | |
| 3Boundary data checks that the upper limit is coded correctly, so a test needs a pair of values either side of it | CThe boundary pair at the top of a range 0 to 120: the largest accepted value and the nearest rejected value above it | |
| 4Boundary data checks that the lower limit is coded correctly, such as catching a program that wrongly uses > 0 instead of >= 0 | DThese are only accepted values and no rejected values are included. Boundary data needs the nearest rejected values too, -1 and 121. | |
| 5Boundary test data for 0 to 120: 0, 60, 120 | ETest 0 (accept) and -1 (reject) | |
| 6Boundary test data for 0 to 120: -50, 200 | FThe boundary pair at the bottom of a range 0 to 120: the smallest accepted value and the nearest rejected value below it |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Boundary test data — The largest and smallest acceptable values plus the nearest rejected values either side of each limit, e.g. 0 and -1, 120 and 121 for a range of 0 to 120.// Range 0 to 120: smallest accepted value
TestAge ← 0// Range 0 to 120: nearest rejected below
TestAge ← -1// Range 0 to 120: largest accepted value
TestAge ← 120// Range 0 to 120: nearest rejected above
TestAge ← 121IF TestAge >= 0 AND TestAge <= 120 THEN
OUTPUT "Accepted"
ENDIF