What is Token primarily used for?
- 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.
Explanation
Token refers to a categorized unit of meaning, such as a keyword or identifier, produced during lexical analysis.