Coding with Repeats
Grade 2 math worksheet · mathbonk.com/learn
Name: ______________________ Date: ____________
Look
- The outer loop runs 3 times and the inner loop runs 6 times. How many stamps in all?
- How many stamps are in each row?
- Write the code for the grid using two repeat blocks.
Practice
- Write "jump, jump, jump, jump" with a loop
- What does repeat 3 [clap, stomp] do?
- How many steps forward is repeat 5 [forward 2]?
- How many times do you turn in repeat 4 [forward 1, turn right]?
- What shape does repeat 4 [forward 3, turn right] trace?
- Shorten: forward, forward, turn left, forward, forward, turn left
- A robot faces north and turns right. Which way does it face now?
- A robot faces north and turns left twice. Which way does it face now?
- A toy needs to go forward 6 squares. Write it with a loop
- Code: repeat 3 [forward 2]. The toy started on square 0. Which square does it end on?
Think it through
- Draw the path a robot traces with repeat 3 [forward 4, turn right].
- Explain why repeat 5 [forward 2] moves the same distance as repeat 2 [forward 5].
Challenge
- How many steps are in repeat 3 [repeat 2 [forward 1, turn right]]?
- A bug moves with repeat 4 [forward 3, turn left]. Where is it compared with its starting square?