Coding on a Grid: Nested Repeats
PrintPrint this worksheet, clean and free, at stepsies.com.
Sheet 129 has new questions in the same layout. Print it to see them.
Coding on a Grid: Nested Repeats
Nested loops worksheet for Grade 4: run code with a repeat inside a repeat on a grid to find the letter where you stop, fix the one wrong line, then write your own code. With an answer key.
Type the answers or write with a mouse, touchpad or finger. The work stays on your device.
Your first print is free, with no sign-in. Then 10 sheets a month with a free account. Prints on Letter paper, or print on A4.
Make a new sheetSheet 129 of 9999, each with its own answer key · Back to Sheet 1
Teach it first
Coding with LoopsA teaching handout to hand out before this sheet: the rule, worked examples and common mistakes.- Skill
- Coding Worksheets
- Pages
- 3
- Last updated
- Time
- About 20 minutes
- Answer key
- Included
- Printing
- Black and white
- Related curriculum
-
Follow a set of instructions on a grid to see where it ends, write the instructions for a path, find and fix the mistake in a set of instructions, and use repeats (loops) and choices (if) in later grades, all on paper.
Reviewed by Mrs. Catherine Reynolds, Teacher. How we check worksheets
How to use this sheet
- Have the child trace each program with a finger on the grid, one step at a time, before writing an answer.
- Ask the child to read the arrows or commands aloud as they go.
- When a program fails, have the child find the first step where it went wrong. That is debugging.
Common mistakes
- Mixing up the robot’s left and right when it faces down the grid. Turn the sheet, or stand and face the same way.
- Running a repeat block once fewer or once more than it says. Count the repeats aloud.
- Skipping a step in a long program. Mark each step as it is done.