Algorithms: Step by Step
Questions 10
The answer key is shown to signed-in teachers.
-
-
-
Why order matters
Why is the order of steps important in an algorithm?
Because a computer only reads the last step
Because the steps can be shuffled without changing anything
Because doing the steps in a different order can give a different or wrong result
Because every step must be exactly the same length
Imagine putting on your shoes before your socks and compare it with the usual order. -
-
-
-
Order of washing hands
Which sequence of steps is in the correct order for washing hands?
Turn on water, wet hands, add soap, rub hands together, rinse, dry hands
Add soap, dry hands, rinse, turn on water, wet hands
Rinse, dry hands, rub hands together, turn on water, add soap
Dry hands, add soap, turn on water, rinse, rub hands together
Think about what must happen first, such as water being on, before soap can be used. -
Robot movement
A robot starts at position (0, 0) on a grid, where the first number is how far right and the second is how far up. It follows these instructions in order: move 2 steps up, move 1 step right, move 1 step down. What is its final position?
(1, 1)
(2, 1)
(1, 2)
(0, 1)
Track the robot's position after each move, starting from (0, 0). -
-
Finding the biggest number
A computer checks the numbers 4, 9, 2, 7 using these steps: Set biggest to the first number. For each number in the list, if it is bigger than biggest, set biggest to that number. What is the final value of biggest?
7
9
4
2
Keep track of the largest number you have seen so far as you go through the list.
About
- Subjects
- Computers
- Tags
- Added by AI step order Added by AI decisions Added by AI loops Added by AI algorithm basics Added by AI grid movement
- Audience
- Elementary School · Grades 1–2
- Difficulty
- 2 out of 10
- Language
- English
- Who can see it
- Everyone
- Completed by AI
- What's marked with a sparkle was added by AI.
- Written by AI
- Claude Haiku 5.5
- Created
Comments