Which one of the following is FALSE?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2014 Set 1 · Q17
Time
Select one answerSingle correct
Solution
Official answer: D) x = 4 * 5 ⇒ x = 20 is an example of common subexpression elimination.
Data Flow AnalysesLet us evaluate each statement:
(A) *A basic block is a sequence of instructions where control enters the sequence at the beginning and exits at the end.* — True, this is the standard definition of a basic block.
(B) *Available expression analysis can be used for common subexpression elimination.* — True, available expressions identify expressions that have already been computed and not modified, enabling common subexpression elimination.
(C) *Live variable analysis can be used for dead code elimination.* — True, if a variable is not live after an assignment, that assignment is dead code and can be eliminated.
(D) * is an example of common subexpression elimination.* — False, simplifying constant arithmetic expressions at compile time is an example of constant folding, not common subexpression elimination.
Therefore, statement (D) is FALSE.
Try the question first, then check your work.
Examiner trap
Simplifying operations on compile-time constants such as is known as constant folding.
This Data Flow Analyses previous year question is Q17 of the GATE CSE 2014 Set 1 paper. Find more GATE CSE PYQs on Data Flow Analyses in Compiler Design, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Data Flow Analyses PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Data Flow Analyses has 8 GATE CSE PYQs across 8 papers from 2014 to 2026. 2 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2014 Set 1.
How GATE tests Data Flow AnalysesIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.