Question 1. 1. (TCO 3) Which of the following is/are the mechanism(s) for code r
ID: 3560403 • Letter: Q
Question
Question 1.1. (TCO 3) Which of the following is/are the mechanism(s) for code reuse? (Points : 2) InheritanceComposition
Inheritance and composition
None of the above Question 2.2. (TCO 4) Which of the following design rules apply to inheritance? (Points : 2) Common functionality needs to be pushed to the parent class.
Inheritance hierarchy need not stop at deriving/extending from one level of class.
A child class can itself be a parent class
All of the above Question 3.3. (TCO 4) Select the parent class. (Points : 2) Manager
Executive
Person
Staff 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) Airplanes
Geometric shapes
Animals
Prime numbers Question 5.5. (TCO 4) Which of the following examples represent the "is-a" relationship in the parent/child format? (Points : 2) person/employee
person/student
student/international student
All of the above Question 6.6. (TCO 3) Which of the following concepts support system independence? (Points : 2) Composition
Inheritance
Composition and inheritance
None of the above Question 7.7. (TCO 3) If class B is inherited from class A, which of the following statements is true? (Points : 2) Class A has access to the methods and fields of class B.
Class A has access to the methods and fields of class B and class B's subclasses.
Class B does not have access to the methods and fields of class A.
Class B has access to the methods and fields of class A. Question 8.8. (TCO 4) _____ is the least secure member access specifier. (Points : 2) Public
Friend
Private
Protected Question 9.9. (TCO 4) Inheritance is only possible in _____ languages. (Points : 2) procedural
object-oriented
GUI based
non-structured Question 10.10. (TCO 6) _____ is the ability to combine data and operations on that data into a single unit. (Points : 2) Inheritance
Encapsulation
Polymorphism
Composition 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 design rules apply to inheritance? (Points : 2) Common functionality needs to be pushed to the parent class.
Inheritance hierarchy need not stop at deriving/extending from one level of class.
A child class can itself be a parent class
All of the above Question 3.3. (TCO 4) Select the parent class. (Points : 2) Manager
Executive
Person
Staff 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) Airplanes
Geometric shapes
Animals
Prime numbers Question 5.5. (TCO 4) Which of the following examples represent the "is-a" relationship in the parent/child format? (Points : 2) person/employee
person/student
student/international student
All of the above Question 6.6. (TCO 3) Which of the following concepts support system independence? (Points : 2) Composition
Inheritance
Composition and inheritance
None of the above Question 7.7. (TCO 3) If class B is inherited from class A, which of the following statements is true? (Points : 2) Class A has access to the methods and fields of class B.
Class A has access to the methods and fields of class B and class B's subclasses.
Class B does not have access to the methods and fields of class A.
Class B has access to the methods and fields of class A. Question 8.8. (TCO 4) _____ is the least secure member access specifier. (Points : 2) Public
Friend
Private
Protected Question 9.9. (TCO 4) Inheritance is only possible in _____ languages. (Points : 2) procedural
object-oriented
GUI based
non-structured Question 10.10. (TCO 6) _____ is the ability to combine data and operations on that data into a single unit. (Points : 2) Inheritance
Encapsulation
Polymorphism
Composition
Explanation / Answer
1) Inheritance ( A )
2) All the above ( D )
3) Person ( C )
4) prime Numbers ( D )
5) All above ( D )
6) None of the above ( D )
7) Class B has access to the methods and fields of class A. ( D )
8) public ( A )
9) object-oriented ( B )
10) Encapsulation ( B )
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.