1.

Which of the following parser reaches the root symbol of the tree at last?(a) Top down parser(b) Bottom up parser(c) TOP down and Bottom up parser(d) None of the mentionedI have been asked this question in an interview for internship.The query is from Applications in chapter Context Free Grammars and Languages of Automata Theory

Answer»

Correct option is (b) BOTTOM up PARSER

The EXPLANATION is: Bottom up parser STARTS from the bottom with the string and comes up to the start symbolusing a PARSE tree or a derivation tree.



Discussion

No Comment Found

Related InterviewSolutions