Which phase of compiler generates stream of atoms?

2015

Which phase of compiler generates stream of atoms?

  1. A.

    Syntax Analysis

  2. B.

    Lexical Analysis

  3. C.

    Code Generation

  4. D.

    Code Optimization

Attempted by 112 students.

Show answer & explanation

Correct answer: B

The correct phase is Lexical Analysis. This stage scans the source code and converts characters into meaningful tokens, often referred to as atoms or lexical units. These tokens form the stream input for the subsequent Syntax Analysis phase.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor