Given Grammar G: S->aA A->a| A B->B The number of productions to be removed immediately as Unit productions:

Given Grammar G: S->aA A->a| A B->B The number of productions to be removed immediately as Unit productions: Correct Answer 2

The productions in the format A-> A are removed immediately as they produce self and that is not a terminal or will not lead to a string. Hence, it is removed immediately.

Related Questions

Each of the questions below consists of a question and three statements numbered I, II and III given below it. You have to decide whether the data provided in the statements are sufficient to answer the question. Read all the three statements and give answer. There are six letters E, I, P, G, N and O is PIGEON the word formed after performing the following operations using these six letters only? I. O is placed fourth to the right of P. G is not placed immediately next to either P or O. II. N is placed immediately next (either left or right) to O. E is placed immediately next (either left or right) to G. III. Both I and E are placed immediately next to G. The word does not begin with N. P is not placed immediately next to E.