What is output of lexical analyzer?

2021

What is output of lexical analyzer?

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

  1. A.

    Tokens

  2. B.

    Data types

  3. C.

    Code

  4. D.

    None of the above

Attempted by 960 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: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…