1.

The RE gives none or many instances of an x or y is?(a) (x+y)(b) (x+y)*(c) (x* + y)(d) (xy)*I have been asked this question in an online interview.This question is from Regular Expression topic in chapter Compiler Introduction of Compiler

Answer»

Right ANSWER is (b) (x+y)*

To EXPLAIN: WHETHER x or y is denoted by x+y and for zero or more INSTANCES it is denoted but (x+y)*.



Discussion

No Comment Found

Related InterviewSolutions