Open In App

GATE | GATE CS 2021 | Set 1 | Question 11

Like Article
Like
Save
Share
Report

Suppose that L1 is a regular language and L2 is a context-free language. Which one of the following languages is NOT necessarily context-free?
(A) L1∩L2
(B) L1â‹…L2
(C) L1−L2
(D) L1∪L2


Answer: (C)

Explanation: CFLs (context-free languages) are not closed under complementation property, so complement of a CFL need not be CFL.

Quiz of this Question


Last Updated : 24 May, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads