Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/10-mcq-which-of-the-following-isare-the-mechanisms-for-code-reuse/
- 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
- 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 contains more functionality than child classes.
- 3. (TCO 4) Select the parent class. (Points : 2)
- Automobile
- Convertible
- MiniVan
- Sedan
- 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
- Employee
- 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) What is/are the reason(s) to use inheritance? (Points : 2)
- Labor division
- Introducing modularity into program
- Reusing design
- All of the above
- 7. (TCO 3) Inheritance always involves a _____ relationship. (Points : 2)
- general to general
- specific to specific
- specific to general
- general to specific
- 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) Inheritance is only possible in _____ languages. (Points : 2)
- procedural
- object-oriented
- GUI based
- non-structured
- 10. (TCO 6) _____ is the ability to combine data and operations on that data into a single unit. (Points : 2)
- Inheritance
- Encapsulation
- Polymorphism
- Composition
- Download: http://solutionzip.com/downloads/10-mcq-which-of-the-following-isare-the-mechanisms-for-code-reuse/
Advertisement
Add Comment
Please, Sign In to add comment