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 | |
|---|---|---|
| 1dry run | AThe student did not record each variable's value line by line, so mistakes cannot be found and method marks are lost. | |
| 2Total | Count | OUTPUT | BOUTPUT Total | |
| 3Tracing with given input values: the data 4, 7 and 9 is entered and the total is updated each time round the loop | CTotal ← Total + Number | |
| 4Stating the final OUTPUT: it is written only once the trace reaches the end of the loop, using the last values in the table | DThe column headings of a trace table: one column for each variable and one for each OUTPUT | |
| 5Trace table row for Count: 0, 1, 2, 3 when the loop only ran twice | EThe trace has an extra row, so the loop was traced one more time than it really runs. Check the loop condition against the data. | |
| 6Dry run that only writes the final OUTPUT and skips the trace table rows | FFollowing an algorithm line by line with given data, recording each variable's value, to find its output or purpose |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
dry run — Following an algorithm line by line with given data, recording each variable's value in a trace table, to find its output or purpose.X ← 2
X ← X * 3
OUTPUT X // trace shows 6FOR N ← 1 TO 3
OUTPUT N
NEXT NIF Mark < 50 THEN
OUTPUT "Fail"
ENDIFTotal ← 10
Total ← Total - 4
OUTPUT Total // trace shows 6Total ← 3
Total ← Total + 2
OUTPUT Total