Grade 7 Math · Coding

Read and alter existing code involving events influenced by a defined count and/or sub-program 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: G7-C3.2

Sample: the first question, solved

A sub-program is called inside a loop running 10 times. What happens if you change the loop count to 20?

📘 Worked solution
The sub-program will be called 20 times instead of 10, doubling the executions.

And one from the hard end

Code recalculates an expensive value inside a 10000-iteration loop instead of calculating it once outside. Identify and correct the inefficiency, and explain the impact.

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