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

Discussion

Match each translation task with the attribute flow it mainly uses.
List I
A. computing the value of an expression
B. passing a declared type to a list of names
C. passing jump targets into a boolean expression
D. computing the width of a record type
List II
1. inherited
2. synthesised
3. synthesised
4. inherited

  • A.A-4, B-2, C-1, D-3
  • B.A-2, B-4, C-3, D-1
  • C.A-3, B-1, C-4, D-2
  • D.A-2, B-4, C-1, D-3

Answer: D

Values built from parts flow upward while context supplied from outside flows downward. Recognising which applies is what determines whether the definition can be S-attributed. A single downward flow anywhere forces the L-attributed treatment.

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

Post your comment

Please log in or register to post a comment.