Pergunta de entrevista da empresa VAIX

What's the difference between a compiler and an interpreter?