Computer Science for IGCSE & O level - Software (Section 12 - No. 34)
Which statement best describes the difference between an interpreter and a compiler?
Both translate the entire program before running it.
A compiler translates the entire program at once, whereas an interpreter translates and executes the code line by line.
An interpreter is used to generate machine code, while a compiler is used for debugging.
Both translate and execute the source code line by line.
Explanation
The key difference is that the compiler translates the entire program before execution, whereas an interpreter translates and executes code line by line.
Comments (0)
