The output of a lexical analyzer is

2017

The output of a lexical analyzer is

  1. A.

    A parse tree

  2. B.

    Intermediate code

  3. C.

    Machine code

  4. D.

    A stream of tokens

Attempted by 379 students.

Show answer & explanation

Correct answer: D

The lexical analyzer is the initial phase of a compiler responsible for processing source code characters. It groups these characters into meaningful units known as tokens, which are then passed to the syntax analyzer.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro