Which term describes a mistake that breaks the grammatical rules of a programming language and stops the program being run?
Syntax error
What is meant by a logic error?
A mistake in a program that lets it run but makes it produce unexpected output
What is meant by iterative testing?
Testing each module as it is written, fixing any errors and then testing it again
Which term describes checking a complete program at the end of production to make sure all its parts work together?
Final testing
What is meant by normal test data?
Data that should be accepted by a program without causing any errors
What is meant by boundary test data?
Data of the correct type on the very edge of the valid range
Which term describes values of the correct type that should be rejected because they are outside the range the program allows?
Invalid test data
Which term describes values of the wrong type that should be rejected by a program?
Erroneous test data
Which term describes the document prepared before a program is checked that lists every check to be carried out, with the values to use and the expected result for each?
Test plan
What is meant by refining an algorithm after testing?
Fixing an error that a failed test has revealed and then running the same test again
What is the main purpose of testing a program?
To find errors so that they can be fixed
Which of these mistakes is a syntax error?
Using = instead of == in an if statement
A username must be 6 to 14 characters long. Which data is boundary test data?
A username of 6 characters and one of 14 characters
A test plan includes a test that enters the text 'fifty' where a whole number is expected. What is the expected result?
An error message is shown and the text is rejected
A program should print Pass for marks of 50 or more, but it prints Fail for a mark of 50. Which change fixes the logic error?
Change mark > 50 to mark >= 50
A program accepts a whole number from 1 to 10. Which input is invalid test data?
0
Every module of a program is tested as it is written and each one works correctly on its own. Why is final testing still needed?
To check that the modules work correctly together
Which column of a test plan records what the program did when a test was carried out?
Actual result
Why is a program tested with invalid and erroneous data as well as with normal data?
To check it copes with unexpected input without crashing
A programmer fixes an error found by a test and reruns that test, which now passes. What should the programmer do next?
Rerun all of the earlier tests as well
A program passes every test in its test plan. What does this show?
It worked for the data that was tested
A program accepts a whole number from 1 to 20. Which set of test data contains one item of each type: normal, boundary, invalid and erroneous?
0, 5, 20 and Ten
Why is a test plan written before a program is tested?
So that no part of the program is missed
A program asks for a pupil's age as a whole number from 11 to 18. Which item of test data should be used to check that the program rejects the wrong type of data?
Sixteen
A test plan shows an expected result of Pass, but when the test is run the actual result is Fail. What does this show?
The test has failed and the error must be found
We use cookies to enhance your experience. You can manage your preferences or learn more in our Cookie Policy.