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 | |
|---|---|---|
| 1Requirement R1: Age must be 13 to 18 Test 1: age = 15, expected: accepted | AR2 | score = 50 | normal | accepted R2 | score = 100 | boundary | accepted R2 | score = -5 | invalid | rejected | |
| 2R1 | 13 | boundary | accepted R1 | 12 | boundary | rejected | BThe test case has no expected result, so there is nothing to compare the actual result with. Every test in a plan needs an expected result. | |
| 3A good test plan covers each requirement with a normal, a boundary and an invalid test case | CA normal test case linked to requirement R1, with its expected result written in the plan before testing | |
| 4A test plan is written before testing, so the expected result is decided before the code is run | DThe test is not linked to a requirement, so nobody can tell which requirement it checks or whether all requirements are covered. | |
| 5R3 | name = 'Sam' | normal | (no expected result) | ETwo boundary test cases for requirement R1, just inside and just outside the limit, each with an expected result | |
| 6Test 4 | age = 20 | normal | accepted | FExpected: 'Pass' (written in the plan) Actual: ______ (filled in after running) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
test plan — A list, made before testing, of normal, boundary and invalid test cases for each requirement, with the expected result for every test.# R1: age must be 13 to 18
test = ("R1", "normal", 15, "accept")# R1: age must be 13 to 18
test = ("R1", "boundary", 18, "accept")# R1: age must be 13 to 18
test = ("R1", "invalid", "abc", "reject")# Plan results before testing starts
header = ("req", "type", "input", "expected")# R3: password needs 8 or more characters
test = ("R3", "boundary", "a" * 8, "accept")