3.2 Testing Flashcards

1
Q

What are the purposes of testing

A

‘The main purpose of testing is to ensure that a program works correctly no matter what input has been entered by the user.

Other reasons to test a program include ensuring the user requirements have been met, errors have been removed and the program
doesn’t crash while running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two types of program testing

A

. Iterative testing
. Final Testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Iterative Testing

A

Iterative testing takes place during
program development.

The programmer develops a module,
tests it and repeats this process until the
module works as expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Final Testing

A

Final testing, also known as terminal
testing, takes place after development
and before the program is released to
the end user.

This testing takes place once all modules
have been individually tested to ensure
the whole program works as originally
expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Syntax Error

A

A syntax error is a mistake in the grammar or spelling of the
program.

A syntax error will prevent the program from being compiled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Logic Error

A

A logical error is a mistake made by the programmer - the program
still works but displays the wrong output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Test Data

A

Test data is used to test whether a program is functioning correctly.

It should cover a range of possible and incorrect inputs, each designed to prove a program works or to highlight any flaws.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the three types of Test Data

A

. Normal data
. Boundary data
. Invalid data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Normal data

A

Sensible data that the program should accept and be able to process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Boundary data

A

Data at the extreme boundary of any data ranges.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Invalid data

A

Data that the program cannot process and should not accept.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly