Multiple choice

Which phase of compiler reads the source program one character at a time, carving the source program into a sequence of atomic units called tokens?

  1. Lexical analysis

  2. Syntax analysis

  3. Intermediate code

  4. Code optimization

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

Lexical analyzer reads the source program one character at a time, carving the source program into a sequence of atomic units called tokens.