Optimization and Data Flow
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2026 · Consider the control flow graph shown in the figure. Which one of the following options correctly lists the set of redundant expressions (common sube
- 2026 · 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?
- 2025 · Which ONE of the following techniques used in compiler code optimization uses live variable analysis?
- 2023 · Consider the control flow graph shown. Which one of the following choices correctly lists the set of live variables at the exit point of each basic b
- 2021 · Consider the following ANSI C code segment: ```c z = x + 3 + y->f1 + y->f2; for (i = 0; i < 200; i = i + 2){ if (z > i) { p = p + x + 3;
- 2021 · For a statement $S$ in a program, in the context of liveness analysis, the following sets are defined: $$\begin{array}{rll} \text{USE}(S) & : & \text
- 2015 · Consider the following C program segment. ```c while (first <= last) { if (array[middle] < search) first = middle + 1; else if (array
- 2015 · A variable $x$ is said to be live at a statement $S_i$ in a program if the following three conditions hold simultaneously: i. There exists a statemen
- 2015 · Consider three software items: Program-X, Control Flow Diagram of Program-Y and Control Flow Diagram of Program-Z as shown below Program-X: ```c sumc
- 2014 · Which one of the following is FALSE?
- 2014 · Consider the basic block given below. a = b + c c = a + d d = b + c e = d - b a = e + b The minimum number of nodes and edges present in the DAG rep
- 2013 · Suppose the instruction set architecture of the processor has only two registers. The only allowed compiler optimization is code motion, which moves s