Correcting Errors in Algorithms and Programs (AQA GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Algorithm refinement definition
Algorithm refinement definition
The process of improving code after testing reveals errors or issues
Normal test data
Normal test data
Typical values that should work correctly
Boundary test data
Boundary test data
Values at the edges of acceptable range
Erroneous test data
Erroneous test data
Values that should be rejected
Syntax error definition
Syntax error definition
Error that breaks language rules and stops program running
Logic error definition
Logic error definition
Code runs but produces wrong results
Effect of syntax errors
Effect of syntax errors
Program won't run at all
Effect of logic errors
Effect of logic errors
Program runs but gives incorrect results
Why are syntax errors easy to spot?
Why are syntax errors easy to spot?
They stop the program from running
What to do after code changes
What to do after code changes
Always retest the code
Syntax vs logic errors
Syntax vs logic errors
Syntax stops running; logic gives wrong results
Three types of test data
Three types of test data
Normal, boundary, and erroneous
