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 | |
|---|---|---|
| 1score > 50? | Yes | Acount > 3? | Yes | count = 5 | |
| 2OUTPUT total | 12 in Output column | BStart | total <- 0 | count > 3? | OUTPUT total | |
| 3Each shape you visit gets its own row, in the order you visit it | CAn output shape row: write the value that is displayed in the output column | |
| 4A decision row records Yes or No, and the variable values stay the same | DThe answer to a diamond must be Yes or No. The student wrote the value of count instead. | |
| 5count > 3? | 5 | EA diamond row: write the Yes or No answer to the decision in the answer column | |
| 6total <- 0 | OUTPUT total (no diamond row) | FThe decision shape was skipped, so its row and Yes or No answer are missing from the table. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
prediction table — A table listing each flowchart shape you visit in order, the Yes or No answer at each diamond, the variable values after each step, and any output.Shape | Yes or No | x | Outputx ← 3
Is x > 5? Answer: Nox ← 4
Process: x ← x + 2
Value of x after step: 6count ← 3
Is count <= 3? Answer: Yestotal ← 2 + 3
Output total
Output column shows: 5