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 | |
|---|---|---|
| 1Start oval | AA loop arrow must be followed back to the earlier box. Keep tracing, adding rows, until the diamond sends you to Stop | |
| 2Diamond: age >= 16? | Bcount <- count + 1 (arrow returns to: count < 3?) | |
| 3A loop arrow goes back to an earlier box, so you keep tracing and add a new trace table row each time round | CA decision. Check the current value of age, then follow the Yes or No arrow and record the answer | |
| 4The trace finishes when you follow the arrows to the Stop oval, and the last row holds the final values | DStop oval (last row: total = 12) | |
| 5Test value mark = 45. Diamond: mark >= 50? Trace table records Yes and follows the Yes arrow | EThe place where you begin tracing, before writing the test values in the trace table | |
| 6Loop arrow reached: student jumps straight to Stop and writes no new trace table row | FThe diamond was answered wrongly. 45 is not >= 50, so the answer is No and you must follow the No arrow |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
trace a flowchart — Follow a flowchart from Start to Stop using test values, noting each diamond's Yes or No answer in a trace table and following loop arrows back until Stop.if mark >= 50:
print("Pass")
else:if mark >= 50:
print("Pass")
else:count = 0
while count < 3:
count = count + 1count = 0
while count < 3:
count = count + 1x = 5
if x > 3:
print("Yes")