Validation & Testing Flashcards
What is a syntax error?
Syntax errors are errors in the use of the coding language itself
What is a runtime error?
Runtime errors are errors where the coding language is asked to do something that it cannot do
What is a logic error?
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
When debugging, how is the program tested?
To test the program, test cases which are a set of inputs which have a known expected output, are used.
When debugging, how can the source of the problem be located?
Reading code
Inserting print statements
Using a built-in debugger
State and explain the 3 types of test cases.
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
What is data validation?
Data validation is a process to ensure that the data provided as inputs to a program conforms with specific requirements to prevent technical errors
State 5 data validation techniques.
Range Check Format Check Length Check Presence Check Check Digit
What is data verification?
Data verification is a process in which data is checked for accuracy and consistency after data migration
State and explain 2 data verification techniques.
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