🏆 Grade 6 · Patterns

Coding and Computational Thinking – Grade 6 Math Lesson

  1. 1. 📖 Lesson
  2. 2. 🧠 Practice
Free lessons used: 4 of 5 🔓 Unlock everything

About This Grade 6 Lesson

Topic
Coding and Computational Thinking — Patterns unit
Grade & ages
Grade 6 · ages 11–12
Curriculum
Ontario Mathematics Curriculum, Grades 1–8 (2020)
In this lesson
1. What is Computational Thinking? · 2. Algorithms – Step-by-Step Instructions · 3. Loops – Repeating Actions · 4. Conditionals – Making Decisions · 5. Let’s Practice Together! 🎉
Created by
The InukMath team
Last updated
October 19, 2026 · How we make our lessons

Coding and Computational Thinking – Grade 6 Lesson Notes

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

Today we’re exploring Coding and Computational Thinking! Computational thinking means solving problems like a computer — by breaking them into steps, spotting patterns, and giving clear instructions. We’ll learn simple algorithms, loops, and how coding connects to math. Let’s have fun and create! 💻🚀

1. What is Computational Thinking?

It’s like being a detective and a chef at the same time! • Break big problems into small steps (Decomposition) • Spot patterns • Create step-by-step instructions (Algorithms) • Think logically and fix mistakes (Debugging)

2. Algorithms – Step-by-Step Instructions

To make a peanut butter sandwich: 1. Take 2 slices of bread 2. Spread peanut butter on one slice 3. Spread jam on the other slice 4. Put the slices together 5. Eat!

3. Loops – Repeating Actions

Repeat 5 times: Jump up and down Clap your hands

In math: Print the numbers 1 to 10 → Use a loop!

4. Conditionals – Making Decisions

IF it is raining THEN Take an umbrella ELSE Wear sunglasses

5. Let’s Practice Together! 🎉

Question 1:

Write a simple algorithm to brush your teeth.

1. Wet toothbrush 2. Put toothpaste on it 3. Brush for 2 minutes 4. Rinse ⭐

Question 2:

Write a loop to print numbers from 1 to 5.

Repeat 5 times: Print next number ⭐

Question 3:

If you have more than 10 cookies, share with friends. Write as a conditional.

IF cookies > 10 THEN share with friends ⭐

Question 4 (Math Connection):

Write a rule (algorithm) to find the next number in: 3, 6, 9, 12, ...

Add 3 to the previous number ⭐

6. Real Life in Canada 🇨🇦

  • Following a recipe to make butter tarts
  • Planning the best route to school (algorithm)
  • Repeating warm-up exercises in hockey practice (loop)
  • Deciding what to wear based on temperature (conditional)

You are a Computational Thinker! 🏆💻

Amazing work today! You now understand algorithms, loops, and conditionals. These thinking skills help you in math, science, and everyday life. I’m so proud of you! Try writing an algorithm for brushing teeth or making your favourite snack, Mrs. Brenda ❤️

Coding and Computational Thinking – Sample Practice Questions

  1. What is an algorithm?

    • A) A step-by-step list of instructions to solve a problem
    • B) A computer game
    • C) A type of loop
    • D) A random guess
    Show answer

    Answer: A) A step-by-step list of instructions to solve a problem — Hello superstar! An algorithm is a clear step-by-step plan to solve a problem. You are doing wonderfully with coding and computational thinking!

  2. Which is an example of a sequence in coding?

    • A) Do step 1, then step 2, then step 3
    • B) If it rains then take umbrella
    • C) Repeat jumping 5 times
    • D) Stop when finished
    Show answer

    Answer: A) Do step 1, then step 2, then step 3 — A sequence is steps in order.

  3. What does a loop do in coding?

    • A) Repeats a set of instructions
    • B) Makes a decision
    • C) Stops the program
    • D) Draws a picture
    Show answer

    Answer: A) Repeats a set of instructions — Loops repeat actions.

  4. In pseudocode, what does 'IF temperature > 30 THEN wear shorts' show?

    • A) A conditional (decision)
    • B) A loop
    • C) A sequence
    • D) An output
    Show answer

    Answer: A) A conditional (decision) — Conditionals make decisions based on true/false.

  5. What is debugging?

    • A) Finding and fixing errors in code
    • B) Writing new code
    • C) Running the program
    • D) Drawing a flowchart
    Show answer

    Answer: A) Finding and fixing errors in code — Debugging means fixing mistakes.

Practise all 59 Coding and Computational Thinking questions →

More Grade 6 Lessons: Patterns

All Grade 6 lessons →