Question:

Inherited attributes in SDTs are used for _______ .

Show Hint

In SDTs, inherited attributes pass information from parent to child, while synthesized attributes pass information from children to parents.
Updated On: Jun 16, 2025
  • Passing information up the parse tree
  • Passing information down the parse tree
  • Storing symbol table entries
  • Generating target code
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Inherited attributes in Syntax-Directed Translation (SDT) schemes are used to pass information from parent nodes to their children, which means they flow down the parse tree. This is in contrast to synthesized attributes, which are used to pass information up the parse tree.
Was this answer helpful?
0
0