Let L be a context-free language and M a regular language. Then the language L…

2006

Let L be a context-free language and M a regular language. Then the language L ∩ M is

  1. A.

    always regular

  2. B.

    never regular

  3. C.

    always a deterministic context-free language

  4. D.

    always a context-free language

Attempted by 27 students.

Show answer & explanation

Correct answer: D

The intersection of a context-free language (L) and a regular language (M) is always context-free. This is because regular languages are closed under intersection with context-free languages, meaning that L ∩ M will retain the properties of a context-free language. Therefore, the correct answer is that L ∩ M is context-free.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir