Multiple choice

The output of lexical analyzer is

  1. a set of regular expressions

  2. syntax tree

  3. a set of tokens

  4. a string of characters

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The lexical analyzer (or scanner) reads the source code as a stream of characters and groups them into meaningful sequences called tokens.