A compiler differs from an interpreter because a compiler:

  1. cannot detect errors
  2. runs one line at a time
  3. only works for Python
  4. translates the whole program before it runs
Answer

D) translates the whole program before it runs

Compilers translate the complete program into machine code first. SLO CS-11-C-01

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