Algorithms, loops and bugs
Name ______________ Date ____________
Computer Science Education Week is held in December. People learn how computers follow steps. A set of steps that solves a problem is called an algorithm. A loop repeats steps. A bug is a mistake in the steps. You can test steps on paper.
Answer from the reading.
- A set of steps that solves a problem is called what?a) bugb) algorithmc) pattern Answer: algorithm
- A loop repeats steps.TrueFalse Answer: true
- Which word means do steps again and again? Answer: loop (also: a loop, repeat)
- What comes next? 5, 10, 15, 20, ___ Answer: 25
- Repeat 4 times: draw 3 dots. How many dots in all? Answer: 12
- What comes next? A, B, B, A, B, B, A, ___a) Bb) Ac) C Answer: B
- Steps to make toast: 1. Eat the toast. 2. Put bread in the toaster. 3. Wait for it to pop up. Which step number is out of order? Answer: 1
Write three steps to wash your hands. Check that they are in the right order.