The parse tree below represents a rightmost derivation according to the grammar S → AB, A → aS|a, B → bA. Which of the following are right-sentential forms corresponding to this derivation?

The parse tree below represents a rightmost derivation according to the grammar S → AB, A → aS|a, B → bA. Which of the following are right-sentential forms corresponding to this derivation? Correct Answer aababa

S => AB => AbA => Aba => aSba => aABba => aAbAba => aAbaba => aababa.

Related Questions