Multiple Choice
Consider the following C code segment.
For (i = 0, i
For (j=0; j
If (i%2)
{
X += (4*j + 5*i) ;
Y += (7 + 4*j) ;
}
}
}
Which one of the following is false?
A) The code contains loop invariant computation
B) There is scope of common sub-expression elimination in this code
C) There is scope of strength reduction in this code
D) There is scope of dead code elimination in this code
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Consider the intermediate code given below:<br>1) i
Q3: Consider the grammar with the following translation
Q4: Consider the following expressionu<br>*v+a-b*c<br>Which one of the
Q5: Assume that the SLR parser for a
Q6: In multi-programmed systems, it is advantageous if
Q7: Which of the following statement(s) regarding a
Q8: Incremental-Compiler is a compiler<br>A)which is written in
Q9: Shift-Reduce parsers perform the following:<br>A)Shift step that
Q10: A language L allows declaration of arrays
Q11: Which of the following grammar rules violate