GATE Computer Science (CS) 2020 Solved Papers
© examsiri.com
Question : 59 of 65
Marks:
+1,
-0
Consider the production and . Each of the five non-terminal , and has two attributes: is a synthesized attribute, and is an inherited attribute. Consider the following rules.
Rule 1: P.i = A.i + 2, Q.i = P.i + A.i, and A.s = P.s + Q.s
Rule 2: X.i = A.i + Y.s and Y.i = X.s + A.i
Which one of the following is TRUE?
Rule 1: P.i = A.i + 2, Q.i = P.i + A.i, and A.s = P.s + Q.s
Rule 2: X.i = A.i + Y.s and Y.i = X.s + A.i
Which one of the following is TRUE?
Go to Question: