1.

Which of the following is not a regular expression?(a) [(a+b)*-(aa+bb)]*(b) [(0+1)-(0b+a1)*(a+b)]*(c) (01+11+10)*(d) (1+2+0)*(1+2)*This question was posed to me during an internship interview.This intriguing question comes from Regular Language & Expression topic in section Regular Expressions and Languages of Automata Theory

Answer»

Right OPTION is (B) [(0+1)-(0b+a1)*(a+b)]*

EXPLANATION: EXCEPT b all are regular expression*.



Discussion

No Comment Found

Related InterviewSolutions