Question: 1. what is the difference between a compiler and an interpreter?
Answer: Interpreters and compilers are very similar in structure. The main difference is that an interpreter directly executes the instructions in the source programming language while a compiler translates those instructions into efficient machine code.