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.
- A.
Code optimization
- B.
Syntax analysis
- C.
Error handling
- 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.