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 = 30 (range check 0 to 120) | AWhat should happen when normal test data is entered into the program | |
| 2Expected outcome: accepted | BNormal data is valid and should be accepted, not rejected. Also 120 is at the limit, so it is boundary data, not well inside the limits. | |
| 3Normal test data is a typical valid value that is well inside the limits and should be accepted | CInput: 45, Expected output: Accepted | |
| 4A test case using normal data pairs the input with the expected outcome of accepted | DIF Age >= 0 AND Age <= 120 THEN OUTPUT "Accepted" ENDIF // test with 30 | |
| 5Normal test data for an age range of 0 to 120: 150 | ENormal test data: a typical valid value well inside the limits, so the program should accept it | |
| 6Normal test data: 120, Expected outcome: Rejected | F150 is outside the allowed range, so it is abnormal test data, not normal. Normal data must be valid, such as 30. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Normal test data — A typical, valid value well inside the allowed limits, which the program should accept. Example: an age of 30 for a range check of 0 to 120 is accepted.IF Age >= 0 AND Age <= 120 THENAge ← 30 // normal test dataINPUT Age
IF Age >= 0 AND Age <= 120 THEN
OUTPUT "Accepted"DECLARE Age : INTEGERIF Age >= 0 AND Age <= 120 THEN