Testing Flashcards

(15 cards)

1
Q

Purposes of testing

A
  • Ensure a program works correctly, no matter what input has been entered by the user
  • Ensuring the user requirements have been met
  • Ensuring errors have been removed
  • Ensure 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 types of testing?

A

Iterative testing and Final testing

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

Iterative testing

A
  • Takes place during program development
  • 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
  • Takes place after development, before the program is released to the end user
  • Commences 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

What are the types of programming errors?

A

Syntax error and Logic error

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

Syntax Error

A

Mistake in the grammatical rules of the programming language e.g. incorrect spelling of a command word

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

Effect of a syntax error

A

Prevents the program from being compiled and executed

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

Logical Error

A

Mistake made by the programmer, where the program runs without crashing but will display the wrongly intended output

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

Test Data

A

Used to test whether a program is functioning correctly

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

Criteria of Test Data

A

Should cover a range of possible and incorrect and 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
11
Q

What are the 4 types of test data?

A

Normal, boundary, invalid, erroneous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
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
14
Q

Invalid data

A

Data of the correct data type that does not meet the validation rules, e.g. out of range, it should not be accepted

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

Erroneous data

A

Data of the wrong data type that the program cannot process and should not accept

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