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 | |
|---|---|---|
| 1Test | Purpose | Input | Expected | Actual | Pass/Fail | ATwo tests are squeezed into one row. A test table needs one row per test, so this should be split into two rows (test 1 with input 50 and test 2 with input 100). | |
| 22 | Boundary | 100 | Accepted | Accepted | Pass | BInput: 18 | Expected: Accepted | |
| 3The input and expected result columns hold what you plan to test, decided before running the program | COne complete row of a test table, which records a single test case from number to verdict. | |
| 4The actual result and pass/fail columns record what really happened when the test was run | DThe actual result column is blank but a Pass is recorded. You must run the test and write the actual result before deciding pass or fail. | |
| 51 | Normal and boundary | 50, 100 | Accepted | Accepted | Pass | EThe column headings of a test table: one column for each part of a test case. | |
| 63 | Abnormal | -5 | Rejected | | Pass | FActual: Rejected | Result: Fail |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
test table — A table with one row per test case. Its columns are test number, purpose, input, expected result, actual result and pass or fail.row = {"test": 1, "purpose": "Normal mark"}row = {"input": 85, "expected": "Pass"}row = {"expected": 5, "actual": 5}if actual == expected:
print("PASS")tests = [(1, 50), (2, 0), (3, 100)]
rows = len(tests)
print(rows)