Monday, 1 April 2019

UGC NET Computer Science July 2018 - II Question 20

Question 20

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 :
  1. (1) P only
  2. (2) Q only
  3. (3) Both P and Q
  4. (4) Neither P nor Q
Answer : (1) P only

Explanation Question 20
  • 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. → True
  • An example of refactoring is adding new features to satisfy a customer requirement is covered after a project is shipped. → False
Code refactoring in software design:
In computer programming and software design, code refactoring is the process of restructuring existing computer code-changing the factoring - without changing its external behavior. Refactoring is intended to improve the design, structure, and/or implementation of the software (its non-functional attributes), while preserving its functionality. Potential advantages of refactoring may include improved code readability and reduced complexity; these can improve the source code's maintainability and create a simpler, cleaner, or more expressive internal architecture or object model to improve extensibility. Another potential goal for refactoring is improved performance; software engineers face an ongoing challenge to write programs that perform faster or use less memory.

Reference :  Code refactoring

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts