Grade 6 Math · Coding

Write and execute efficient code involving conditional statements and other control structures

30 tutor-authored questions for this Ontario curriculum expectation, ordered easiest to hardest, every one with a full worked solution. Work through all 30 with your weekly-lesson access code.

Start the 30 questions Curriculum: G6-C3.1

Sample: the first question, solved

"If n is divisible by 2 AND divisible by 5, print 'divisible by 10'." If n=20, what is printed?

📘 Worked solution
"divisible by 10" (20 is divisible by both 2 and 5).

And one from the hard end

Design efficient code that checks if a number between 1 and 1000 is prime, checking divisors only up to the square root of the number rather than all numbers up to the number itself, and explain why this is more efficient.

Solution shown after you try it in practice mode.

Work through all 30, easiest to hardest

Your Winny Score tracks you as the questions ramp up. Stuck on one? A real Winny Math tutor will walk you through it. First lesson free.

Start practicing