10 MCQ Which of the following is/are the mechanism(s) for code reuse?

Ratings: 1 Star2 Stars3 Stars4 Stars5 Stars (5.00 out of 5) - Rate Now!
Loading...

Download Category:

Which of the following isare the mechanism(s) for code reuse.zip - (163.58 KB)
[
Which of the following isare the mechanism(s) for code reuse/Screenshot.png
Which of the following isare the mechanism(s) for code reuse/Which of the following isare the mechanism(s) for code reuse.docx
]

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

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.