Open In App

GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 34

Last Updated : 06 Jan, 2020
Like Article
Like
Save
Share
Report

Given the grammar (G),

S → abc/ aAbc,
Ab →bA,
AC →Bbcc,
bB →Bb,
aB →aa/ aaA 

Language produced by the above grammar is ?
(A) L = {anbncn: n≥0}
(B) L = {anbncn: n>0}
(C) L = {anbncn+2: n≥0}
(D) L = {anbncn+2: n>0}


Answer: (B)

Explanation: Clearly it is anbncn, the condition for n can be checked from stopper or minimum string, since ε is not possible here and minimum string is abc therefore n>0

Option (B) is correct.


Quiz of this Question


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads