2.3 Robust Programming Flashcards

1
Q

What is validation and what does it do?

A

Validation is a check made by the computer to see if the data entered is sensible and reasonable.

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

What is anticipating misuse used for?

A

This is used to lock out the user if they type in a incorrect password 3 or more time. An example would be if someone spammed a chat, it would lock them out for a few seconds.

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

What is authentication and give examples.

A

Authentication checks to see who you say you are, e.g. fingerprint, iris, email authentication.

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

What is input sanitization?

A

Removes unwanted characters from string. Example- Dave not Dav3

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

Describe maintainability.

A

Programs are maintained to fix errors and defend against attacks.

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

What are the two types of testing?

A

Iterative and Final/Terminal

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

What is Iterative testing?

A

Iterative testing is testing the code as you create it/as you’re going along.
This could be done line by line.

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

What is terminal testing?

A

Final or terminal testing is done when you have finished coding the program. It is used to check what happens when predefined test data is entered or used in a program.

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

Give an example of a type of error.

A

Syntax, Runtime, Logic

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

What is a runtime error?

A

Runtime errors are errors which may cause program errors or the computer to crash even if there appears to be nothing wrong with the program.

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

What are syntax errors?

A

Syntax errors are mistakes in the way the code is written.

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

What are logic errors?

A

Logic errors are a bug in the program that causes it to operate incorrectly, but not to terminate or crash.

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