Year 7 Computing — Following a flowchart
Trace a flowchart from start to stop, take the right arrow out of a decision, and say what it prints.
Name: ________________________
1.A flowchart reads a number, doubles it and prints it. Put the boxes in the order they are visited.
- Stop
- Read the number
- Print the result
- Start
- Double the number
2.A flowchart reads a number. If the number is less than 5, it prints "Low". If not, it prints "High". The number read is 5. What does the flowchart print?
3.A flowchart reads a number. If the number is more than 10, it prints "Big". If not, it prints "Small". The number read is 15. What does the flowchart print?
4.What would go wrong if one arrow out of a decision diamond led nowhere?
- a) Nothing — a diamond only ever needs one arrow
- b) Anyone following that answer would be stuck with no next step
- c) The other arrow would stop working too
- d) The flowchart would run twice as fast
5.A flowchart reads a number. If the number is more than 10, it prints "Big". If not, it prints "Small". The number read is 7. What does the flowchart print?
6.A flowchart reads a number. If the number is more than 100, it prints "Over". If not, it prints "Under". The number read is 99. What does the flowchart print?
7.A flowchart reads a number. If the number is more than 20, it prints "Big". If not, it prints "Small". The number read is 4. Which arrow out of the diamond is taken?
- a) The No arrow
- b) Both of them
- c) Neither of them
- d) The Yes arrow
8.A flowchart reads a number. If the number is equal to 12, it prints "Match". If not, it prints "Different". The number read is 12. What does the flowchart print?
Answer key — Year 7 Computing — Following a flowchart
- 1. 1. Start 2. Read the number 3. Double the number 4. Print the result 5. Stop
- 2. High
- 3. Big
- 4. b) Anyone following that answer would be stuck with no next step
- 5. Small
- 6. Under
- 7. a) The No arrow
- 8. Match