Multiple Choice
Which of the following statements displays
Price = 20.00
A) System.out.print("price = ") ;
System.out.printf(price) ;
B) System.out.print("price = ") ;
System.out.printf("%f", price) ;
C) System.out.print("price = ") ;
System.out.printf("%10.2f", price) ;
D) System.out.print("price = ") ;
System.out.printf("%2.10f", price) ;
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
Q18: One way to avoid round-off errors is
Q23: Which one of the following refers to
Q27: Which is the Java equivalent of the
Q29: Which of the following is the
Q38: Which of the following statements about constants
Q57: What is wrong with the following code
Q96: What is the output of the following
Q102: Which one of the following statements defines
Q110: Which of the following statements is correct