Skip to content

Compiler Design

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.

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

More Compiler Design MCQs