Sign up
Sign in
Topics
Computing
Starting Out with Java From Control Structures through Data Structures
Quiz 3: Decision Structures
Which of the Following Will Format 12
Question 40
Multiple Choice
Which of the following will format 12.78 to display as 012.8? A) 000.0 B) #0.00 C) ###.# D) ##0.0%
Explore answers and all related questions
Related questions
Q 41
What does the following code display? int d = 9,e = 12; System.out.printf("%d %d \ n",d,e); A) %d %d B) 9 12 C) %d 9 D) %9 %12
Q 42
What does the following code display? double x = 12.3798146; System.out.printf("%.2f \ n",x); A) 123798146 B) 1238 C) %12.38 D) 12.38
Q 43
An important style rule you should adopt for writing if statements is to write the conditionally executed statement on the line after the if statement.
Explore all questions