Ages 10–12 · Challenge
Agree on the interface
Use the evidence in agree on the interface to select and justify a valid solution.
Understand the idea
Subprograms separate reusable behaviour behind an interface.
Your challenge
A scoring routine requires a list of integer point values. Match each supplied argument to the required handling before calling it.
How to explore
- Compare the actual argument with the contract.
- Work out the rule for each left-hand case before linking it to a right-hand outcome.
- Check the selected response against the complete situation, including a case where a tempting alternative fails.
Open the activity to work with its controls and check your reasoning. Progress stays in this browser.
Keep exploring
DON’T LET THE QUESTION END HEREGive that curiosity
Open the learning space