Gate CS-2017-1 Question Paper With Solutions

Q. 42 Consider the following grammar over the alphabet {a,b,c} given below, S and T are non-terminals.

G1: S-->aSb|T
T--> cT|∈

G2: S-->bSa|T
T--> cT|∈

The language L1(G1) ∩ L2(G2).

(A) Finite

(B) Non-finite but regular

(C) Context-free but not regular

(D) Recursive but not context-free

Answer: (B)

Explanation:

Gate CS-2017-1 Question Paper With Solutions

Learn More:   Gate EE-2006 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here