Skip to content

Compiler Design

The concept in which an intermediate, platform-independent representation of source code designed to be executed by a virtual machine is best known as which of these terms?

Difficulty: Medium

About this MCQ

This Medium Compiler Design MCQ checks one syllabus fact.

The question is: “The concept in which an intermediate, platform-independent representation of source code designed to be executed by a virtual machine is best known as which of these terms?”

The accepted answer is D. Bytecode. “The concept in which an intermediate, platform-independent representation of source code designed to be executed by a virtual machine is best known as which of these terms” is answered by Bytecode (option D). Option A (“Peephole optimization”) does not match the stem; it is a near-miss used to catch incomplete recall of Bytecode. Option B (“Grammar ambiguity”) does not match the stem; it is a near-miss used to catch incomplete recall of Bytecode. Remaining alternatives (Type checking) fall outside the same rule and should be eliminated once Bytecode 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

D. Bytecode

Explanation

“The concept in which an intermediate, platform-independent representation of source code designed to be executed by a virtual machine is best known as which of these terms” is answered by Bytecode (option D). Option A (“Peephole optimization”) does not match the stem; it is a near-miss used to catch incomplete recall of Bytecode. Option B (“Grammar ambiguity”) does not match the stem; it is a near-miss used to catch incomplete recall of Bytecode. Remaining alternatives (Type checking) fall outside the same rule and should be eliminated once Bytecode 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