1.

Which among the following is incorrect with reference to a derivation tree?(a) Every vertex has a label which is a terminal or a variable.(b) The root has a label which can be a terminal.(c) The label of the internal vertex is a variable.(d) None of the mentionedI got this question in an online interview.My question is from DPDA and Ambiguous Grammars in portion Push Down Automata of Automata Theory

Answer» RIGHT choice is (b) The ROOT has a label which can be a terminal.

To ELABORATE: The root or interms of the grammar, STARTING VARIABLE can not be a terminal.


Discussion

No Comment Found

Related InterviewSolutions