Compiler Design · Syntax-Directed Translation
Official IIT answer key · IIT Guwahati · Audited Aug 2026
GATE CSE 2025 Set 2 Q22 · MCQ · 1 mark
Key concept
No account needed
Sit 5 related Syntax-Directed TranslationPYQs as a guest. We'll score the set and show which traps cost marks — sign in only if you want to save the run.
Topic notes
Syntax-Directed Translation (SDT/SDD) in GATE CS is consistently tested through two primary angles: theoretical classification (identifying S-attributed vs. L-attributed definitions and parser traversal compatibility) and concrete evaluation (tracing attribute evaluation or action execution for a given input string). Questions routinely evaluate precedence, associativity, base conversions (e.g., binary fractions), type checking, or parse-reduction action sequences.
Full Syntax-Directed Translation guide →Given the following syntax directed translation rules: Rule 1: R AB \B.i = R.i - 1; A.i = B.i; R.i = A.i + 1;\ Rule 2: P CD \P.i = C.i + D.i; D.i = C.i + 2;\ Rule 3: Q EF \Q.i = E.i + F.i;\ Which ONE is the CORRECT option among the following?
Topic-wise GATE CS PYQs with verified steps
Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.
