StudyBrixFree worksheets, study guides and courses

Computer science · Grades 2–4

Repeat loops

Study guide for Grades 2 to 4: 2 worked examples and 2 practice questions. A loop repeats the same instructions. Multiply what happens inside the loop by the number of repeats.

Make a worksheet

Rule and key idea

A loop repeats the same instructions. Multiply what happens inside the loop by the number of repeats.

repeat n times [k steps] → n × k steps

Worked examples

A robot runs: repeat 3 times [move forward 2 steps]. How many steps does it move in total?

3 × 2 = 6

6

A dance program says: repeat 4 times [clap, stomp]. How many claps are there in total?

4 × 1 = 4

4

Try two questions

  1. A robot runs: repeat 4 times [move forward 2 steps]. How many steps does it move in total?

  2. A dance program says: repeat 3 times [clap, clap, clap, stomp]. How many claps are there in total?

Answers and reasoning

Answers and marking notes
  1. 8

    4 × 2 = 8

  2. 9

    3 × 3 = 9

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