2.3 Producing robust programs Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are the defensive design considerations

A

Anticipating misuse
Authentication

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

How do you maintain a program

A

Use subroutines
Name variables reasonably
Indentation
Commenting

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

What is the difference between iterative and final testing

A

Iterative - testing while making the program
Final - testing after the code is complete

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

What is the difference between syntax and logic errors

A

Syntax - the program will crash when you run it
Logic - the program will run but it won’t give you the desired result

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

What are the types of test data

A

Normal - what you expect the user to enter and be accepted
Invalid - what the user enters and will be rejected
Boundary - values that are just inside the boundary that should be accepted, and values just outside the boundary that should not be accepted

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