GATE CS 2021 Set 2 | Question 22
Theory of Computation › Context Free Grammar · MSQ · 1 mark · Answer: B, C, D
- Question 22Theory of Computationmsq1 markLet be a regular language and be a context-free language. Which of the following languages is/are context-free?
- A.
- B.✓
- C.✓
- D.✓
Answer: B, C, D
Solution
, so (C) is — regular, hence context-free. In (D), and are each (regular CFL) = CFL, and the union of CFLs is a CFL. Per the official GATE key, (B) is also accepted. Option (A) () need not be context-free. - A.
More GATE PYQ on Context Free Grammar
All GATE CS Theory of Computation PYQ →Attempt GATE CS 2021 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →