Identifying Syntax and Logic Errors (AQA GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
15 cards from this deck
ShowHide
Practise the cards
15 cards from this deck
What is a syntax error?
What is a syntax error?
Breaking the rules of the programming language
What happens when a syntax error occurs
What happens when a syntax error occurs
Program stops and won't run at all
What is a logic error?
What is a logic error?
Code follows rules but doesn't do what was intended
What happens when a logic error occurs
What happens when a logic error occurs
Program runs but produces incorrect results
Which error type is easier to spot
Which error type is easier to spot
Syntax errors - program won't start
Which error type is harder to detect
Which error type is harder to detect
Logic errors - program appears to work fine
Give examples of syntax errors
Give examples of syntax errors
Misspelled keywords, wrong assignment, missing punctuation
What causes logic errors
What causes logic errors
Flawed thinking in algorithm design
What are the three types of test data?
What are the three types of test data?
Normal, boundary, and erroneous
What is normal test data?
What is normal test data?
Typical values users would normally enter
What is boundary test data?
What is boundary test data?
Values at the edges of what should be acceptable
What is erroneous test data?
What is erroneous test data?
Invalid values that should be rejected
What is the best way to find errors in code?
What is the best way to find errors in code?
Systematic testing with different types of test data
What catches syntax errors
What catches syntax errors
The programming environment immediately
How logic errors are found
How logic errors are found
Through careful testing only
