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 | |
|---|---|---|
| 1Input age | AOutput average | |
| 2Output total | BA parallelogram step that shows the value of the variable total to the user | |
| 3An input step in a parallelogram names the variable that will store the user's answer | CInput score | |
| 4An output step in a parallelogram shows the user the value held in a variable | DA parallelogram step that asks the user to enter a value and stores it in the variable age | |
| 5Rectangle containing: Input age | EThe input step does not name a variable. It should say which variable stores the value, such as Input name. | |
| 6Parallelogram containing: Input | FInput is drawn in a rectangle. Input and output steps must go in a parallelogram, because rectangles are for processes like calculations. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
parallelogram — The flowchart shape for an input or output step, like getting a name from the user or showing a result. Write the action and variable inside, e.g. Input age.Shape for input or output: parallelogramParallelogram: Input nameParallelogram: Input score
Diamond: score > 50?Rectangle: total <- a + b
Parallelogram: Output totalParallelogram: Input name
Parallelogram: Output name