Physics I / Debugging and validation
Practice question · Sort into groups

Sort these errors by category.

Groups: Syntax Error · Logic Error · Runtime Error

Hints
  1. Ask whether the program refuses to start, crashes, or quietly misbehaves.
  2. A silently wrong result belongs in its own category.
Show the answer

Syntax Error: Forgetting a closing parenthesis, Misspelling a keyword

Logic Error: Using < instead of <=, Infinite loop due to wrong update

Runtime Error: Accessing index beyond list length

Why

Identifying the error category guides the debugging strategy.

Read the lesson: Debugging and validation →

Practise Debugging and validation

The app has 9 more questions on this lesson, and keeps your place in the course. Physics I is free to start.

More questions on Debugging and validation