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 | |
|---|---|---|
| 1Tests run: 12, Passed: 10, Failed: 2 | ACounts the passes and failures so the reader sees the overall result at a glance | |
| 2Fixed: age check changed from > to >=. Retested: all 12 passed. | BLimitation: Only whole numbers were tested, so decimal input is untested. | |
| 3A conclusion must be backed by evidence from the results, not just an opinion | CConclusion: The program is validated because all 12 tests passed after the fix. | |
| 4A report should state the limitations that remain after testing | DThe conclusion gives no evidence. It does not say how many tests passed or failed. | |
| 5Conclusion: The program works great and is fully validated. | ERecords what was fixed and shows that the tests were run again after the change | |
| 6Tests run: 12, Passed: 8, Failed: 4. Conclusion: The program is validated. | FThe conclusion contradicts the results, because 4 tests failed and nothing was fixed or retested. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
test report — A summary of how many tests passed and failed, what was fixed and retested, and a conclusion on whether the program is validated, backed by the results and any limitations.passed = 8
failed = 2
total = passed + failedtotal = 10
passed = 9
rate = passed / total * 100if failed == 0:
print("Conclusion: program validated")for test in retests:
run_test(test)failed = ["T4", "T7"]
print(len(failed), "tests still fail")