Grade 6 Computer Science — 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
- Print the result
- Start
- Read the number
- Double the number
2.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?
3.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?
4.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?
5.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?
6.A flowchart reads a number. If the number is more than 20, it prints "Big". If not, it prints "Small". The number read is 44. Which arrow out of the diamond is taken?
- a) Both of them
- b) Neither of them
- c) The Yes arrow
- d) The No arrow
7.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?
8.A flowchart sets a total to 0. Each time round it adds 5 to the total, and it goes round 4 times. What is the total at the end?
Answer key — Grade 6 Computer Science — Following a flowchart
- 1. 1. Start 2. Read the number 3. Double the number 4. Print the result 5. Stop
- 2. Small
- 3. High
- 4. Big
- 5. Match
- 6. c) The Yes arrow
- 7. Under
- 8. 20