What is output of lexical analyzer?

2022

What is output of lexical analyzer?

  1. A.

    Tokens

  2. B.

    Data types

  3. C.

    Code

  4. D.

    None of the above

Attempted by 570 students.

Show answer & explanation

Correct answer: A

A lexical analyzer (scanner) reads source code and breaks it into tokens such as keywords, identifiers, operators, literals, etc. Hence, its output is tokens .

Explore the full course: Niacl Ao It Specialist