Computer Science EngineeringEasy

Which compiler phase reads the character stream and groups it into tokens?

  1. A. Syntax analysis
  2. B. Lexical analysis
  3. C. Code generation
  4. D. Code optimization

Correct answer: B. Lexical analysis

The lexical analyzer (scanner) produces the token stream for the parser.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic