Advertisement Space (Responsive Header Banner)
PrimaryStrand: Algebra (Coding)

Grade 2 Math Lesson 3: Sequential Events & Coding Loops

All Grade 2 Math Lessons

Concept: Sequential Events & Coding Loops

In coding, a repeat loop executes the same movement instruction multiple times in sequence, which works just like repeated addition or multiplication.

Key Formula / Rule: Final Position = Start + (Jump Size × Number of Repeats)
Worked Example: Starting at 0 and repeating 'Move +4' 5 times lands on 4 × 5 = 20.

How to solve Sequential Events & Coding Loops problems

  1. Read the question carefully and identify the values you are given.
  2. Choose the rule that fits: Final Position = Start + (Jump Size × Number of Repeats).
  3. Substitute the values and calculate one step at a time, showing your work.
  4. Check that your answer makes sense, including the correct units or form.

This lesson is part of the Algebra (Coding) strand of the Ontario Math Curriculum for Grade 2 Mathematics. Each practice question below gives instant feedback and a step-by-step solution.

Practice Set: Question 1 of 20 (Lesson 3)

Q41. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 3 times. Where does it land?

All 20 Sequential Events & Coding Loops Practice Questions

Teachers, parents and students can review the full question set for this lesson along with answers and worked solutions.

Show all questions with answers and solutions
  1. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 3 times. Where does it land?
    Answer: 12
    Repeating +4 for 3 times gives 3 × 4 = 12.
  2. [Coding] A sprite starts at 0 and repeats "Move +5 steps" 4 times. Where does it land?
    Answer: 20
    Repeating +5 for 4 times gives 4 × 5 = 20.
  3. [Coding] A sprite starts at 0 and repeats "Move +3 steps" 5 times. Where does it land?
    Answer: 15
    Repeating +3 for 5 times gives 5 × 3 = 15.
  4. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 6 times. Where does it land?
    Answer: 24
    Repeating +4 for 6 times gives 6 × 4 = 24.
  5. [Coding] A sprite starts at 0 and repeats "Move +5 steps" 2 times. Where does it land?
    Answer: 10
    Repeating +5 for 2 times gives 2 × 5 = 10.
  6. [Coding] A sprite starts at 0 and repeats "Move +3 steps" 3 times. Where does it land?
    Answer: 9
    Repeating +3 for 3 times gives 3 × 3 = 9.
  7. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 4 times. Where does it land?
    Answer: 16
    Repeating +4 for 4 times gives 4 × 4 = 16.
  8. [Coding] A sprite starts at 0 and repeats "Move +5 steps" 5 times. Where does it land?
    Answer: 25
    Repeating +5 for 5 times gives 5 × 5 = 25.
  9. [Coding] A sprite starts at 0 and repeats "Move +3 steps" 6 times. Where does it land?
    Answer: 18
    Repeating +3 for 6 times gives 6 × 3 = 18.
  10. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 2 times. Where does it land?
    Answer: 8
    Repeating +4 for 2 times gives 2 × 4 = 8.
  11. [Coding] A sprite starts at 0 and repeats "Move +5 steps" 3 times. Where does it land?
    Answer: 15
    Repeating +5 for 3 times gives 3 × 5 = 15.
  12. [Coding] A sprite starts at 0 and repeats "Move +3 steps" 4 times. Where does it land?
    Answer: 12
    Repeating +3 for 4 times gives 4 × 3 = 12.
  13. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 5 times. Where does it land?
    Answer: 20
    Repeating +4 for 5 times gives 5 × 4 = 20.
  14. [Coding] A sprite starts at 0 and repeats "Move +5 steps" 6 times. Where does it land?
    Answer: 30
    Repeating +5 for 6 times gives 6 × 5 = 30.
  15. [Coding] A sprite starts at 0 and repeats "Move +3 steps" 2 times. Where does it land?
    Answer: 6
    Repeating +3 for 2 times gives 2 × 3 = 6.
  16. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 3 times. Where does it land?
    Answer: 12
    Repeating +4 for 3 times gives 3 × 4 = 12.
  17. [Coding] A sprite starts at 0 and repeats "Move +5 steps" 4 times. Where does it land?
    Answer: 20
    Repeating +5 for 4 times gives 4 × 5 = 20.
  18. [Coding] A sprite starts at 0 and repeats "Move +3 steps" 5 times. Where does it land?
    Answer: 15
    Repeating +3 for 5 times gives 5 × 3 = 15.
  19. [Coding] A sprite starts at 0 and repeats "Move +4 steps" 6 times. Where does it land?
    Answer: 24
    Repeating +4 for 6 times gives 6 × 4 = 24.
  20. [Coding] A sprite starts at 0 and repeats "Move +5 steps" 2 times. Where does it land?
    Answer: 10
    Repeating +5 for 2 times gives 2 × 5 = 10.
Advertisement Space (In-Content Educational Unit)