Question 5191 – UGC NET CS 2012 Dec-Paper-2
November 5, 2023UGC NET CS 2012 Dec-Paper-2
November 5, 2023UGC NET CS 2012 Dec-Paper-2
Question 11
|
In compiler design ‘reducing the strength’ refers to
reducing the range of values of input variables.
|
|
code optimization using cheaper machine instructions.
|
|
reducing efficiency of program.
|
|
None of the above
|
Question 11 Explanation:
In compiler design ‘reducing the strength’ refers to code optimization using cheaper machine instructions.
Example:
Dividing by 2→ Use right shift by 2.
Multiplication by 2→ Use left shift by 2.
Example:
Dividing by 2→ Use right shift by 2.
Multiplication by 2→ Use left shift by 2.
Correct Answer: B
Question 11 Explanation:
In compiler design ‘reducing the strength’ refers to code optimization using cheaper machine instructions.
Example:
Dividing by 2→ Use right shift by 2.
Multiplication by 2→ Use left shift by 2.
Example:
Dividing by 2→ Use right shift by 2.
Multiplication by 2→ Use left shift by 2.