Innovator · Follow the Steps
Testing a Plan
Your child chooses test cases that reach each branch and the weakest spots.
8 questions
Ages 9-11
Answers hidden until revealed
Report an issue
Learning goal
Predict results for the normal, edge and empty cases, then compare them when testing.
1
A card with a name gets a stamp. A card without a name gets the name added, then a stamp. Which set tests both branches?
Hint
Each branch needs at least one example that reaches it.
-
A
One named card and one with no name
-
B
Two named cards
-
C
Two cards with no name
Show answer
Correct answer:
A
One named card and one with no name
Report an issue
2
Cards under 5 go to A; cards from 5 up go to B. Which result do you expect when testing the card 5?
Hint
Check whether the rule includes the boundary number.
-
A
Card 5 goes to A
-
B
Card 5 goes to B
-
C
Card 5 goes to both
Show answer
Correct answer:
B
Card 5 goes to B
Report an issue
3
You take sheets out of a box one by one until it is empty. Testing with an empty box first, what do you expect?
Hint
Decide whether the loop should run at all when empty.
-
A
It stops with no sheet taken
-
B
It tries one sheet, then stops
-
C
It adds a sheet first
Show answer
Correct answer:
A
It stops with no sheet taken
Report an issue
4
Flip at most 3 cards and stop at the first star. Which case tests stopping early?
Hint
Pick a run that can stop before the limit.
-
A
Star on the first card, 2 cards left
-
B
Star on the last of 3 cards
-
C
All 3 cards have no star
Show answer
Correct answer:
A
Star on the first card, 2 cards left
Report an issue
5
There are 3 notebooks to label. A test run labelled only 2 and then stopped. What should you check first?
Hint
Compare the expected count with the stop condition.
-
A
The label colour on each book
-
B
The count condition for stopping
-
C
The order of the 2 done
Show answer
Correct answer:
B
The count condition for stopping
Report an issue
6
Send a form only after the name is written and checked. A run sent the form right after writing the name. What was missed?
Hint
Trace the must-have condition just before the send step.
-
A
Writing the name again after sending
-
B
Looking at where the form sits after sending
-
C
Checking the form before sending it
Show answer
Correct answer:
C
Checking the form before sending it
Report an issue
7
You just fixed the red branch in a red-or-green plan. How can a test run show whether the green branch still works?
Hint
Run both the fixed branch and the one that might be affected.
-
A
Read the green branch name again
-
B
Test only two red cards
-
C
Run a red and a green card, compare results
Show answer
Correct answer:
C
Run a red and a green card, compare results
Report an issue
8
Find a star in at most 3 cards. To test an empty box, an early star and no star, which set fits?
Hint
Match each required case with one specific run.
-
A
Three boxes with a star first
-
B
Empty box, star first, no star at all
-
C
One empty box and two more empty
Show answer
Correct answer:
B
Empty box, star first, no star at all
Report an issue
Keep exploring
More lessons in this path.
Pick another age group or skill and keep reviewing.