Compiler Design · Previous year questions
Syntax-Directed Translation
11 questions from GATE CS 2016 to 2026, newest first.
Questions
GATE CS 2026 Set 1, Q.53
Consider the following two syntax-directed definitions SDD1 and SDD2 for type declarations. SDD1 Grammar (G1) SDD1 Semantic Rules SDD2 Grammar (G2) SDD2 Semantic Rules…
Syntax-Directed Translation
GATE CS 2025 Set 2, Q.21
Consider the following statements about the use of backpatching in a compiler for intermediate code generation: (I) Backpatching can be used to generate code for Boolean express...
Intermediate Code Generation, Data Flow Analysis and Code Optimization · Syntax-Directed Translation
GATE CS 2025 Set 2, Q.22
Given the following syntax directed translation rules: Rule 1: Rule 2…
Syntax-Directed Translation
GATE CS 2024 Set 1, Q.37
Consider the following syntax-directed definition (SDD).…
Syntax-Directed Translation
GATE CS 2024 Set 2, Q.29
Which of the following statements is/are FALSE?
Syntax-Directed Translation
GATE CS 2023, Q.60
Consider the syntax directed translation given by the following grammar and semantic rules. Here and are non-terminals. is the starting non-terminal, and #, 0...
Syntax-Directed Translation
GATE CS 2022, Q.65
Consider the following grammar along with translation rules. …
Syntax-Directed Translation
GATE CS 2021 Set 1, Q.36 (CS Q.26)
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code...
Syntax-Directed Translation
GATE CS 2020, Q.43 (CS Q.33)
Consider the productions and . Each of the five non-terminals , and has two attributes: is a synthesized attribute, and is an inhe...
Syntax-Directed Translation
GATE CS 2019, Q.46 (CS Q.36)
Consider the following grammar and the semantic actions to support the inherited type declaration attributes. Let and be the placeholders for th...
Syntax-Directed Translation
GATE CS 2016 Set 1, Q.56 (CS Q.46)
Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals and terminals …
Syntax-Directed Translation