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


    Question

    When refactoring code, what is the primary

    goal?
    A To add new features. Correct Answer Incorrect Answer
    B To change the external behavior of the code. Correct Answer Incorrect Answer
    C To improve the internal structure of code without changing its external behavior. Correct Answer Incorrect Answer
    D To introduce more bugs. Correct Answer Incorrect Answer
    E To make the code run slower. Correct Answer Incorrect Answer

    Solution

    Refactoring is the process of restructuring existing computer code—changing the factoring—without changing its external behavior. Its primary goal is to improve non-functional attributes of the software, such as readability, maintainability, and complexity, making it easier to understand and modify in the future.

    Practice Next
    ask-question