Skip to content

UGC NET CS 2019Theory of Computation and Compilers › Code Generation and Code OptimizationVerified

UGC NET CS 2019 PYQ: Replacing the expression $4\ast 2\cdot 14$ by $8 \cdot 56$ is known as

Replacing the expression $4\ast 2\cdot 14$ by $8 \cdot 56$ is known as

  1. A
    constant folding
    Correct answer
  2. B
    induction variable
  3. C
    strength reduction
  4. D
    code reduction

Answer

(A) constant folding

Approach

Recognise compile-time evaluation of an expression made only of constants.

Reviewed by UGC IQ Editorial Team.