How is a compiler distinguished from an interpreter?
A. An interpreter translates an entire program and then executes it while a compiler translates and executes one line of a program at a time.
B. A compiler does not translate programs, but an interpreter does.
C. An interpreter does not translate programs, but a compiler does.
D. A compiler translates an entire program and then executes it while an interpreter translates and executes one line of a program at time.

Respuesta :

D. A compiler takes a program and translates it to assembly language, then executes it. An interpreter translates, executes, translates the next line, executes, etc...

Answer:

A compiler translates an entire program and then executes it while an interpreter translates and executes one line of a program at time

Explanation: