Multiple Choice
Suppose that you have the declaration: int num = 94; double x = 73.92; String str = "Programming"; What is the output of the following statements? System.out.println("123456789012345678901234567890") ; System.out.printf("%5d%6.2f %15s%n", num, x, str) ;
A) 123456789012345678901234567890.
B) 123456789012345678901234567890.0
C) 1234567890123456789012345678900
D) 1234567890123456789012345678904
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Based on the code above, what is
Q2: Suppose z = 1834.762. The output of
Q3: String variables are reference variables.
Q4: What is the output of the following
Q6: The method printf is used only to
Q7: The classes Integer, Float, and Double are
Q8: In a format specifier, the option width
Q9: The value of the expression Integer.parseInt("+782") is
Q10: In the class String, the substring method
Q11: Which statement instructs a program to run