Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 1. 1. (TCO 3) Which of the following is/are the mechanism(s) for code r

ID: 3558058 • Letter: Q

Question

Question 1.1. (TCO 3) Which of the following is/are the mechanism(s) for code reuse? (Points : 2)        Inheritance
       Composition
       Inheritance and composition
       None of the above Question 2.2. (TCO 4) Which of the following is true about inheritance? (Points : 2)        Child classes are more generalized than their associated parent classes.
       Inheritance demonstrates the generalization/specialization relationship.
       Parent classes are more specialized than their associated child classes.
       Parent classes contain more functionality than child classes. Question 3.3. (TCO 4) Select the parent class. (Points : 2)        Automobile
       Convertible
       MiniVan
       Sedan Question 4.4. (TCO 4) Which of the following is not a good example of a hierarchy that could be modeled by
inheritance? (Points : 2)        Person
       Even numbers
       Bank account
       Reptile Question 5.5. (TCO 4) Which of the following examples represent the "is-a" relationship in the parent/child format? (Points : 2)        airplanes/jet
       shapes/circle
       person/student
       All of the above Question 6.6. (TCO 3) Which of the following are the benefits of composition? (Points : 2)        Systems can be tested independently.
       Systems can be built independently.
       Systems can be maintained independently.
       All of the above Question 7.7. (TCO 3) Which of the following are true about composition? (Points : 2)        The type of composition only includes associations, and excludes aggregations.
       Associations and aggregations should be used together in composition.
       The system should be highly dependable.
       Only inheritance can be represented using UML; composition cannot be represented using UML. Question 8.8. (TCO 4) The _____ accessibility establishes that an attribute can only be accessed from methods of the class itself. (Points : 2)        private
       protected
       public
       secured Question 9.9. (TCO 4) Composition is a means of allowing _____. (Points : 2)        reusability in object oriented programming
       objects to communicate
       identification of classes
       All of the above Question 10.10. (TCO 6) The whole list of parent classes from which a child class is derived constitutes the _____ of the child class (Points : 2)        family
       ancestors
       role
       subset Question 1.1. (TCO 3) Which of the following is/are the mechanism(s) for code reuse? (Points : 2)        Inheritance
       Composition
       Inheritance and composition
       None of the above

Explanation / Answer

Question 1.1. (TCO 3) Which of the following is/are the mechanism(s) for code reuse? (Points : 2)        Inheritance and composition Question 2.2. (TCO 4) Which of the following is true about inheritance? (Points : 2)           Inheritance demonstrates the generalization/specialization relationship. Question 3.3. (TCO 4) Select the parent class. (Points : 2)        Automobile Question 4.4. (TCO 4) Which of the following is not a good example of a hierarchy that could be modeled by inheritance? (Points : 2)        Even numbers    Question 5.5. (TCO 4) Which of the following examples represent the "is-a" relationship in the parent/child format? (Points : 2)   All of the above Question 6.6. (TCO 3) Which of the following are the benefits of composition? (Points : 2)           Systems can be maintained independently. Question 7.7. (TCO 3) Which of the following are true about composition? (Points : 2)              Only inheritance can be represented using UML; composition cannot be represented using UML. Question 8.8. (TCO 4) The _____ accessibility establishes that an attribute can only be accessed from methods of the class itself. (Points : 2)        private    Question 9.9. (TCO 4) Composition is a means of allowing _____. (Points : 2)           identification of classes    Question 10.10. (TCO 6) The whole list of parent classes from which a child class is derived constitutes the _____ of the child class (Points : 2)        family

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote