Identify the correct concept described as: the compiler phase that checks source code for meaningful correctness, such as type consistency.
Difficulty: Hard
About this MCQ
This Hard Compiler Design MCQ checks one syllabus fact.
The question is: “Identify the correct concept described as: the compiler phase that checks source code for meaningful correctness, such as type consistency.”
The accepted answer is C. Semantic analysis. “Identify the correct concept described as: the compiler phase that checks source code for meaningful correctness, such as type consistency.” is answered by Semantic analysis (option C). Option A (“Token”) does not match the stem; it is a near-miss used to catch incomplete recall of Semantic analysis. Option B (“Symbol table”) does not match the stem; it is a near-miss used to catch incomplete recall of Semantic analysis. Remaining alternatives (Lexeme) fall outside the same rule and should be eliminated once Semantic analysis 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. Token
Why not A: “Token” is not correct. The accepted answer is C. Semantic analysis. “Identify the correct concept described as: the compiler phase that checks source code for meaningful correctness, such as type consistency.” is answered by Semantic analysis (opti
- B. Symbol table
Why not B: “Symbol table” is not correct. The accepted answer is C. Semantic analysis. “Identify the correct concept described as: the compiler phase that checks source code for meaningful correctness, such as type consistency.” is answered by Semantic analysis (opti
- C. Semantic analysis ✓
- D. Lexeme
Why not D: “Lexeme” is not correct. The accepted answer is C. Semantic analysis. “Identify the correct concept described as: the compiler phase that checks source code for meaningful correctness, such as type consistency.” is answered by Semantic analysis (opti
Correct answer
C. Semantic analysis
Explanation
“Identify the correct concept described as: the compiler phase that checks source code for meaningful correctness, such as type consistency.” is answered by Semantic analysis (option C). Option A (“Token”) does not match the stem; it is a near-miss used to catch incomplete recall of Semantic analysis. Option B (“Symbol table”) does not match the stem; it is a near-miss used to catch incomplete recall of Semantic analysis. Remaining alternatives (Lexeme) fall outside the same rule and should be eliminated once Semantic analysis 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
- What is the name for the compiler phase that checks whether tokens conform to the grammatical structure of the...
- A data structure used by a compiler to store information about variables, functions, and identifiers. What is...
- What does Lexical analysis refer to?
- Choose the correct description of Symbol table.
- Which term refers to the first phase of compilation that converts source code into a sequence of tokens?
- Which of the following best names the concept in which the compiler phase that translates source code into an...