1.

The set of all strings over ∑ = {a,b} in which strings consisting a’s and b’s and ending with in bb is?(a) ab(b) a*bbb(c) (a+b)* bb(d) All of the mentionedThis question was addressed to me during an online exam.This intriguing question comes from Obtaining the regular Expression from the Finite automata topic in chapter Finite Automata and Regular Expression of Compiler

Answer»

Correct CHOICE is (c) (a+b)* BB

For explanation: Only this EXPRESSION ends with bb only.



Discussion

No Comment Found

Related InterviewSolutions