⭐ Grade 2 · Introductory Coding

Introductory Coding – Grade 2 Math Lesson

  1. 1. 📖 Lesson
  2. 2. 🧠 Practice
  3. 3. 📝 Worksheet
  4. 4. 🎮 Game
Free lessons used: 1 of 5 🔓 Unlock everything

About This Grade 2 Lesson

Topic
Introductory Coding
Grade & ages
Grade 2 · ages 7–8
Curriculum
Ontario Mathematics Curriculum, Grades 1–8 (2020)
In this lesson
What is Coding? 🤔 · Sequences = Order Matters! 🔢 · Meet Robo! 🤖 · Basic Commands · Make a Square! ⬛
Created by
The InukMath team
Last updated
October 19, 2026 · How we make our lessons

Introductory Coding – Grade 2 Lesson Notes

A quick written summary of this Grade 2 math lesson from the Introductory Coding unit. Read it with your child, then open the interactive lesson above and try the practice questions.

Sequential Movements & Simple Algorithms • Grade 2

1 2 3 4 5 6 7 8 9 10 11 12

Today we will learn how to give clear instructions to our robot friend using sequences and simple algorithms. You are going to be amazing coders!

What is Coding? 🤔

Coding is telling a computer (or robot) exactly what to do — step by step — in the right order!

Like a recipe:

  • 1. Take a bowl
  • 2. Add flour
  • 3. Mix everything

Sequences = Order Matters! 🔢

Correct Sequence:

1. Forward2. Forward3. Turn Right

Wrong Order:

Turn Right first, then Forward

The robot will go the wrong way!

Meet Robo! 🤖

Click the buttons below to move Robo!

Basic Commands

Forward

Turn Right

Turn Left

Make a Square! ⬛

Forward + Turn Right, repeated 4 times = Square

Debugging = Fixing Mistakes 🛠️

Wrong Code:

Forward, Forward, Turn Left

Robot goes the wrong way!

Fix it by changing Turn Left to Turn Right → Now it works! ✅

Simple Algorithms in Real Life

Brushing Teeth Algorithm:

1. Pick up toothbrush2. Put toothpaste3. Brush 2 minutes4. Rinse

Making a Sandwich:

1. Bread2. Jam3. Bread again

Loops = Repeat! 🔄

Instead of writing Forward 8 times, we can say:

Repeat Forward 8 times

Loops save time and make our code cleaner!

You Are a Coder Now! 🎉

You learned: • Sequences need correct order • Commands: Forward, Turn Left, Turn Right • Debugging mistakes • Simple algorithms and loops

Quick Challenge

To make a square, repeat Forward + Turn Right how many times?

What does debugging mean?

🏅 OFFICIAL CERTIFICATE 🏅

This is to certify that

[Your Name]

is an Official Grade 2 Coding Superstar!

Introductory Coding – Sample Practice Questions

  1. To move a robot from start to finish, what do you need?

    • A) Only one command
    • B) A sequence of steps in order
    • C) Random movements
    • D) No steps at all
    Show answer

    Answer: B) A sequence of steps in order — Coding needs a clear sequence of steps in the right order. You are thinking like a coder!

  2. What does this sequence mean: Forward, Forward, Turn Right?

    • A) Go straight twice then turn
    • B) Turn first then go
    • C) Go back
    • D) Jump
    Show answer

    Answer: A) Go straight twice then turn — Forward twice, then turn right.

  3. If you want the robot to make a square, what command do you repeat 4 times?

    • A) Forward only
    • B) Forward + Turn Right
    • C) Turn Left only
    • D) Stop
    Show answer

    Answer: B) Forward + Turn Right — Forward then turn right, repeated 4 times makes a square.

  4. Which is the correct order to get to the treasure?

    • A) Turn Left, Forward, Forward
    • B) Forward, Forward, Turn Left
    • C) Forward, Turn Left, Forward
    • D) Turn Left, Turn Left, Forward
    Show answer

    Answer: A) Turn Left, Forward, Forward — Turn left first, then move forward twice.

  5. What is a simple algorithm?

    • A) A list of steps to solve a problem
    • B) A random guess
    • C) A drawing
    • D) A song
    Show answer

    Answer: A) A list of steps to solve a problem — An algorithm is a clear list of steps.

Practise all 70 Introductory Coding questions →

Keep Going with Introductory Coding