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.

  1. A.

    Code optimization

  2. B.

    Syntax analysis

  3. C.

    Error handling

  4. D.

    Lexical analysis

Attempted by 94 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: Niacl Ao It Specialist