In computer science, Lexeme refers to which of the following?
- A. The compiler phase that improves intermediate or final code to make it run faster or use fewer resources.
- B. A program that translates an entire source program written in a high-level language into machine code before execution.
- C. A sequence of characters in source code that matches the pattern for a token. ✓
- D. A tree representation showing the syntactic structure of source code according to grammar rules.
Correct answer
C. A sequence of characters in source code that matches the pattern for a token.
Explanation
Lexeme refers to a sequence of characters in source code that matches the pattern for a token.