Save
...
Paper 2
Producing Robust Programs
Testing
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Caylin Hindle
Visit profile
Cards (22)
What is the main purpose of testing a program?
To ensure the program works
correctly
View source
Why is it important to test a program?
To meet user
requirements
and remove
errors
View source
What is iterative testing?
Testing
during program
development
View source
What occurs during iterative testing?
The
programmer
tests and modifies the
module
View source
What is final testing also known as?
Terminal testing
View source
When does final testing take place?
After
development
and before
release
View source
What is a syntax error?
A mistake in
grammatical
rules
View source
What happens when a syntax error occurs?
The program cannot be
compiled
or
executed
View source
Give an example of a syntax error.
Incorrect spelling:
pront
("hello")
View source
What is a logical error?
A mistake that produces
incorrect
output
View source
How does a logical error affect a program?
The program runs but gives
wrong results
View source
Give an example of a logical error.
Incorrect
calculation
: total =
num1
-
num2
View source
What is test data used for?
To test if a
program
functions correctly
View source
What should test data cover?
A range of
possible
and
incorrect
inputs
View source
What are the four types of test data?
Normal data
: Sensible data the program accepts
Boundary data
: Data at extreme boundaries
Invalid data: Correct type but fails validation
Erroneous data
: Wrong type that cannot be processed
View source
What is normal data?
Sensible data the
program
should accept
View source
What is boundary data?
Data at the
extreme
boundary of ranges
View source
What is invalid data?
Correct type but does not meet
validation
View source
What is erroneous data?
Data of the wrong
data type
View source
Why should erroneous data not be accepted?
It cannot be processed by the
program
View source
What is the purpose of defensive design theory?
To anticipate and mitigate
potential
errors
View source
What is Boolean logic used for in programming?
To create
true/false
conditions
View source