1.

Which of the following regular expression denotes zero or more instances of an a or b?(a) a/b(b) (a/b)*(c) (ab)*(d) a*IbThis question was posed to me by my college professor while I was bunking the class.My doubt stems from Obtaining the regular Expression from the Finite automata topic in portion Finite Automata and Regular Expression of Compiler

Answer» CORRECT ANSWER is (B) (a/b)*

Easiest explanation: This expression gives o or more INSTANCES of a or b.


Discussion

No Comment Found

Related InterviewSolutions