1. Consider the below SDT:
E-> E+E {print(+)}
E->a {print(a)}
What is/are the output(s) for the input string a+a+a ?
(i) a+a+a
(ii) aa+a+
(iii) aaa++
(iv) +a+aa
(a) Only (i)
(b) Only (ii) and (iii)
(c) Only (ii) and (iv)
(d) All
Solution: Option (b)
How iii can be generated