[amp_mcq option1=”reusability” option2=”polymorphism” option3=”redundancy” option4=”recursion” correct=”option1″]
The correct answer is A. reusability.
Reusability is a software engineering principle that states that software components should be designed to be reused in multiple contexts. This can be achieved by making components loosely coupled and highly cohesive.
In the context of the question, the wardrobe structure is being reused within the ShopList structure. This is an example of good programming practice because it allows the ShopList structure to be more flexible and adaptable.
The other options are incorrect because they do not describe the principle of reusability.
- Polymorphism is a programming language feature that allows objects to be used in different ways.
- Redundancy is the duplication of information or code.
- Recursion is a programming technique in which a function calls itself.