Menu

Code Optimization Questions

MCQ
1.
Optimization can be categorized broadly into ____ types.
forum Discussion
MCQ
2.
 A fragment of code that resides in the loop and computes the same value at each iteration is called a?
forum Discussion
MCQ
3.
 A variable is called an _________ variable if its value is altered within the loop by a loop-invariant value.
forum Discussion
MCQ
4.
 Dead code plays no role in any program operation and therefore it can simply be eliminated.
forum Discussion
MCQ
5.

Substitution of values for names whose values are constant, is done in

forum Discussion
MCQ
6.
Peep-hole optimization is a form of 
forum Discussion
MCQ
7.
In analyzing the compilation of PL/I program, the term Machine independent optimization is assosiated with
 
forum Discussion
MCQ
8.
Before generating intermediate code, the compiler can modify the intermediate code by address calculations and improving loops.
forum Discussion
MCQ
9.
The compiler can make use of memory hierarchy and CPU registers.
forum Discussion
MCQ
10.
A compiler for a high-level language that runs on one machine and produces code for a different machine is called
forum Discussion
Page 1 of 3Next chevron_right