Consider the following code fragment.

int y = 3 * 5int x = y * 1;

float pi = 3.142;

for(int i =0; i < 500; i ++)

{           

x = x / pi;

}

boolean flag = FALSE;

if(flag)

{

            x = x + 5;

            y = y * 6;

            x = x + y;

            y = y * x;

}

Which of the following optimization techniques can be applied ?

1
Loop unrolling
2
Deadcode elimination
3
Constant Propagation
4
All of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation