Question 1
2 marksGive two reasons why a program should be tested before it is released.
Model answer
1. To find any errors so that they can be fixed before the program is used.
2. To check that the program handles invalid or unexpected inputs without crashing.
Explanation
Testing has two jobs: finding errors so they can be fixed, and checking that the program meets its requirements, including dealing sensibly with bad input. A program released without testing may crash or give wrong results for its users. Testing cannot prove a program has no errors, but a good test plan finds most of them.
Mark scheme
-
1 mark
To find errors / bugs so they can be fixed (before users find them)
max 2
-
1 mark
To check that the program meets its requirements / does what it is supposed to do
-
1 mark
To check that it gives the correct outputs (for a range of inputs)
Do not award together with the requirements point if the student only repeats the same idea in different words.
-
1 mark
To check that it handles invalid / unexpected inputs without crashing // to make sure it is robust