Software-Engineering
August 28, 2024
Software-Engineering
August 28, 2024
Software-Engineering
August 28, 2024
Software-Engineering
August 28, 2024

Software-Engineering

Question 397

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 behavior 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.

Code :

A
P only
B
Q only
C
Both P and Q
D
Neither P nor Q
Question 397 Explanation: 
→ Refactoring allows a software engineer to improve the internal structure of a design (or source code) without changing its external functionality or behavior of the code yet improves the internal structure. In essence, refactoring can be used to improve the efficiency, readability, or performance of a design or the code that implements a design.
→ It is a disciplined way to clean up code [and modify/simplify the internal design] that minimizes the chances of introducing bugs. In essence, when you refactor you are improving the design of the code after it has been written.
Note:
It won’t add any new featuring to satisfy a customer requirement. So, statement Q is false.
Correct Answer: A
Question 397 Explanation: 
→ Refactoring allows a software engineer to improve the internal structure of a design (or source code) without changing its external functionality or behavior of the code yet improves the internal structure. In essence, refactoring can be used to improve the efficiency, readability, or performance of a design or the code that implements a design.
→ It is a disciplined way to clean up code [and modify/simplify the internal design] that minimizes the chances of introducing bugs. In essence, when you refactor you are improving the design of the code after it has been written.
Note:
It won’t add any new featuring to satisfy a customer requirement. So, statement Q is false.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!