Free printable Grade 6 coding worksheets (Ontario)

Grade 6 coding in math class is still a flowchart, read rather than typed. The same Ontario code, C3.1, now asks for a condition that picks the next instruction. The printable preview puts that choice next to loops and variables. Students track turns and say which way the robot faces at the end. A nested repeat asks how many claps the code makes, so an inner loop has to be multiplied by an outer one. A condition item asks what the code says when it chooses between two messages. A variable item asks what number the code says after it changes a counter. A repeat-until item asks how many times the code adds to the counter, and the full sheet asks for the counter's value when the loop ends. A single repeat that only counts steps forward is the Grade 3 coding page.

Ontario curriculum: Mathematics (2020) · Algebra C3.1 — read code that uses a condition to choose what happens next

Question types

Sample questions

6 questions from coding. Choices stay unmarked.

  1. 1.

    Which way does the robot face at the end?

    start facing westturn rightturn rightturn right
    • Awest
    • Bsouth
    • Cnorth
    • Deast
  2. 2.

    How many claps does this code make?

    repeat 3 timesrepeat 2 timesclap
    • A6
    • B2
    • C3
    • D5
  3. 3.

    What does this code say?

    The score is 9score greater than13?yesnosay "win"say "try again"
    • Astop
    • Bwin
    • Cstart over
    • Dtry again
  4. 4.

    What number does this code say?

    set counter to 11add 1 to countersay counter
    • A1
    • B10
    • C11
    • D12
  5. 5.

    How many times does the code add to the counter?

    set counter to 1repeat until counter is 10add 3 to counter
    • A3
    • B10
    • C4
    • D2
  6. 6.

    Which way does the robot face at the end?

    start facing eastturn leftturn left
    • Aeast
    • Bnorth
    • Cwest
    • Dsouth

Common questions

What new coding idea does Ontario add in Grade 6?
A condition that chooses what happens next, still under C3.1. The preview asks what the code says when it makes that choice, and it also counts claps inside a nested repeat.
Does the Grade 6 coding worksheet use variables?
Yes. One question asks what number the code says after it updates a counter. Another asks how many times a repeat-until loop adds to the counter.
Do students write their own program?
They read a flowchart and choose what it does. The questions cover facing direction, nested repeats, conditions, and a counter. Typing code is not part of the sheet.

More Grade 6 math topics

Coding in other grades

More worksheets