Gate CS-2017-2 Question Paper With Solutions

Q. 26 Identity the language generated by following grammar where S is the start variable.

S --> XY
X --> aX | a
Y --> aYb | ∈

(A) {am bn| m>=n, n>0 }

(B) {am bn| m>=n, n>=0 }

(C) {am bn| m>n, n>=0 }

(D) {am bn| m>n, n>0 }

Answer: (C)

Explanation:

Gate CS-2017-2 Question Paper With Solutions

Learn More:   Gate CS-2018 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here