Program errors (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Program errors
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is debugging?

Identifying & fixing errors in code

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?

Syntax error

Which is a syntax error in Python?

Missing colon after for statement

How do IDEs typically show syntax errors?

Red underlines & error symbols

Which type of error is usually the easiest to find and fix quickly?

Syntax errors

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?

TypeError runtime error

What characterises a logic error?

Program runs but gives wrong results

In the example, what causes the off-by-one logic error?

Using < instead of <=

Which technique helps find logic errors?

Using debugger to step through code

What should you check first when debugging?

Syntax errors - quickest to fix

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

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