Multiple Choice
Assume the following variables have been declared and given values as shown:
Int i = 2345;
Double m = 67.8;
What will be printed by the statement below?
System.out.printf ("Values are %10d and %7.2f", i, j) ;
A) Values are 2345 and 67.8
B) Values are 2345 and 67.80
C) Values are 2345 and 67.80.
D) Values are %10d and %7.2f 2345 67.8
Correct Answer:

Verified
Correct Answer:
Verified
Q6: What is the value of Math.abs(-2)?<br>A)-2<br>B)0<br>C)2<br>D)4
Q7: Assume the following variable has been declared
Q19: Which of the methods below are static
Q34: Consider the following division statements:<br>I.22 / 7<br>II.22.0
Q37: What is wrong with the following code
Q38: What will be printed by the statements
Q45: When you purchase donuts, they come in
Q101: What is the meaning of x =
Q106: What happens to the fractional part when
Q123: Which one of the following statements can