What is Token primarily used for?
Difficulty: Medium
- A. The compiler phase that improves intermediate or final code to make it run faster or use fewer resources.
- B. A data structure used by a compiler to store information about variables, functions, and identifiers.
- C. The compiler phase that translates source code into an intermediate representation before final code generation.
- D. A categorized unit of meaning, such as a keyword or identifier, produced during lexical analysis. ✓
Correct answer
D. A categorized unit of meaning, such as a keyword or identifier, produced during lexical analysis.
Correct answer
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- Which statement correctly explains Parse tree?
- Select the accurate description of Compiler.
- Select the correct name for: a tree representation showing the syntactic structure of source code according to...
- Which term refers to a program that executes source code directly, translating and running it line by line wit...
- In computer science, Lexeme refers to which of the following?
- What does Interpreter refer to?