Ages 8–10 · Growing
Invalid test
Apply testing to justify a solution to the invalid test task.
Understand the idea
A test needs an input and a criterion for success.
Your challenge
A numeric score field receives “hello”. What should a robust program do?
- Treat it as definitely zero
- Crash deliberately
- Reject it with a useful message
How to explore
- Identify the inputs, goal or constraint in this testing situation.
- Work through the stated rule or operation without adding assumptions.
- Check your proposed response against every relevant detail in the question.
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