Which term refers to a program that executes source code directly, translating and running it line by line without producing a separate executable?
Difficulty: Easy
About this MCQ
This Easy Compiler Design MCQ checks one syllabus fact.
The question is: “Which term refers to a program that executes source code directly, translating and running it line by line without producing a separate executable?”
The accepted answer is B. Interpreter. Interpreter is the person, body, or term that satisfies “Which term refers to a program that executes source code directly, translating and running it line by line without producing a separate executable” (option B). Option A (“Recursive descent parser”) does not match the stem; it is a near-miss used to catch incomplete recall of Interpreter. Option C (“Token”) does not match the stem; it is a near-miss used to catch incomplete recall of Interpreter. Remaining alternatives (Compiler) fall outside the same rule and should be eliminated once Interpreter is identified. Compiler Design questions of this type reward precise definitions rather than approximate associations. Compiler Design recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.
- A. Recursive descent parser
Why not A: “Recursive descent parser” is not correct. The accepted answer is B. Interpreter. Interpreter is the person, body, or term that satisfies “Which term refers to a program that executes source code directly, translating and running it line by line without producin
- B. Interpreter ✓
- C. Token
Why not C: “Token” is not correct. The accepted answer is B. Interpreter. Interpreter is the person, body, or term that satisfies “Which term refers to a program that executes source code directly, translating and running it line by line without producin
- D. Compiler
Why not D: “Compiler” is not correct. The accepted answer is B. Interpreter. Interpreter is the person, body, or term that satisfies “Which term refers to a program that executes source code directly, translating and running it line by line without producin
Correct answer
B. Interpreter
Explanation
Interpreter is the person, body, or term that satisfies “Which term refers to a program that executes source code directly, translating and running it line by line without producing a separate executable” (option B). Option A (“Recursive descent parser”) does not match the stem; it is a near-miss used to catch incomplete recall of Interpreter. Option C (“Token”) does not match the stem; it is a near-miss used to catch incomplete recall of Interpreter. Remaining alternatives (Compiler) fall outside the same rule and should be eliminated once Interpreter is identified. Compiler Design questions of this type reward precise definitions rather than approximate associations. Compiler Design recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- The following statement describes a specific concept. What is it called? a program that translates an entire s...
- What is the name for a top-down parsing technique that uses a set of recursive procedures to process the input...
- What is Token primarily used for?
- Which of the following best describes Recursive descent parser?
- Which concept is defined as follows: a categorized unit of meaning, such as a keyword or identifier, produced...
- Identify the correct concept described as: the final compiler phase that converts optimized intermediate code...