GATEverse
← GATE CSE 2020

Q33

MCQ2 marks, −0.67

Consider the productions A→PQA \rightarrow PQ and A→XYA \rightarrow XY. Each of the five non-terminals A,P,Q,X,A, P, Q, X, and YY has two attributes: ss is a synthesized attribute, and ii is an inherited attribute. Consider the following rules. Rule 1:P.i=A.i+2, Q.i=P.i+A.i,1: P . i = A.i + 2, \: Q.i = P. i + A.i, and A.s=P.s+Q.sA.s = P.s +Q. s Rule 2:X.i=A.i+Y.s2: X.i = A.i + Y.s and Y.i=X.s+A.iY. i = X. s +A .i Which one of the following is TRUE?

Sign in to save attempts.

Loading…