Optimization and Data Flow questions

Q42

GATE CS 2026 CS-1Optimization and Data FlowMCQ2 marks−2/3 if wrong
Consider the control flow graph shown in the figure.

Which one of the following options correctly lists the set of redundant expressions (common subexpressions) in the basic blocks B4 and B5?

Note: All the variables are integers.
Question figure
Show answer without attempting

Answer: D

Q45

GATE CS 2026 CS-2Optimization and Data FlowMCQ2 marks−2/3 if wrong
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?
Question figure
Show answer without attempting

Answer: A

0/20 correct0 marks

Related topics in Compiler Design