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
Answer and explanation
Concise answer
It translates and executes source code during program execution, typically statement by statement
Why this is correct
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.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
