Skip to content

Compiler Design

A data structure used by a compiler to store information about variables, functions, and identifiers. What is this concept called?

Difficulty: Hard

About this MCQ

This Hard Compiler Design MCQ checks one syllabus fact.

The question is: “A data structure used by a compiler to store information about variables, functions, and identifiers. What is this concept called?”

The accepted answer is D. Symbol table. “A data structure used by a compiler to store information about variables, functions, and identifiers. What is this concept called” is answered by Symbol table (option D). Option A (“Code generation”) does not match the stem; it is a near-miss used to catch incomplete recall of Symbol table. Option B (“Interpreter”) does not match the stem; it is a near-miss used to catch incomplete recall of Symbol table. Remaining alternatives (Syntax analysis) fall outside the same rule and should be eliminated once Symbol table 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. Symbol table

Explanation

“A data structure used by a compiler to store information about variables, functions, and identifiers. What is this concept called” is answered by Symbol table (option D). Option A (“Code generation”) does not match the stem; it is a near-miss used to catch incomplete recall of Symbol table. Option B (“Interpreter”) does not match the stem; it is a near-miss used to catch incomplete recall of Symbol table. Remaining alternatives (Syntax analysis) fall outside the same rule and should be eliminated once Symbol table 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