Exam-style question
Try this first
Which statement correctly describes an interpreter?.
- A.It translates the entire source program before any part is run
- B.It translates and executes source code during program execution, typically statement by statement
- C.It translates only assembly language into machine code
- D.It is a utility program used only to back up files
Model answer
What a good answer should say
- It translates and executes source code during program execution, typically statement by statement
Explanation
Why this works
An interpreter translates and executes a high-level program during execution, commonly one statement at a time. Translating the entire source program before execution describes a compiler, while translating assembly language describes an assembler.
Common mistake
No common mistake is linked to this question yet.
