1.

A synthesized attribute is an attribute whose value at a parse tree node depends on __________(a) Attributes at the siblings only(b) Attributes at parent node only(c) Attributes at children nodes only(d) None of the mentionedThis question was posed to me during a job interview.My enquiry is from Handle of Right sentinel Grammar in portion Bottom Up Parsing of Compiler

Answer»

The correct OPTION is (c) ATTRIBUTES at children nodes only

Explanation: Synthesized attribute’s VALUE depend on children NODE only.



Discussion

No Comment Found

Related InterviewSolutions