Skip to main content

GATE CSE 2023Theory of Computation › Language Classification, Closure Properties & ProofsVerified

GATE CSE 2023 PYQ: Which of the following statements is/are CORRECT ? \text{CORRECT}? CORRECT ?

Which of the following statements is/are CORRECT?\text{CORRECT}?

  1. A
    The intersection of two regular languages is regular.
    Correct answer
  2. B
    The intersection of two context-free languages is context-free.
  3. C
    The intersection of two recursive languages is recursive.
    Correct answer
  4. D
    The intersection of two recursively enumerable languages is recursively enumerable.
    Correct answer

Answer

(A, C, D) The intersection of two regular languages is regular.; The intersection of two recursive languages is recursive.; The intersection of two recursively enumerable languages is recursively enumerable.

Approach

Use standard closure properties of language classes. Regular, recursive, and recursively enumerable languages are closed under intersection; context-free languages are not closed under intersection. Therefore evaluate each statement by its class and provide a counterexample for the CFL case.

The correct statements are A, C, and D. Regular, recursive, and recursively enumerable languages are closed under intersection, while context-free languages are not; statement B is false because intersecting two CFLs can yield a non-CFL.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.