Programme Testing Flashcards

1
Q

What is testing?

A

Testing is the process of running a program to try and ascertain if the program is working as intended.

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

what are the 3 considerations needed when finding how well a program is built?

A

Protection against unexpected user inputs or actions, authenticating that users on a computer system are who they say they are, minimising or removing errors and bugs.

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

What are the main classes of error?

A

Syntax error, runtime error and logic error.

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

What are syntax errors?

A

Syntax errors occur when the code given does not follow the syntax rules of a particular language program.

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

What are some non-exhaustive reasons for syntax errors?

A
  • misspelling keywords or statements
  • missing or incomplete pairs of parantheses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are logic errors?

A

A logic error is an error that causes a program to not accomplish its intended and expected goal.

Unlike a syntax error, the logic error does not stop the program from running. The program will run, but not deliver the intended outcome as expected.

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

What are some reasons that result in logic errors?

A
  • Incorrect program design
  • Using the same identifier name for different purposes
  • Incorrect range used in terminating conditions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are run time errors?

A

They are errors that occur during the execution of a program.

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

What are some reason for run time errors?

A
  • Performing an operation on incompatible types
  • Performing an incorrect mathematical equation
  • Reading a file that does not exist
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Is a syntax error considered a run time error?

A

No. At the complication stage, the syntax errors are detected as the process would fail without proceeding to the next stage. However, run time errors happen at any time throughout the stages.

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

What is test data?

A

Test data is data that is used to test if a program is functioning as it is intended to be.

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

What are the different types of test data?

A

Normal (valid data), boundary (extreme data), abnormal (erroneous data)

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

What is normal test data?

A

It is typical data values that are valid.

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

What is boundary test data?

A

It is test data at the upper or lower limits of expectations that should be accepted by the system.

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

What is abnormal test data?

A

It is data values that the system should fail or not accept.

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

What are some factors to consider in the design of test plans?

A

The requirements of the system, the performance of the system against the original design, the pathways through the system, validation routes.

17
Q

What is a desk check / dry run?

A

It is the process of using data chosen by the checker to trace through the logic of the algorithm keeping track and recording the values of variables and printed output in a trace table with an intention to identify potential logic errors.

18
Q

What is a trace table?

A

It is a table with a column for each variable that records their changing values.

19
Q

What are the advantages of desk checking?

A
  • Running a desk check is quick and inexpensive
  • Allows the programmer to code the algorithm and at the same time perform checks on his algorithm so that errors can be sifted out
20
Q

What are the disadvantages of desk checking?

A
  • Desk check is subjected to human error too
  • A desk check does not guarantee that a programmer will find mistakes
  • Getting another individual to perform checking on an algorithm requires time for the checker to first understand the algorithm