Let G=(V, T, P, S) where a production can be written as: S->aAS|a A->SbA|ba|SS Which of the following string is produced by the grammar?

Let G=(V, T, P, S) where a production can be written as: S->aAS|a A->SbA|ba|SS Which of the following string is produced by the grammar? Correct Answer aabbaa

The step wise grammar translation can be written as: aAS->aSbaA->aabAS->aabbaa
Bissoy MCQ

Related Questions

Consider the production of the grammar S->AA A->aa A->bb Describe the language specified by the production grammar.
Given a grammar in GNF and a derivable string in the grammar with the length n, any ___________will halt at depth n.
Statement 1: Ambiguity is the property of grammar but not the language. Statement 2: Same language can have more than one grammar. Which of the following options are correct with respect to the given statements?