Identifying Syntax and Logic Errors (AQA GCSE Computer Science): Flashcards

📚Flashcards
Identifying Syntax and Logic Errors
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

15 cards from this deck

Show

What is a syntax error?

Breaking the rules of the programming language

What happens when a syntax error occurs

Program stops and won't run at all

What is a logic error?

Code follows rules but doesn't do what was intended

What happens when a logic error occurs

Program runs but produces incorrect results

Which error type is easier to spot

Syntax errors - program won't start

Which error type is harder to detect

Logic errors - program appears to work fine

Give examples of syntax errors

Misspelled keywords, wrong assignment, missing punctuation

What causes logic errors

Flawed thinking in algorithm design

What are the three types of test data?

Normal, boundary, and erroneous

What is normal test data?

Typical values users would normally enter

What is boundary test data?

Values at the edges of what should be acceptable

What is erroneous test data?

Invalid values that should be rejected

What is the best way to find errors in code?

Systematic testing with different types of test data

What catches syntax errors

The programming environment immediately

How logic errors are found

Through careful testing only

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.