Computer Sciences > GATE 2023 > Theory of Computation
Consider the following definition of a lexical token id for an identifier in a programming language, using extended regular expressions:
Which one of the following Non-deterministic Finite-state Automata with e-transitions accepts the set of valid identifiers? (A double-circle denotes a final state)
A
B
C
D

Correct : b

Similar Questions

Consider the Deterministic Finite-state Automaton (DFA) A shown below. The DFA runs on the alphabet {0, 1}, and has the set of states {s,p,q,r}, with s being th...
#952 MCQ
Consider the context-free grammar G below: S -> aSb | X X -> aX | Xb | a | b where S and X are non-terminals, and a and b are terminal symbols. The starting non...
#974 MCQ
Consider the pushdown automaton (PDA) P below, which runs on the input alphabet {a,b}, has stack alphabet {⊥, A}, and has three states {s,p,q}, with s being the...
#975 MCQ

Related Topics

lexical token identifier extended regular expressions NFA with epsilon transitions GATE Computer Sciences 2023 GATE CS 2023 Q24 compiler design lexical analysis regular expression to NFA

Unique Visitor Count

Total Unique Visitors

Loading......