Grade 8 Math · Coding

Read and alter existing code involving the analysis of data in order to inform and communicate decisions, 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: G8-C3.2

Sample: the first question, solved

Code meant to find the minimum value accidentally uses the maximum function. Identify the correct fix.

📘 Worked solution
The function call needs to switch from max(data) to min(data) so it actually returns the smallest value.

And one from the hard end

Code recalculates the same statistical measure inside a loop instead of calculating it once outside. Identify and correct the inefficiency, and explain the impact for 100,000 data points.

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