Coding Step by Step
Grade 1 math worksheet · mathbonk.com/learn
Name: ______________________ Date: ____________
Look
- The robot walks from Start to End along the line. How many squares does it move?
- How many turns does the robot make?
- The robot faces right at the start. Is its turn a left turn or a right turn?
Practice
- A robot moves forward 3, then forward 2. How many squares did it move?
- A robot needs to move 4 squares forward. How many forward steps should the code have?
- Does "turn right" move the robot to a new square?
- The code says forward, forward, turn left, forward. How many forward steps are there?
- A robot is 6 squares from the door. It has moved 2. How many more forward steps does it need?
- The code forward, forward, forward should stop after 2 squares. What is the fix?
- Facing up, the robot turns right. Which way is it facing now?
- Facing up, the robot turns left twice. Which way is it facing now?
- Write the shortest code to move a robot 2 squares up, then 1 square right (start facing up).
- Mia's code is forward, turn right, forward. Ben's code is forward, forward. Whose code has more cards?
Think it through
- Draw a path for a robot: 3 squares forward, turn left, 2 squares forward.
- Explain what happens if a robot's code says forward, forward and a wall is 1 square away.
Challenge
- A robot is 8 squares from the door. Its code has 3 forward steps. How many more forward steps does it need?
- A robot faces up. It turns right 3 times. Which way does it face now?