A program runs without crashing but gives the wrong answer. This is a:

  1. Compiler error
  2. Syntax error
  3. Run-time error
  4. Logical error
Answer

D) Logical error

Logic errors are found by testing and dry runs, not by the interpreter. SLO CS-11-C-07 · Understanding

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise