Multiple choice

Match the following. (Choose the most appropriate option) (A) S – Attributed Definition (i) Synthesized attribute (B) L _ Attributed Definition (ii) Inherited attributed

  1. A – i, B – ii

  2. A – ii, B – i

  3. A – i, B – i, B – ii

  4. A – i, B – ii, A – ii

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In an S – attributed syntax directed translation all attributes are synthesized. In an L – attributed definition attributes may be inherited or synthesized.