The statement System.out.printf("%3.1e", 1234.56) outputs ___________.
a. 0.1e+04
b. 0.123456e+04
c. 0.123e+04
d. 1.2e+03
e. 1.23+03
d. 1.2e+03
%3.1e specifies a scientific notation with one digit after the decimal point. So, the correct answer is D.
Computer Science & Information Technology
You might also like to view...
Which of the following charateristics is generally found on docking station that port replicators do not offer?
A. Replicators usually have more USB ports than docks B. Docks generally do not need separate power to function C. Docks have independent hardware that replicators lack D. Replicators have additional NIC that docks lack
Computer Science & Information Technology
An error in a program's code is referred to as a ____.
A. feature B. function C. mental exercise D. bug
Computer Science & Information Technology