Arrange the following tasks of Lexical Analyzer in correct sequence: A. Token…
2026
Arrange the following tasks of Lexical Analyzer in correct sequence:
A. Token Generation.
B. Removal of comments/White space.
C. Buffering and reading source characters.
D. Return token stream to parser.
Choose the correct answer from the options given below:
- A.
A, B, C, D
- B.
B, A, C, D
- C.
C, B, A, D
- D.
B, A, D, C
Attempted by 136 students.
Show answer & explanation
Correct answer: C
The correct sequence of tasks in a Lexical Analyzer is: C. Buffering and reading source characters, B. Removal of comments/White space, A. Token Generation, D. Return token stream to parser.