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

1. (TCO 3) Composition represents what kind of relationship? (Points : 2) has -

ID: 3638050 • Letter: 1

Question

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


2. (TCO 4) Select the false statement regarding inheritance. (Points : 2)
A child class can have more functionality than parent class.
A child class can itself be parent class.
Common functionality needs to be designed in the parent class.
Parent classes are usually more specific child classes.


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)
Person
Even numbers
Bank account
Reptile


5. (TCO 4) Which of the following examples represent the "is-a" relationship in the parent/child format? (Points : 2)
order/rushOrder
manager/executive
course/CIS247C
All of the above


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


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.


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


9. (TCO 4) Which of the following refers to a class that inherits from a parent class? (Points : 2)
Child classes
Derived classes
Subclass classes
All of the above


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) has-a 2) Parent classes are usually more specific child classes. 3) Person 4) Even numbers 5) All of the above 6) None of the above 7) Associations and aggregations should be used together in composition. 8) private 9) All of the above 10) Encapsulation