Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

62. What distinguishes a compiler from an interpreter?
Options
A Interpreters convert the entire program at once
B Compilers execute one line at a time
C Compilers convert the full program to machine language in one go
Correct Answer
D Interpreters are used only in operating systems
Correct Answer

Option C is the correct answer.

Detailed Explanation

Compilers translate the entire source code into machine code before execution; interpreters translate and execute line-by-line.

Hint

Compiler: whole program at once.

Question Info