GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set2

GATE 2024 set2 · CS · MSQ · 1 mark · Compiler Design › Semantic Analysis

GATE 2024 set2 Computer Science and Information Technology question: Which of the following statements is/are FALSE?

Which of the following statements is/are FALSE?

  1. (A)

    An attribute grammar is a syntax-directed definition (SDD) in which the functions in the semantic rules have no side effects

  2. (B)

    The attributes in a L-attributed definition cannot always be evaluated in a depth-first order

  3. (C)

    Synthesized attributes can be evaluated by a bottom-up parser as the input is parsed

  4. (D)

    All L-attributed definitions based on LR(1) grammar can be evaluated using a bottom-up parsing strategy

Show answer

Official answer: B,D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion