Testing and Running a Solution Flashcards
(21 cards)
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
What do translator diagnostics do?
Useful for finding syntax errors and logic errors. A message is generated when converting the source code to executable code.
What are breakpoints?
Program halts at a specific marker. The program can then check the values of variables
What are variable checks?
Outputting the value of the variables at specific points or when they change
What is a dry run?
Goes through the code line by line often using a trace table. This provides a systematic way of recording.
What is the 3 steps are needed when installing a written program?
Needs to be converted into executable object code that the computer can understand
Make sure that the program will run correctly
To install the program you must set the program to run on the end users computer by copying the executable and setting up and files and user options.
What functions are carried out by the automatic installation routine?
Copy the executable program
Copy or prepare any data files
Copy any library files
Make the program easy to access by setting up icons and shortcuts
Initial configuration of user preference settings in the program