GATE Assistant

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

GATE 2024 set2 · CS · MCQ · 2 marks · Compiler Design › Intermediate Code Generation

GATE 2024 set2 Computer Science and Information Technology question: Consider the following expression: x[i] = (p + r) -s[i] + u/w. The following sequence…

Consider the following expression: . The following sequence shows the list of triples representing the given expression, with entries missing for triples (1), (3), and (6).

(0) +
(1)
(2) uminus (1)
(3)
(4) /
(5) + (3) (4)
(6)
(7) = (6) (5)

Which one of the following options fills in the missing entries CORRECTLY?

  1. (A)

    (1) =[]   (3) * (0) (2)   (6) []=

  2. (B)

    (1) []=   (3) − (0) (2)   (6) =[] (5)

  3. (C)

    (1) =[]   (3) * (0) (2)   (6) []= (5)

  4. (D)

    (1) []=   (3) − (0) (2)   (6) =[]

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion