Multiple choice

If you used the formula length + width to calculate the area of a rectangle (when it should be length x width), you would have made a _______ error.

  1. logic

  2. syntax

  3. pseudocode

  4. debugging

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A logic error occurs when the algorithm or reasoning is wrong, even if the code is syntactically correct. Using addition instead of multiplication for area is a conceptual mistake in the problem-solving approach, not a syntax violation.