GateAI
Data Flow Analyses

GATE CSE 2014 Set 1 · Q17

MCQ1 markEasy

Time

Which one of the following is FALSE?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) x = 4 * 5 ⇒ x = 20 is an example of common subexpression elimination.

Data Flow Analyses

Let 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) *x=4∗5⇒x=20x = 4 * 5 \Rightarrow x = 20 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.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Data Flow Analyses in GATE CSE

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 Analyses

More from GATE CSE 2014 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 1 · Q17 · MCQ

Which one of the following is FALSE?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.