Which among the following is used to group the characters into tokens?
2021
Which among the following is used to group the characters into tokens?
Answer: C. Lexical analyser — The lexical analyser (scanner) reads the input as a stream of characters and groups them into tokens (like keywords, identifiers, operators). ⇒ Hence, it is…
- A.
Parser
- B.
Code generator
- C.
Lexical analyser
- D.
None of the above
- E.
Question not attempted
Attempted by 389 students.
Show answer & explanation
Correct answer: C
The lexical analyser (scanner) reads the input as a stream of characters and groups them into tokens (like keywords, identifiers, operators).
⇒ Hence, it is responsible for grouping characters into tokens.
Loading lesson…