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 | |
|---|---|---|
| 1Diamond A: Yes arrow -> Diamond B | AThis path skips the inner diamond and goes straight to the End shape, so every path still finishes. | |
| 2Diamond A: No arrow -> End | BA nested decision: the second question (B) is only asked when the answer to A is Yes. | |
| 3The inner question is only asked after the first answer is Yes | CThe inner diamond is not joined to the Yes arrow of the first diamond, so it can never be reached. | |
| 4Every path in a nested decision flowchart finishes at End | DThe No path of the inner diamond does not reach End, so the flowchart never finishes on that path. | |
| 5Is it raining? Yes -> Print 'Wear a coat' (inner diamond floats next to it, with no arrow in) | EIs it raining? Yes -> Do I have an umbrella? | |
| 6Inner diamond: Yes -> Take umbrella -> End; No -> (arrow goes nowhere) | FInner Yes -> Take umbrella -> End; Inner No -> Stay home -> End |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
nested decision — A diamond placed on the Yes or No path of another diamond, so the second question is only asked after the first answer. Every path still ends at the End shape.Diamond 1: Is mark >= 50?
Yes -> Diamond 2: Is mark >= 85?
No -> Print "Try again" -> EndDiamond 1: Is it a weekday?
Yes -> Diamond 2: Is it before 8am?
No -> Print "Sleep in" -> EndDiamond 1: Is score > 10?
Yes -> Diamond 2: Is score > 20?
No -> Print "Low" -> EndDiamond 1: Is it a school day?
Yes -> Diamond 2: Is it raining?
No -> Print "Free day" -> EndDiamond 1 Yes -> Diamond 2: Is x > 100?
Diamond 2 Yes -> Print "Big" -> End
Diamond 2 No -> Print "Small" -> End