2.3.2 Testing Flashcards

1
Q

Testing

A

“Assessing the performance and functionality of a program under various conditions to make sure it works. Programmers need to consider all the devices the program could be used on and what might cause it to crash.”

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

Iterative testing

A

“Each module of a program is tested as it is developed.”

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

Syntax error

A

“Rules of the language have been broken, so the program will not run. Variables not being declared before use. Incompatible variable types (e.g., sum = A); using assignments incorrectly (e.g., 2 + 2 = x); keywords misspelt (e.g., PRNT(“Hello”)).”

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

Logical error

A

“The program runs but does not give the expected output. Division by zero. Infinite loop. Memory full. File not found.”

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

Test data

A

“Values used to test a program – normal, boundary and erroneous.”

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

Test data: Normal

A

“Data supplied to a program that is expected. Using a program written to average student test scores as an example, if allowed scores are 0 – 100, normal test data would include all the numbers within that range.”

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

Test data: Boundary

A

“Data supplied to a program designed to test the boundaries of a problem. Using a program written to average student test scores as an example, if allowed scores are 0 – 100, boundary test data could be -1, 0, 1, 99, 100 and 101.”

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

Test data: Invalid

A

“Data of the correct type but outside accepted validation limits. Using a program written to average student test scores as an example, if allowed scores are 0 – 100, invalid test data could be -5, 150, etc.”

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

Test data: Erroneous

A

“Data of the incorrect type that should be rejected. Using a program written to average student test scores as an example, if allowed scores are 0 – 100, erroneous data might be the string “hello”, the real number 3.725, etc.”

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