Read and alter existing code involving conditional statements and other control structures, and describe the effect of changes on outcomes and efficiency
10 tutor-authored questions for this Ontario curriculum expectation, ordered easiest to hardest — every one with a full worked solution. Work through them free, no account needed.
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
A conditional "if x>50" is changed to "if x≥50." How does this affect the case where x=50 exactly?
Solution shown after you try it in practice mode.
Work through all 10, 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