Machine-translated by Google. Questions are authored in English.
Top

Discussion

A production has 3 symbols on its right side, each contributing one synthesised attribute to the left side. How many dependency edges does this production contribute at each node where it is used?

  • A.6
  • B.3
  • C.1
  • D.4

Answer: B

One edge runs from each right side attribute to the single left side attribute, giving three edges. The count would rise if the left side carried more than one attribute of its own. Counting edges is a useful check when a definition is first written down.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.