Errors that can occur in programs (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Errors that can occur in programs
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 a programming error?

A mistake that stops the program working

How many main categories of programming errors are there?

Three

Why are syntax errors the easiest type to fix?

Computer tells you exactly where it is

Which is an example of a syntax error?

Misspelling 'print' as 'pritn'

What causes a syntax error?

Breaking the programming language rules

When do runtime errors appear?

Only when the program is running

Which is an example of a runtime error?

Accessing index 5 in a 3-item list

What happens when a runtime error occurs?

Program typically crashes

Why are logic errors the most challenging to find?

No error messages appear

Why can't the computer help find logic errors?

It's doing exactly what you told it

Which debugging technique helps find logic errors?

Using print statements to see values

In the worked example, what should 'numbMarks' be initialized to?

0

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

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