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

3. [10 points) Multiple Choice Questions: What will be output by the following J

ID: 3728530 • Letter: 3

Question

3. [10 points) Multiple Choice Questions: What will be output by the following Java statement? System.out.printin ( (double) (12/5)) a. i. 2.4 iv. 2.5 What will be output by the following Java statement? System.out.printin ((int) 12.0/5)) b. i. 2.4 iv. 2.5 Suppose we have defined int m = 18, n = 4; The value of the following expression: m n +m&n; c. i. 6.5 iv. 100 d. A method is recursive if i. it contains a loop ii. it contains an invocation of itself ii. it has no parameters iv. it returns a value that is not a primitive type

Explanation / Answer

3)
a) i)2.4
b) iii)2
c) ii)6
d) ii)it contains an invocation of itself
e) ii) 0 to 69
f) iii)4
g) ii) An object of class Able could be assigned to b1,but an object of class
Baker could not be assigned to a1
I) iii) can be modified by a method outide the class if it is a class type ,
using a mutator method
j) iV) four one three two

____________________Thank You

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote