GATE 2025 CS (CS2) – Question 30
Consider the two lists List I and List II given below:
| List I | List II |
|---|---|
| (i) Context free languages | (a) Closed under union |
| (ii) Recursive languages | (b) Not closed under complementation |
| (iii) Regular languages | (c) Closed under intersection |
For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) (i) – (b), (ii) – (a), and (iii) – (c); (C) (i) – (b), (ii) – (c), and (iii) – (a)
Explanation
CFLs are not closed under complementation. Recursive and regular languages are closed under union, intersection and complementation. So options B and C are valid, while A and D wrongly say recursive or regular languages are not closed under complement.