Program errors (Edexcel GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is debugging?
What is debugging?
Identifying & fixing errors in code
What are the three main categories of program errors?
What are the three main categories of program errors?
Syntax, runtime, logic
What type of error occurs when you break the grammar rules of a programming language?
What type of error occurs when you break the grammar rules of a programming language?
Syntax error
Which is a syntax error in Python?
Which is a syntax error in Python?
Missing colon after for statement
How do IDEs typically show syntax errors?
How do IDEs typically show syntax errors?
Red underlines & error symbols
Which type of error is usually the easiest to find and fix quickly?
Which type of error is usually the easiest to find and fix quickly?
Syntax errors
What happens when a runtime error occurs?
What happens when a runtime error occurs?
Program starts then crashes at error
What type of error occurs when adding a number to a letter in Python?
What type of error occurs when adding a number to a letter in Python?
TypeError runtime error
What characterises a logic error?
What characterises a logic error?
Program runs but gives wrong results
In the example, what causes the off-by-one logic error?
In the example, what causes the off-by-one logic error?
Using < instead of <=
Which technique helps find logic errors?
Which technique helps find logic errors?
Using debugger to step through code
What should you check first when debugging?
What should you check first when debugging?
Syntax errors - quickest to fix
