1. (TCO 3) Composition represents what kind of relationship? (Points : 2)
has - a
is - a
makes - a
None of the above
2. (TCO 4) Select the false statement regarding inheritance. (Points : 2)
A child class can have more functionality than a parent class.
A child class can itself be a parent class.
Common functionality needs to be designed in the parent class.
A parent class is usually more specific than its child class.
3. (TCO 4) Select the parent class. (Points : 2)
Manager
Executive
Person
Staff
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
Prime numbers
Employees
5. (TCO 4) Which of the following examples represent(s) the “is-a” relationship in the parent/child format? (Points : 2)
dog/cat
rectangle/circle
checking account/saving account
None of the above
6. (TCO 3) Which of the following concepts support(s) system independence? (Points : 2)
Composition
Inheritance
Composition and inheritance
None of the above
7. (TCO 3) Which of the following is true about composition? (Points : 2)
Composition only includes associations; it excludes aggregations.
Associations and aggregations are types of composition.
A system should be highly dependable.
Only inheritance can be represented using UML; composition cannot be represented using UML.
8. (TCO 4) _____ is the least secure member access specifier. (Points : 2)
Public
Friend
Private
Protected
9. (TCO 4) _____ is based on the principle that knowledge of a general category can be applied to more specific objects. (Points : 2)
Polymorphism
Encapsulation
Information hiding
Inheritance
10. (TCO 6) Which of the following is/are benefits of using inheritance? (Points : 2)
Smaller chance of errors
Ease of use for users of class
Time saving
All of the above
Composition represents what kind of relationship
- Technology: Multiple-Choice-Questions
- Code: SHC_MCQ_10011
-
$9.99
Tags: Multiple choice question, MCQ, java, c++, cpp, object oriented programming, oop, Composition, inheritance