πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!


    Question

    Which code optimization technique replaces occurrences

    of a variable with its constant value if the variable has been assigned a constant value that is not subsequently changed?
    A Common Subexpression Elimination (CSE) Correct Answer Incorrect Answer
    B Loop Invariant Code Motion Correct Answer Incorrect Answer
    C Constant Propagation Correct Answer Incorrect Answer
    D Dead Code Elimination Correct Answer Incorrect Answer
    E Peephole Optimization Correct Answer Incorrect Answer

    Solution

    Constant Propagation

    Practice Next
    More Compiler Design Questions
    ask-question