Question:

If the value of an attribute is obtained from its children, then it is called

Show Hint

Children \(\rightarrow\) Parent : Synthesized Parent \(\rightarrow\) Child : Inherited
Updated On: Jun 25, 2026
  • Synthesized Attribute
  • Inherited Attribute
  • Simple Attribute
  • Derived Attribute
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept: In Syntax Directed Definitions, attributes are of two main types:
• Synthesized Attributes
• Inherited Attributes

Step 1:
Define synthesized attribute.
A synthesized attribute obtains its value from the attributes of child nodes. Information flows upward in the parse tree.

Step 2:
Define inherited attribute.
Inherited attributes receive values from parents or siblings. Information flows downward or sideways.

Step 3:
Identify the required attribute.
Since the value is obtained from children, \[ \boxed{\text{Synthesized Attribute}} \] is correct.
Was this answer helpful?
0
0