What is the result?

Given:


What is the result?
A. 2 : 30
B. 4 : 0
C. 4 : 60
D. 4 : 60
2 : 30
3 : 20
1 : 10
E. The program prints nothing.

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “What is the result?

  1. Be aware while taking an exam, there is maybe a typo in the question, if third Product instance is instantiated like
    new Product(3, 20), then the answer would be 4:60 which is stated under option C.

    Otherwise, the correct answer is 4:70 which is not stated as an answer option.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.