Answer:
Option A is correct answer, which is, an interpreter translates and executes code line by line, while a compiler translates all code at once so that it is ready to be executed at any time.
Further Explanation
• Both, compiler and interpreter used to run program with few differences like interpreter executes line by line while compiler runs program at once.
• If there is no error in the program then compiler will convert source code into machine code which runs faster as compared to interpreters.
• Interpreters executes code run line by line if error occurs, it must be rectified before proceeding to next line while compilers runs whole code.
Answer details
Grade: Middle
Subject: Computers and Technology
Keywords: compiler, interpreter, code execution etc