Testing and Running a Solution Flashcards
What is a syntax error?
The statement in the code doesn’t follow the rules of the language. It is usually detected by a translator and the program will not be complied
What are common syntax errors?
Missing/extra brackets
Misspelling variables
Missing parts of a multiline statement
What is a logic error?
The syntax code is correct but the code doesn’t do what it is intended to do. This is usually detected while testing. It as sometimes cause a run-time error.
What are common logic errors?
Incorrect mathematical formula
Misplaced brackets
Instructions written in the wrong order
Incorrect conditions provided for loops
What is a run-time error?
The syntax and the logic of the code are correct but an extreme circumstance has caused the program to crash as it has attempted an impossible operation. This is usually detected while testing.
What are common run-time errors?
Division by 0
Calculating square root of a negative number
Overflow error
Stack overflow error
What is valid data?
Data that you would normally expect the user to input
What is invalid data?
Data that should generate and error message
What is borderline data?
Data that lies at the boundaries between different cases
What is black box testing?
Tests the input to see if the output is expectedTests, valid, invalid and boundries
What is white box testing?
Algorithm is tested. Every possible path or route is executed
What is alpha testing?
Testing carried out by a restricted group within the company. Any bugs are reported and fixed
What is beta testing?
Program is released to potential users outside the company, if any bugs still exist these are reported to the company
What is acceptance testing?
Complete and demonstrated to the user and show that it works correctly. Program is tested against the requirements
How can you identify an error within code?
Translator diagnostics
Breakpoints
Variable checks
Dry runs