Computer science · Grades K–2
Robot on a number path
Study guide for Kindergarten to Grade 2: 2 worked examples and 2 practice questions. Follow the steps one at a time, in order, and keep track of where the robot is after each step.
Rule and key idea
Follow the steps one at a time, in order, and keep track of where the robot is after each step.
→ = 1 forward · ← = 1 back
Worked examples
A robot is on square 3. → means move 1 forward. ← means move 1 back. Steps: ← ← ←. Which square does the robot stop on?
3 → 2 → 1 → 0
0
A robot is on square 3. → means move 1 forward. ← means move 1 back. Steps: ← →. Which square does the robot stop on?
3 → 2 → 3
3
Try two questions
A robot is on square 4. → means move 1 forward. ← means move 1 back. Steps: ← ← → ←. Which square does the robot stop on?
A robot is on square 0. → means move 1 forward. ← means move 1 back. Steps: → →. Which square does the robot stop on?
Answers and reasoning
Answers and marking notes
- 2
4 → 3 → 2 → 3 → 2
- 2
0 → 1 → 2
How this page was made: written for StudyBrix with AI assistance from our own templates. Answers and worked examples are checked by automated tests, and grade bands are approximate, not an official curriculum alignment. See the editorial policy for corrections. Editorial policy