Computer Science for IGCSE & O level - Software (Section 10 - No. 50)

What is the primary difference between a compiler and an interpreter?
A compiler translates code line by line, while an interpreter translates the whole code at once.
A compiler translates the whole code at once, while an interpreter translates code line by line.
A compiler is only used for low-level languages, while an interpreter is used for high-level languages.
A compiler is used for the user, and an interpreter is used by the system

Explanation

A compiler translates the entire source code into machine code at once, whereas an interpreter translates and executes the code line by line.

Comments (0)

Advertisement