StudyFox

Big Idea 1: Creative Development

Open in StudyFox Free, no ads. Practice, track progress and quiz yourself in the app.

AP Computer Science Principles · Lesson 2 of 6 · 5 min read

Check your understanding

A program runs without crashing but calculates the wrong average. What kind of error is this?

  1. Syntax error
  2. Runtime error
  3. Logic error
  4. Overflow error
Show answer

Answer: C. The program runs, but its instructions produce incorrect results, so it is a logic error.