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

Verified
Correct Answer:
Verified
Q5: Which statement is true about variable names
Q53: Which one of the following statements displays
Q94: Which of the following statements places input
Q96: What is the output of this code
Q99: What is the output of the following
Q100: Which of the following is the mathematical
Q102: Which one of the following statements defines
Q103: Assuming that the user inputs a value
Q106: What is the output of this code
Q113: How do you extract the first 5