Questions

  1. GATE CS 2026 Set 1MSQ2 marksMedium (estimate)

    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

  2. GATE CS 2025 Set 2MCQ1 markEasy (estimate)

    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

  3. GATE CS 2025 Set 2MCQ1 markMedium (estimate)

    GATE CS 2025 Set 2, Q.22

    Given the following syntax directed translation rules: Rule 1: Rule 2…

    Syntax-Directed Translation

  4. GATE CS 2024 Set 1MCQ2 marksEasy (estimate)

    GATE CS 2024 Set 1, Q.37

    Consider the following syntax-directed definition (SDD).…

    Syntax-Directed Translation

  5. GATE CS 2024 Set 2MSQ1 markMedium (estimate)

    GATE CS 2024 Set 2, Q.29

    Which of the following statements is/are FALSE?

    Syntax-Directed Translation

  6. GATE CS 2023NAT2 marksMedium (estimate)

    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

  7. GATE CS 2022NAT2 marksMedium (estimate)

    GATE CS 2022, Q.65

    Consider the following grammar along with translation rules. …

    Syntax-Directed Translation

  8. GATE CS 2021 Set 1MCQ2 marksMedium (estimate)

    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

  9. GATE CS 2020MCQ2 marksEasy (estimate)

    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

  10. GATE CS 2019MCQ2 marksMedium (estimate)

    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

  11. GATE CS 2016 Set 1MCQ2 marksEasy (estimate)

    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

Other topics of Compiler Design