2.3 - Producing Robust Programs Flashcards

1
Q

What is the purpose of data validation?

A

To check if data entered is reasonable.

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

What are the types of data validation?

A

Range check; format check; type check; presence check; length check

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

What is data verification?

A

Double-checking if data has been entered correctly.

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

What is the purpose of authentication routines?

A

Routines to make sure a person is who they claim to be.

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

Why do programs have it so that you are locked out of an account after three incorrect password attempts?

A

Anticipating misuse: three tries is enough for the average user. But, hackers may be trying out dozens of passwords.

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

Why do programs need to be maintained?

A

So it’s easier to improve code, fix bugs or add new features. Also makes it easier for other coders to follow the program.

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

How can we make programs more maintainable?

A

Sub-programs; appropriate naming conventions (identifiers); indentation; commenting

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

What is a syntax error?

A

An error that breaks the grammatical rules of the programming language and therefore stops the program from being run.

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

What is a logic error?

A

An error that does not prevent the compiler/interpreter from running the program, but the error causes the program to not function as intended.

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

What is normal test data?

A

Data that should be accepted by a program without causing errors.

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

What is boundary test data?

A

Data of the correct type which is on the very edge of being valid.

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

What is invalid test data?

A

Data of the correct data type which should be rejected by a computer system.

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

What is erroneous test data?

A

Data of the incorrect data type which should be rejected by a computer system.

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

What is iterative testing?

A

Testing modules and parts of the program as the program is being developped.

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

What is final testing?

A

Testing the whole program at the end of the production.

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