Syntax Analysis questions

Q24

GATE CS 2020 CSParsingNAT1 mark
Consider the following grammar.

S→aSB∣dS \rightarrow aSB \mid d
B→bB \rightarrow b

The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbbaaadbbb is __________.
Show answer without attempting

Answer: 7

0/10 correct0 marks