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 addressed to me in my homework.Origin of the question is Regular Grammar topic in chapter Contextfree Grammar and Syntax Analysis of Compiler

Answer»

The CORRECT choice is (B) [(0+1)-(0b+a1)*(a+b)]*

BEST EXPLANATION: Except [(0+1)-(0b+a1)*(a+b)]* all are regular EXPRESSION.



Discussion

No Comment Found

Related InterviewSolutions