GATE Assistant

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

GATE 2026 set2 · CS · MCQ · 2 marks · Compiler Design › Code Optimization

GATE 2026 set2 Computer Science and Information Technology question: Consider the control flow graph given below. Which one of the following options is the…

Consider the control flow graph given below.

figure

Which one of the following options is the set of live variables at the exit point of each basic block?

  1. (A)

    B1:{a, b, c, e, f}, B2:{d, e}, B3:{b, c, e, f}, B4:∅

  2. (B)

    B1:∅, B2:{d, e}, B3:{a, c, f}, B4:∅

  3. (C)

    B1:{a, b, c, e, f}, B2:{d, e}, B3:{c, e, f}, B4:∅

  4. (D)

    B1:∅, B2:{d, e, f}, B3:{a, b, c, e, f}, B4:∅

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion