1.

The context free grammar is ambiguous if ______________(a) The grammar contains non-terminals(b) Produces more than one parse tree(c) Production has two non-terminals side by side(d) None of the mentioned

Answer» The correct choice is (b) Produces more than one parse tree

The explanation: Since more than one parse tree is generated hence one than option is available .Therefore it’s ambiguous.


Discussion

No Comment Found

Related InterviewSolutions