Question 29Asked in BEL PE Computer Science, 20 Dec 2025 (5:00 PM)

During lexical analysis, which component is primarily responsible for recognising tokens from the input stream of characters?

  1. AParser, using syntax-directed translation rules
  2. BFinite automaton, driven by regular expressions for token patterns
  3. CSemantic analyzer, based on attribute grammars
  4. DSymbol table manager, by assigning identifiers unique addresses
Show answerHide answer

Correct answer: (B) Finite automaton, driven by regular expressions for token patterns

From BEL PE Computer Science PYQ, 20 Dec 2025 (5:00 PM)

This is question 29 of BEL PE Computer Science PYQ, 20 Dec 2025 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.