1.

If P & R are regular and also given that if PQ=R, then?(a) Q has to be regular(b) Q cannot be regular(c) Q need not be regular(d) Q has to be a CFLThe question was asked in unit test.My question is based upon Context Free Grammar topic in portion Contextfree Grammar and Syntax Analysis of Compiler

Answer»

The CORRECT choice is (c) Q NEED not be REGULAR

Easiest explanation: If two regular languages when COMBINED do not always PRODUCE a regular language.



Discussion

No Comment Found

Related InterviewSolutions