Questions: Closure Properties of Context-Free Languages

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Consider L₁ = {aⁿbⁿcᵐ | n, m ≥ 0} and L₂ = {aᵐbⁿcⁿ | n, m ≥ 0}. Both are context-free languages. Their intersection is {aⁿbⁿcⁿ | n ≥ 0}. What does this example prove?

AThat context-free languages are not closed under union
BThat context-free languages are not closed under concatenation
CThat context-free languages are not closed under intersection
DThat {aⁿbⁿcⁿ} is a context-free language
Question 2 Multiple Choice

To prove that CFLs are not closed under complement, the most elegant argument uses:

AConstructing an explicit CFL whose complement is demonstrably non-context-free
BDe Morgan's laws combined with closure under union and non-closure under intersection
CThe pumping lemma for CFLs applied to the complement of {aⁿbⁿcⁿ}
DA diagonalization argument analogous to Cantor's proof
Question 3 True / False

Context-free languages, like regular languages, are closed under complement.

TTrue
FFalse
Question 4 True / False

The intersection of a context-free language with a regular language is always context-free, even though the intersection of two context-free languages is not always context-free.

TTrue
FFalse
Question 5 Short Answer

Why does the failure of CFLs to be closed under intersection imply they are also not closed under complement?

Think about your answer, then reveal below.