Q1.EASY
What is a compiler and how is it different from an interpreter?
A compiler translates the entire source program into target code before execution, while an interpreter executes the source program line by line. Compilers generally produce faster executable code but require more memory and time for translation.