Question 125

Which compiler phase converts source code into tokens?

  1. ASemantic analysis
  2. BSyntax analysis
  3. CLexical analysis
  4. DCode generation
Show answerHide answer

Correct answer: (C) Lexical analysis

Explanation

The lexer produces tokens; the parser builds a parse tree.

From DSSSB TGT Computer Science Full Mock Test 4

This is question 125 of DSSSB TGT Computer Science Full Mock Test 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.