Compiler Design

Semantic analysis is best defined as which of the following?

Correct answer

D. The compiler phase that checks source code for meaningful correctness, such as type consistency.

Explanation

Semantic analysis refers to the compiler phase that checks source code for meaningful correctness, such as type consistency.