1.

In a bottom up evaluation of a syntax direction definition, inherited attributes can __________(a) Always be evaluated(b) Be evaluated only if the definition is L –attributed(c) Evaluation only done if the definition has synthesized attributes(d) None of the mentionedI got this question by my college director while I was bunking the class.I want to ask this question from Handle of Right sentinel Grammar in division Bottom Up Parsing of Compiler

Answer» CORRECT answer is (c) Evaluation only DONE if the DEFINITION has synthesized attributes

Explanation: Bottom-up PARSING identifies and processes the text’s lowest-level, before its mid-level structures, and the highest-level overall structure to last are left.


Discussion

No Comment Found

Related InterviewSolutions