Validation & Testing Flashcards

1
Q

What is a syntax error?

A

Syntax errors are errors in the use of the coding language itself

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

What is a runtime error?

A

Runtime errors are errors where the coding language is asked to do something that it cannot do

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

What is a logic error?

A
Logic errors are a broad class of errors that roughly cover all errors
that are not syntax or runtime errors

Logic errors occur when the syntax is correct and the coding
language can execute it, however the result is not what the
programmer intended

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

When debugging, how is the program tested?

A

To test the program, test cases which are a set of inputs which have a known expected output, are used.

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

When debugging, how can the source of the problem be located?

A

Reading code

Inserting print statements

Using a built-in debugger

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

State and explain the 3 types of test cases.

A

Normal: Test cases with inputs that are likely to be entered into the program on a frequent basis by a user

Abnormal: Test cases with inputs that are likely to be rarely entered into the program by a user

Extreme: Test cases with inputs that are very unlikely entered into the program by a user, but may be supplied by other sources
and could cause an error

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

What is data validation?

A

Data validation is a process to ensure that the data provided as inputs to a program conforms with specific requirements to prevent technical errors

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

State 5 data validation techniques.

A
Range Check
Format Check
Length Check
Presence Check
Check Digit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is data verification?

A

Data verification is a process in which data is checked for accuracy and consistency after data migration

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

State and explain 2 data verification techniques.

A

Double Entry: a process that asks a user to enter the required data twice

Proofreading data: a process that checks the entered data against
the existing database

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