A compiler differs from an interpreter because a compiler:
Correct answer: D. Translates the whole program at once before running it
A compiler converts the whole source program into machine code ahead of time. An interpreter translates and runs it one statement at a time.
medium