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 analysis — Lexical analysis groups source-code characters into meaningful tokens. Therefore, the compiler phase described is lexical analysis.
- A.
Code optimization
- B.
Syntax analysis
- C.
Error handling
- D.
Lexical analysis
Attempted by 505 students.
Show answer & explanation
Correct answer: D
Lexical analysis groups source-code characters into meaningful tokens. Therefore, the compiler phase described is lexical analysis.
Loading lesson…