109k views
2 votes
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.

2 Answers

1 vote

Answer:

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

Step-by-step explanation:

User Mathijs Rutgers
by
7.9k points
4 votes
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...
User Lisyarus
by
8.3k points