2.3 Producing Robust Programs Flashcards

1
Q

What is input sanitization?

A

Removes any unwanted characters that have been entered into a program

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

What is Input Validation?

A

Checks if the data meets certain criteria before passing it through the program

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

What is a Presence check?

A

Checks that data has been entered

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

What is Length Check?

A

Checks if the data is the correct length

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

What is Range Check?

A

Checks if the data is within a set range

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

What is Format Check?

A

Checks it’s in the correct format

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

What is Check digit?

A

Checks numerical data is entered correctly

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

What is a Look-up table?

A

Checks against a table of accepted values

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

What is Authentication?

A

Where a program confirms the identity of a user before giving them access to the full program

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

What is Maintainability?

A

Code that has been well maintained is easy to edit without causing errors

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

What is the purpose of comments?

A

Can help other programmers understand the code, as well as appropriate name for variables and sub programs

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

What is the purpose of indentation?

A

It is easy for programmers to see the flow of the program

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

What is Final testing?

A

The program goes us tested once at the end of development

Everything is tested in one go

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

What is Iterative Testing?

A

A program is tested and then changes are made as it goes through the development cycle again

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

What is Normal data?

A

Data which should be accepted by a program

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

What is Extreme/Boundary data?

A

Data on the limit of what should be accepted

17
Q

What is Erroneous data?

A

Data that should not be accepted at all

18
Q

What is a Syntax error?

A

Something which doesn’t fit the rules or grammar of the programming language

19
Q

What is a Logic error?

A

The program runs but not as expected