📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which of the following techniques is an example of

    compiler-level code optimization?
    A Adding more comments to improve readability Correct Answer Incorrect Answer
    B Replacing repeated calculations with a single computed value (common subexpression elimination) Correct Answer Incorrect Answer
    C Increasing indentation for clarity Correct Answer Incorrect Answer
    D Writing longer variable names Correct Answer Incorrect Answer
    E Adding debug print statements Correct Answer Incorrect Answer

    Solution

    Replacing repeated calculations with a single computed value (common subexpression elimination).

    Practice Next

    Relevant for Exams:

    ask-question