Question:

Which one of the following statements is true?

Show Hint

N/A
Updated On: May 3, 2025
  • The intersection of two context free languages is context free
  • A context free language is accepted by a Deterministic Push Down Automaton
  • The union of two context free languages is context free
  • The complement of a context free language is context free
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

- Option 1: The intersection of two context free languages is not necessarily context free, as context free languages are not closed under intersection.
- Option 2: Not all context free languages can be accepted by a deterministic push down automaton, as deterministic pushdown automata only accept a subset of context free languages.
- Option 3: The union of two context free languages is indeed context free, as context free languages are closed under union.
- Option 4: The complement of a context free language is not necessarily context free, as context free languages are not closed under complementation.
Therefore, the correct answer is 3. The union of two context free languages is context free.
Was this answer helpful?
0
0