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 0-100, test data: 50 | ANormal test data: a valid value that should be accepted | |
| 2Range 0-100, test data: -5 | BRange 1-10, test data: 1, 10, 0, 11 | |
| 3Boundary test data uses the values at the edge of the accepted range and the values just outside it | CInput: 150 | Expected: Rejected | |
| 4Test data is chosen before testing, with an expected result written for each value to compare with the actual result | DThese values are inside the range (1 and 100 are boundary values), so they should be accepted, not rejected. | |
| 5Range 1-10, normal test data: 11 | EAbnormal test data: an invalid value that should be rejected | |
| 6Range 1-100, test data 1, 50, 100: all rejected | F11 is outside the range, so it is abnormal data not normal data. Normal data should be a valid value such as 5. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
test data — The input values chosen before testing, such as normal, abnormal, extreme and boundary values, used to run a program so its results can be compared with the expected results.// Valid age is 1 to 100
// Test data 50 is normal data// Valid age is 1 to 100
// Test data -5 is abnormal data// Valid age is 1 to 100
// 0 and 1 are boundary test dataINPUT Age
IF Age >= 1 AND Age <= 100 THEN
OUTPUT "Accepted"DECLARE TestAge : INTEGER
INPUT TestAge
OUTPUT TestAge