data validation / verification / security / errors / testing Flashcards

1
Q

data validation definition

A

checks if data conforms to a set of specific requirements (to avoid errors)

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

data validation methods

A

length check
range check
format check
presence check
check digit

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

types of error that check digits usually detect

A

letter/digit errors (eg. I <—> 1)
single-digit errors (eg. 1 <—> 2)
transposition errors (eg. 21 <—> 12)

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

data verification definition

A

ensures data entered is what user intended

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

data verification methods

A

double entry
proof-reading data
checksum

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

how should data backups be carried out

A
  • carried out regularly (so that backups not too outdated)
  • shld be stored offsite by copying info to physical storage like hard disk (so tht disasters causing loss of org data unlikely to affect backup)
  • shld be tested regularly to ensure that backups can be restored wo error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

why backup?

A
  • in case of catastrophic data loss, can restore data from most recent data backup
  • minimises disruption to business operations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

why archive?

A
  • to free up storage resources for frequently used data
  • done by archiving data to cheaper storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

name the 3 errors

A
  • syntax error
  • runtime error
  • logic error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

give 3 examples of runtime error

A
  • infinite loop, keep repeating code till it crashes / memory runs out
  • infinite recursion, keep calling itself with (changes to parameter) till it crashes / memory runs out
  • input too large in recursion, max recursion limit exceeded / stack overflow (call stack runs out of memory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

why didnt data testing identify error that occurred during runtime?

A
  • duration of the test is not long enough
  • way of testing is incorrect / insufficient

application: if crash due to too much memory used –> data testing neglected some parts of the program bc usually only test if output right/wrong but X test how much memory it uses

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

why infinite while loop occurs?

A
  • program X reach terminating condition whr (state condition)
  • (why X reach terminating condition) bc val (in condition) is not decremented/incremented
How well did you know this?
1
Not at all
2
3
4
5
Perfectly