Exam-style question
Try this first
Which of the following best describes a logic error?.
- A.The program cannot be translated into machine code.
- B.The program attempts an illegal operation during execution.
- C.The program executes successfully but produces an incorrect or undesired outcome.
- D.The program contains spelling mistakes in keywords.
Answer and explanation
Concise answer
The program executes successfully but produces an incorrect or undesired outcome.
Why this is correct
Logic errors involve flaws in the algorithm that lead to incorrect results, despite the program running without crashing.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
