Gate2017 ss Q14

0. Let L1, L2 be any two context free languages and R be any regular language. Then which of the following is/are CORRECT?
I. L1 ∪ L2is context – free
II. L1 is context – free
III. L1 - R is context – free
IV. L1 ∩ L2 is context – free

  • Option : B
  • Explanation :
    Given L1 and L2 are context free languages and R is a regular language.
    I. L1 ∪ L2 is context free is CORRECT, context free language are closed under union operation.
    II. L1 is context free is INCORRECT, context free languages are not closed under complement operation.
    III. L1 - R is Context free is CORRECT.
    L1 - R = L1R, Context free intersection Regular is always Context free.
    IV. L1 ∩ L2 is context free is INCORRECT; context free languages are not closed under complement operation.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *