Given Grammar: S->A, A->aA, A->e, B->bA Which among the following productions are Useless productions?

Given Grammar: S->A, A->aA, A->e, B->bA Which among the following productions are Useless productions? Correct Answer B->bA

Some derivations are not reachable from the starting variable. As B is not reachable from the starting variable, it is a useless symbol and thus, can be eliminated.

Related Questions

The question below is followed by two statements I and II. You have to determine whether the data given is sufficient for answering the question. You should use the data and your knowledge of mathematics to choose the best possible answer. A business school has students from MBA, BBA, and BBS. What is the probability of selecting a BBA student from business school? I. MBA, BBA and BBS are in ratio of 1 : 2 : 3. II. Total student in the business school are 6000.