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:

  1. A.

    A, B, C, D

  2. B.

    B, A, C, D

  3. C.

    C, B, A, D

  4. 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.

Explore the full course: Mppsc Assistant Professor