Which of the following best describes Syntax analysis?
Difficulty: Medium
- A. A top-down parsing technique that uses a set of recursive procedures to process the input grammar.
- B. A program that translates an entire source program written in a high-level language into machine code before execution.
- C. The compiler phase that checks whether tokens conform to the grammatical structure of the language. ✓
- D. A tree representation showing the syntactic structure of source code according to grammar rules.
Correct answer
C. The compiler phase that checks whether tokens conform to the grammatical structure of the language.
Correct answer
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- What does Lexical analysis refer to?
- Semantic analysis is best defined as which of the following?
- Which term refers to the first phase of compilation that converts source code into a sequence of tokens?
- A data structure used by a compiler to store information about variables, functions, and identifiers. What is...
- Choose the correct description of Symbol table.
- Which of the following best names the concept in which the compiler phase that translates source code into an...