1.

Which of the following statement is correct?(a) A Context free language can be accepted by a deterministic PDA(b) union of 2 CFLs is context free(c) The intersection of two CFLs is context free(d) The complement of CFLs is context freeThis question was posed to me in examination.My question comes from Finite Automata and Regular Expressions topic in chapter Compiler Introduction of Compiler

Answer»

Correct OPTION is (b) UNION of 2 CFLS is CONTEXT free

For explanation: Context-free languages are closed under the FOLLOWING operations.The Kleene star, the concatenation, the union and the intersection.



Discussion

No Comment Found

Related InterviewSolutions