- GATE CS
- 2026–27 pattern practice
- Theory of Computation
- Context-free grammars
- Medium
Context-free languages are NOT closed under which operation?
Context-Free Languages
Pick an option to check your answer.
Answer: D. Solution
and are both context-free. Their intersection is , which is not context-free. So CFLs are not closed under intersection. (They are closed under intersection with a regular language.)
Why not the others
- Union is closed: add .
- Concatenation is closed: add .
- Kleene star is closed: add .