2.3.2 - Testing Flashcards

1
Q

What is the purpose of testing?

A

To ensure that a program runs without errors, does what is expected and meets user requirements.

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

Iterative testing is…

A

regular testing a small section of the code during development to see if it works. Done during development of the code until it works exactly how the programmer wants it to

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

Final/Terminal testing is…

A

Carried out during the end of development once the code is believed to be complete and iterative tesing has been done on all the parts

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

What is a syntax error?

A

Not following the grammatical rules of the programming language. This means the program can’t be run and an error is reported by the IDE

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

What can a syntax error be caused by

A
  • Missing brackets
  • Misspelling terms e.g print as pint
  • Not declaring variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a logical error?

A

A mistake in a calculations or comparison that leads to an unexpected output. The program will still run however.

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

What is normal test data?

A

Sensible data that lies within the test range. It should be accepted into a program with no errors.

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

What is boundary test data?

A

The upper and lower limits of valid data (data on the edges of the valid range)

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

What is invalid test data?

A

Data of the correct type, but outside the validation limit (range)

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

What is erroneous data?

A

Data of the incorrect type, which will be rejected by the system e.g. a string in an integer input

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

examples of logic errors

A
  • Using AND and OR wrong
  • Using < and > wrong
  • MAking an infinite loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly