Name the phase of compiler, which separates characters of the source language…

2023

Name the phase of compiler, which separates characters of the source language into groups that logically belong together, these groups are called tokens.

Answer: D. Lexical analysisLexical analysis groups source-code characters into meaningful tokens. Therefore, the compiler phase described is lexical analysis.

  1. A.

    Code optimization

  2. B.

    Syntax analysis

  3. C.

    Error handling

  4. D.

    Lexical analysis

Attempted by 556 students.

Show answer & explanation

Correct answer: D

Lexical analysis groups source-code characters into meaningful tokens. Therefore, the compiler phase described is lexical analysis.

Explore the full course: Coal India Management Trainee

Loading lesson…