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.
- A. Code generation
Why not A: “Code generation” is not correct. 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
- B. Interpreter
Why not B: “Interpreter” is not correct. 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
- C. Syntax analysis
Why not C: “Syntax analysis” is not correct. 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
- D. Symbol table ✓
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
- Identify the correct concept described as: the compiler phase that checks source code for meaningful correctne...
- Which of the following best names the concept in which the compiler phase that translates source code into an...
- Which of the following best describes Syntax analysis?
- What is the function or purpose of Intermediate code generation?
- What is the name for the compiler phase that checks whether tokens conform to the grammatical structure of the...
- The concept in which the compiler phase that improves intermediate or final code to make it run faster or use...