T8 - Errors and testing Flashcards

1
Q

A syntax error:

A

-code written doesn’t conform to the rules of the language
cannot be run until fixed

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

Why do syntax errors display

A

The compiler doesn’t know how to translate the program into machine code

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

Logical error:

A

The program will run, but it won’t work as the programmer intended

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

A trace table is useful for:

A

Determining the purpose of an algorithm
Finding the output of an algorithm
Finding errors in an algorithm

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

To draw a trace table, :

A

make a column for each variable used, in order
You don’t need to fill in a value for a variable which does not change in a particular row

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

Codes are tested with:

A

Normal data
Boundary data
Invalid data
Erroneous data

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

Normal data:

A

5 (checks a single digit), 14 (checks two digits)

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

Boundary data:

A

1 (checks lowest valid data), 100 (checks highest valid data)

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

Invalid data:

A

-50 (checks negative numbers), 173 (checks data of the correct type that is invalid), 0 (checks just below lower boundary), 101 (checks just above upper boundary)

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

Erroneous data

A

“ade”, “#$” (checks data of the wrong type
is rejected)

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

Iterative testing

A

tests modules and parts of a program as the program is developed

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

The programmer during iterative testing

A

the programmer will usually test the code with knowledge of how it works

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

iterative testing pro

A

quicker
less hassle to find errors

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

Final testing

A

tests the whole program at the end of production

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

final testing aka

A

terminal testing

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

final testing works

A
  • may be tested by the programmer
  • tests entire program = aren’t sure of outputs yet