Semantic analysis is best defined as which of the following?
Difficulty: Hard
- A. The first phase of compilation that converts source code into a sequence of tokens.
- B. A top-down parsing technique that uses a set of recursive procedures to process the input grammar.
- C. A tree representation showing the syntactic structure of source code according to grammar rules.
- D. The compiler phase that checks source code for meaningful correctness, such as type consistency. ✓
Correct answer
D. The compiler phase that checks source code for meaningful correctness, such as type consistency.
Correct answer
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- Which of the following best describes Syntax analysis?
- Choose the correct description of Symbol table.
- What is the name for the compiler phase that checks whether tokens conform to the grammatical structure of the...
- Which of the following best names the concept in which the compiler phase that translates source code into an...
- What does Lexical analysis refer to?
- What is the function or purpose of Intermediate code generation?