Consider the SDT. S1: P → Q + R {P.val= Q.val + R.val} S2: P → Q.R {P.val =…

Consider the SDT.

S1: P → Q + R {P.val= Q.val + R.val}

S2: P → Q.R {P.val = Q.val * R.val and Q.val = R.val}

Which of the given option is correct w.r.t the above SDT?

  1. A.

    S1 is L attributed but S2 is not L-attributed.

  2. B.

    S1 is S attributed and S2 is L-attributed.

  3. C.

    Both S1 and S2 are S attributed.

  4. D.

    None of the above

Attempted by 109 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…