B equals L1∩L2 by De Morgan, context-free because intersection with a regular language preserves context-freeness. C equals the universal language, regular. D simplifies to L2. A need not be context-free because context-free languages are not closed under complement; take L1 universal. Thus B,C,D.
More Context-Free Grammars and Pushdown Automata questions
GATE 2021 CS (CS2) Q51– For binary strings, wR is reversal. Which languages are context-free? w,x may be empty.
GATE 2026 CS (CS1) Q25– Consider the following grammar where S is the start symbol, and a and b are terminal…
GATE 2026 CS (CS1) Q52– Consider the following context-free grammar G: S abaABAbba A aaB BAb bB a b a a B aBb ab…