Designs and Testing Flashcards

1
Q

what 4 things can you do to make your program easy to maintain

A

comments
indentation
correctly named variables
subprograms

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

what is defensive design

A

when programmers try to anticipate how users will misuse their program

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

what is input validation

A

checking if data meets certain criteria before passing it into the program

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

what are the 5 validation checks

A

range
presence
format
look-up table
length

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

what is authentication

A

confirming the identity of a user before they are allowed access to data

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

what are the 2 types of errors

A

logic errors
syntax errors

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

what are the 2 types of testing

A

iterative
final/terminal

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

what is iterative testing

A

when the program is tested while it is being developed

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

what is terminal testing

A

testing the program at the end of development

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

what is iterative testing used for

A

to identify small errors which will prevent larger and more difficult errors from arising later

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

what is a test plan

A

a plan that will outline exactly what you are going to test and how

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

what is a feature of a good test plant

A

will anticipate all the potential issues

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

what are the 4 types of test data

A

normal data
boundary data
invalid data
erroneous data

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

what is boundary data

A

data that is on the limits of what the program should be able to handle

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

what is invalid data

A

inputs that are of the correct data type that should be rejected

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

what is erroneous data

A

inputs that are of the incorrect data type that should be rejected

17
Q

what are trace tables used for

A

to find logical errors

18
Q

what will the headings on a trace table

A

variables that you are testing