For the questions that don’t fit in a textbook. Find their starting point
Fahahu

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 HERE

Give that curiosity
somewhere to go.

Open the learning space

Discovery

Digital models simplify the real world. Explore with a grown-up and talk about what you notice.

Find something worth exploring

Explore free activities and printables, or learn about the separately paid Academy courses.