GATEverse Practice, past papers & mock tests
GATE 2023 · CS - Forenoon
Compiler DesignLexical AnalysismediumMCQ1 mark
Consider the following definition of a lexical token id for an identifier in a programming language, using extended regular expressions: letter → [A-Za-z] digit → [0-9] id → letter (letter | digit)* Which one of the following Non-deterministic Finite-state Automata with ε-transitions accepts the set of valid identifiers? (A double-circle denotes a final state.) The alternatives A–D are shown in the image.
Save your progress

Related Compiler Design PYQs