C1S247B – Java – Quiz week 4 (Sample) Solution – Guaranteed 100% score

Lab Price = $10
[orb_cyber_store id=”264″]
Please feel free to send us your queries at: support@iqrajavaid.com
Problem Statement
1. (TCO 3) Composition represents what kind of relationship? (Points : 2)
has – a
is – a
uses – a
None of the above

2. (TCO 4) Which of the following terms can be used to describe inheritance relationships between classes? (Points : 2)
parent/child
super/sub
base/derived
All of the above

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
Employee

5. (TCO 4) Which of the following examples represent(s) the “is-a” relationship in the parent/child format? (Points : 2)
order/rushOrder
employee/manager
course/CIS247B
All 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) In object-oriented programming, inheritance is transitive; that means a child class _____. (Points : 2)
inherits only from its parent class
inherits only selected methods and fields
inherits all the methods and fields of all its ancestors
does not inherit any methods or fields

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) _____ is based on the principle that knowledge of a general category can be applied to more specific objects. (Points : 2)
Polymorphism
Abstraction
Information hiding
Inheritance

10. (TCO 6) _____ is the ability to use a single expression to access different versions of a method depending on the type of object calling the expression. (Points : 2)
Inheritance
Encapsulation
Polymorphism
Composition

Instructions
* Please click on “Buy Now” button to complete the purchase.
* The solution will be emailed to the email address you are going to enter in paypal.
* Your paypal has to be pre-loaded in order to complete the purchase or things may not work for you.
* All the contents are compressed in one zip folder.
* In case of any query, please donot hesitate to contact us on support@iqrajavaid.com.
********************************** Good Luck**********************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on support@iqrajavaid.com
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Payment Details
Lab Price = $10
[orb_cyber_store id=”264″]
Please feel free to send us your queries at: support@iqrajavaid.com

Leave a Reply