GATE CS 2025 Set 2 | Question 30
Theory of Computation › Regular Grammar · MSQ · 1 mark · Answer: B, C
- Question 30Theory of Computationmsq1 markConsider List I and List II:
For matching items in List I with List II, which of the following option(s) is/are CORRECT?List I | List II (i) Context free langs | (a) Closed under union (ii) Recursive langs | (b) Not closed under complementation (iii) Regular langs | (c) Closed under intersection- A.(i)-(a), (ii)-(b), (iii)-(c)
- B.(i)-(b), (ii)-(a), (iii)-(c)✓
- C.(i)-(b), (ii)-(c), (iii)-(a)✓
- D.(i)-(a), (ii)-(c), (iii)-(b)
Answer: B, C
Solution
Answer: (B) and (C) Key facts: CFLs are closed under union but NOT under complementation (or intersection). Recursive languages are closed under union, intersection and complementation. Regular languages are closed under all three. - (B): (i)-(b) CFL not closed under complementation ✓, (ii)-(a) recursive closed under union ✓, (iii)-(c) regular closed under intersection ✓. - (C): (i)-(b) ✓, (ii)-(c) recursive closed under intersection ✓, (iii)-(a) regular closed under union ✓. Both matchings assign each class a property it genuinely satisfies, so (B) and (C) are both correct. (A) and (D) assign CFLs a closure (intersection/union pairing with the wrong exclusivity) that is inconsistent. - A.
More GATE PYQ on Regular Grammar
All GATE CS Theory of Computation PYQ →Attempt GATE CS 2025 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →