Not a good example of a hierarchy that could be modeled


1. (TCO 3) Composition represents what kind of relationship?
has - a
is - a
makes - a
None of the above

2. (TCO 4) Which of the following design rules apply to inheritance?
Common functionality needs to be pushed to the parent class.
In an inheritance hierarchy, you need not stop at deriving/extending from one level of class.
A child class can itself be a parent class.
All of the above

3. (TCO 4) Select the parent class.
Circle
Shape
Cylinder
Rectangle

4. (TCO 4) Which of the following is not a good example of a hierarchy that could be modeled by inheritance?
Order
Dog
Animals
Odd numbers

5. (TCO 4) Which of the following examples represent(s) the "is-a" relationship in the parent/child format?
dog/cat
rectangle/circle
checking account/saving account
None of the above

6. (TCO 3) Which of the following concepts support(s) system independence?
Composition
Inheritance
Composition and inheritance
None of the above

7. (TCO 3) If class B inherits from class A, which of the following statements is true?
Class A has access to the methods and data members of class B.
Class A has access to the methods and data members of class B and class B's subclasses.
Class B does not have access to the methods and data members of class A.
Class B has access to the public and protected methods and data members of class A.

8. From most protection to least, the order of access modifiers is
protected, private, public
private, protected, public
private, public, protected
protected, public, private

9. (TCO 4) Inheritance is only possible in _____ languages.
procedural
object-oriented
GUI based
non-structured 

10. (TCO 6) Which of the following is/are benefits of using inheritance?
Smaller chance of errors
Ease of use for users of class
Time saving
All of the above 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Not a good example of a hierarchy that could be modeled
Reference No:- TGS094267

Expected delivery within 24 Hours