GATE CS 2026, set 2 · Question 45 · Compiler Design · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the control flow graph given below.
Which one of the following options is the set of live variables at the exit point of each basic block?

- (A) B1: {a, b, c, e, f}, B2: {d, e}, B3: {b, c, e, f}, B4: ∅
- (B) B1: ∅, B2: {d, e}, B3: {a, c, f}, B4: ∅
- (C) B1: {a, b, c, e, f}, B2: {d, e}, B3: {c, e, f}, B4: ∅
- (D) B1: ∅, B2: {d, e, f}, B3: {a, b, c, e, f}, B4: ∅
Answer
Answer (A)
Answer from the official GATE CS 2026 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes