Consider the SDD given below: C → DC1 { D.val = CDval } /*Production 1*/ C2…

Consider the SDD given below:
C → DC1 { D.val = CDval } /*Production 1*/
C2 →*DC3 { C2 .val = C3 .val × D.val} /*Production 2*/
Which of the given option is correct w.r.t the above SDD?

  1. A.

    Production 2 follows S-attributed definition but not L-attributed definition.

  2. B.

    Production 1 has only inherited attribute.

  3. C.

    This SDD follows only L-attributed definition but not S-attributed definition.

  4. D.

    None of the above.

Attempted by 131 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…