robust programing Flashcards

1
Q

what is data validation

A

validation is a check made by a computer to ensure that the data entered is sensible or reasonable

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

can data validation correct mistakes

A

no

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

what is data sanitisation

A

this automatically corrects you code

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

how is input sanitisation different to validation.

A

it is different because it only checks for what is wrong and notifies you unlike input sanitisation which makes changes to the problem

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

what is maintainability.

A

if a program is to be defensive against attacks then is has to be maintained and up to date.

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 is testing the code as you create it

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

what is an syntax error

A

error in which the code is written

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

what is a logic error

A

when your program doesn’t run how you want it to

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

name three different types o authentication

A

key cards
email
administrator

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

name there types of data validation

A

incorrect username
incorrect password
wrong birth date

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

how can you mitigate misuse

A
  • limiting the log on attempts
  • ensuring the code is robust in validating the cade entered
  • another method used is authentication.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is a presence check

A

checks that data has been entered into a field

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

range check

A

checks that a value falls within the specified range

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

what is a spell check

A

looks up word in a dictionary

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

what is a format check

A

checks the data isn’t too short or too long

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

what is a look up table

A

looks up acceptable values in a table

17
Q

what is a check digit

A

the last one or two digits in a code are used to check. The other digits are correct