Grade 6 Math · Coding

Read and alter existing code involving conditional statements and other control structures, and describe the effect of changes on outcomes and efficiency

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.2

Sample: the first question, solved

"If n divisible by 5, print 'even-five'." What change would make it also check for divisible by 2?

📘 Worked solution
Change to "if n divisible by 5 AND n divisible by 2, print 'divisible by both'."

And one from the hard end

Code checking for primes up to N checks all divisors up to N−1 instead of up to the square root of N. Identify and correct the inefficiency, and explain the impact for large inputs.

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