Skip to content

Compiler Design

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.

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

More Compiler Design MCQs