logo
menu
Sign up
  1. Topics
  2. Computing
  3. Starting Out with Java From Control Structures through Data Structures
  4. 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%

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.
logo
QuizPlus
  • About
  • How it work
  • Pricing
Links
  • Privacy Policy
  • Terms And Conditions
  • Refund Policy
Contact Us
  • info@quizplus.com
© 2020-2021 Cozyplus FZ LLC. All rights reserved