Errors and Testing Flashcards

1
Q

what is iterative testing?

A

testing the code as you create it, altering as required

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

what are the three types of error?

A

syntax,runtime,logic

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

what are logic errors?

A

a bug that causes a program to operate incorrectly but not crash, so it gives unintended results

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

what is a runtime error?

A

an error that causes the program to crash even if there’s nothing wrong with the code, only detected when the program is run, eg run out of memory, infinite recursion

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

what does gigo stand for?

A

garbage in garbage out

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

what is casting?

A

changing the data type of a variable

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

what is initialising?

A

giving a variable a value when it is created

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

what is assignment?

A

changing a variable’s value

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

what is a transcription/transposition error?

A

errors in transferring data onto a computer

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

how can data entry errors occur?

A

-errors in source doc
-transcription/transposition errors

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

what is verification? (not abt passwords)

A

the process of checking data to make sure that it has been transferred accurately

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

list some verification methods

A

double entry - eg password entry
proof reading- looking at hard copy and comparing

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

what can incorrect data lead to?

A

loss of income, loss of reputation, legal ramifications, incorrect processing

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

why is it important to check data?

A

important to any organization to make sure that the data they are processing is as accurate as possible

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

are strings primitive data types?

A

yes

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

can verification detect errors in the source document?

A

no

17
Q

can validation detect errors in the source doc?

A

yes

18
Q

what is validation and how is it different to verification?

A

the process to make sure data is sensible and valid, can be done by the computer on input. used to check data against rules. can find source doc errors.

19
Q

list 5 types of validation

A

length check: is the data the expected length?
range check: is the data a sensible amount?
lookup check: does the data exist somewhere else? eg. a title like mr, ms, prof, etc.
format check: eg is it dd/mm/yy
presence check: is it there?