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 | |
|---|---|---|
| 1Range check 0 to 120: test 0 | AExtreme data: 0 and 120 | |
| 2Range check 0 to 120: test 120 | BExtreme test data on the largest acceptable value. The program should accept it. | |
| 3Extreme test data for a range of 0 to 120 uses the two limits themselves | CExtreme test data on the smallest acceptable value. The program should accept it. | |
| 4Extreme test data sits exactly on the limits and the expected outcome is accepted | DTest data 120, expected outcome: accepted | |
| 5Extreme data for 0 to 120: -1 and 121, expected outcome: accepted | EExtreme data is valid, so the expected outcome should be accepted, not rejected. | |
| 6Extreme data for 0 to 120: 0 and 120, expected outcome: rejected | F-1 and 121 are just outside the range, so they are not extreme data and should be rejected. Extreme data is 0 and 120. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Extreme test data — The largest and smallest values a program should accept, such as 0 and 120 for a range of 0 to 120. They sit exactly on the limits and the expected outcome is accepted.Age ← 120
IF Age >= 0 AND Age <= 120 THEN
OUTPUT "Accepted"Age ← 0
IF Age >= 0 AND Age <= 120 THEN
OUTPUT "Accepted"Age ← 120
IF Age >= 0 AND Age <= 120 THEN
OUTPUT "Accepted"Age ← 0
IF Age >= 0 AND Age <= 120 THEN
OUTPUT "Accepted"Age ← 0
IF Age >= 0 AND Age <= 120 THEN
OUTPUT "Accepted"