What does Lexical analysis refer to?
Difficulty: Medium
- A. The compiler phase that checks source code for meaningful correctness, such as type consistency.
- B. The first phase of compilation that converts source code into a sequence of tokens. ✓
- C. A data structure used by a compiler to store information about variables, functions, and identifiers.
- D. A program that translates an entire source program written in a high-level language into machine code before execution.
Correct answer
B. The first phase of compilation that converts source code into a sequence of tokens.
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?
- Identify the correct concept described as: the compiler phase that checks source code for meaningful correctne...
- Semantic analysis is best defined as which of the following?
- 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...