2.3.2 Testing Flashcards

1
Q

What is the purpose of testing? [3]

A

Check the program meets the user requirements [1] Check the program works as intended [1] Check the program doesn’t crash when invalid values are entered [1]

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

What are the two times you can test a program? [2]

A

Iterative - during development. Testing while making changes [1] Final - when development is complete. [1]

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

What are the three types of test? [3]

A

Normal - valid data [1] Boundary - the edges of the valid data [1] Erroneous - invalid data [1]

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

What is a syntax error? [1]

A

An error that breaks the rules of the programming language [1]

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

What is a logic error? [2]

A

An error that will not stop the code from running [1] but produces an unexpected outcome [1]

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