Difficulty: Easy
Correct Answer: A program that appears to execute a source program directly, as if it were machine language
Explanation:
Introduction / Context:Translators differ in how they turn source code into actions. Interpreters execute statements directly, while compilers produce target code first. This question tests your understanding of the interpreter's operational model.
Given Data / Assumptions:
Concept / Approach:
Step-by-Step Solution:
Match definition to behavior: direct execution of source/bytecode → interpreter.Eliminate other roles based on their distinct outputs.Verification / Alternative check:
Examples: CPython interprets bytecode; many shells interpret commands line-by-line.Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
A program that appears to execute a source program directly, as if it were machine language
Discussion & Comments