Please wait...
THANKU FOR BEING A PART OF OUR JOURNEY TO BRING "REVOLUTION IN EDUCATION"
We Genuinely APPRECIATE your PATIENCE

57
M: +2.00/-0.66

A lexical analyzer uses the following patterns to recognize three tokens  and  over the alphabet {a, b, c}.

Note that ‘x?’ means 0 or 1 occurrence of the symbol x. Note also that the analyzer outputs the token that matches the longest possible prefix.
If the string bbaacabc is processed by the analyzer, which one of the following is the sequence of tokens it outputs?

[GATE CS 2018]
A
B
C
D