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 | |
|---|---|---|
| 1flowchart TD | AB{Is score > 10?} B -->|Yes| C | |
| 2A --> B | BDraws an arrow from shape A to shape B | |
| 3A rectangle step is written as an id followed by the step text in square brackets | CA[Add 1 to count] | |
| 4A decision diamond is written as an id with the question in curly brackets, and its arrows are labelled with the answers | DStarts a Mermaid script and tells it to draw the flowchart from top to bottom | |
| 5flowchart TD A[Start] -> B[Step] | EThe arrow has only one dash. Mermaid needs --> with two dashes to join shapes. | |
| 6flowchart TD A[Start] --> B[Is it raining?} | FThe question uses a mismatched bracket. A diamond must start with { and end with }, not start with [. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
flowchart TD — Starts a Mermaid script that draws a flowchart top-down. Shapes are an id plus text, like A[Step] or B{Question?}, joined by --> arrows.flowchart TD
A[Start] --> B[Get number]flowchart TD
A[Start] --> B[Add 1 to count]flowchart TD
A[Start] --> B[Ask for a name]flowchart TD
A[Start] --> B{Is it raining?}
B -->|Yes| C[Take umbrella]flowchart TD
A[Start] --> B{Count is 5?}
B -->|No| D[Add 1]