Drawing a decision in a flowchart

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Drawing a decision in a flowchart

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which shape do you use to show a decision in a flowchart?
A A rectangle
B A diamond
2. Which question is best to write inside a decision diamond?
A Is it raining?
B Get an umbrella
3. How many arrows leave a decision diamond?
A Two: one labelled Yes and one labelled No
B One arrow with no label
4. Which question works in a decision diamond?
A Is the score more than 10?
B What is the score?
5. What do the labels on the arrows leaving a diamond tell you?
A How fast to move through the steps
B Which path to follow for each answer

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Diamond: Is it raining? ADiamond: Is the score over 10?
2Diamond --Yes--> Take umbrella BYes --> Wear coat --> Walk to school; No --> Walk to school
3The question in a diamond must be a yes/no question CA decision diamond holding a yes/no question that the flowchart asks
4Two paths from a decision can join up again afterwards DThe arrows leaving the diamond are not labelled Yes and No, so you cannot tell which path to follow.
5Diamond: What is the weather? EThe diamond holds a question that has more than two answers, not a yes/no question. It should be something like Is it raining?
6Diamond: Is it sunny? --> Wear a hat (no labels on the arrows) FA Yes arrow leading from the diamond to the step done when the answer is Yes

Definitions

decision diamond

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
_______: Is it raining?
2.
Diamond: Is it raining? ___ -> Take an umbrella No -> Wear a cap
3.
Diamond: Is the door locked? Yes -> Get the key __ -> Open the door
4.
Diamond: Is it a school day_
5.
Yes and No paths ____ at the next step

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A Start
B <Is the bag packed?>
C Maybe -> Walk to school
D No -> Pack the bag
E Both paths -> End
Question 2
A <What colour is the light?>
B Yes -> Stop the car
C No -> Keep driving
D Both paths -> Check the road
Question 3
A <Is the door open?>
B Yes -> Walk inside
C Yes -> Knock on the door
D Both paths -> Sit down
Question 4
A <Charge the phone>
B Yes -> Play the game
C No -> Plug in the charger
D Both paths -> Finish
Question 5
A <Is the dog hungry?>
B -> Feed the dog
C No -> Play with the dog
D Both paths -> Go to bed

Answer Key

Drawing a decision in a flowchart
Section A: Quick Questions
Q1
B — A diamond
Q2
A — Is it raining?
Q3
A — Two: one labelled Yes and one labelled No
Q4
A — Is the score more than 10?
Q5
B — Which path to follow for each answer
Section B: Match the Pairs
Q1
Diamond: Is it raining? → A decision diamond holding a yes/no question that the flowchart asks
Q2
Diamond --Yes--> Take umbrella → A Yes arrow leading from the diamond to the step done when the answer is Yes
Q3
The question in a diamond must be a yes/no question → Diamond: Is the score over 10?
Q4
Two paths from a decision can join up again afterwards → Yes --> Wear coat --> Walk to school; No --> Walk to school
Q5
Diamond: What is the weather? → The diamond holds a question that has more than two answers, not a yes/no question. It should be something like Is it raining?
Q6
Diamond: Is it sunny? --> Wear a hat (no labels on the arrows) → The arrows leaving the diamond are not labelled Yes and No, so you cannot tell which path to follow.
Section C: Definitions
Q1
decision diamond — A diamond shape in a flowchart that holds a yes/no question. One arrow labelled Yes and one labelled No lead to different steps, and the paths can join up again later.
Section D: Fill in the Blanks
Q1
Diamond: Is it raining?
Q2
Diamond: Is it raining? Yes -> Take an umbrella No -> Wear a cap
Q3
Diamond: Is the door locked? Yes -> Get the key No -> Open the door
Q4
Diamond: Is it a school day?
Q5
Yes and No paths join at the next step
Section E: Spot the Error
Q1
C — Arrows leaving a decision diamond must be labelled Yes or No. 'Maybe' is not allowed. It should be 'Yes -> Walk to school'.
Q2
A — The diamond must hold a question with a yes/no answer. 'What colour is the light?' can't be answered with Yes or No. It should be '<Is the light red?>'.
Q3
C — The two arrows from a diamond need different labels. This line uses Yes twice. It should start with 'No ->'.
Q4
A — A diamond holds a question, not an action. 'Charge the phone' is a step. It should be '<Is the phone charged?>'.
Q5
B — Every arrow from the diamond needs a label. This arrow has no Yes or No. It should be 'Yes -> Feed the dog'.