Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2020
Questions

Q33

MCQ2 marks, −0.67Compiler design

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.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.