Gate CS-2016-2 Question Paper With Solutions

Q. 53 Consider the following languages:
L1 = {anbmcn : m, n >= 1}
L2 = {anbnc2n : n >= 1}
Which one of the following is TRUE?

(A) Both L1 and L2 are context-free.

(B) L1 is context-free while L2 is not context-free.

(C) L2 is context-free while L1 is not context-free.

(D) Neither L1 nor L2 is context-free.

Answer: (B)

Explanation:

Gate CS-2016-2 Question Paper With Solutions

Learn More:   Gate EE-2012 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here