Which of the following statements is/are True? P: Refactoring is the process…

2018

Which of the following statements is/are True?

P: Refactoring is the process of changing a software system in such a way that it does not alter the external behaviour of the code yet improves the internal architecture.

Q: An example of refactoring is adding new features to satisfy a customer requirement discovered after a project is shipped.

  1. A.

    P only

  2. B.

    Q only

  3. C.

    Both P and Q

  4. D.

    Neither P nor Q

Attempted by 63 students.

Show answer & explanation

Correct answer: A

Statement P is true because refactoring improves internal code structure without changing external behavior. Statement Q is false since adding new features alters external functionality, which defines feature development rather than refactoring. Therefore, only statement P is correct.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor