Computer Science (Year 9)

What are the main differences between a compiler and an interpreter?

A compiler translates the entire source code into machine code before execution, while an interpreter translates source code line-by-line during execution.