exam questions

Exam 98-388 All Questions

View all questions & answers for the 98-388 exam

Exam 98-388 topic 1 question 4 discussion

Actual exam question from Microsoft's 98-388
Question #: 4
Topic #: 1
[All 98-388 Questions]

HOTSPOT -
You need to evaluate the following Java program. Line numbers are included for reference only.

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Adrian
3 years, 11 months ago
public class MyClass { public static void main(String args[]) { double pi = Math.PI; System.out.format("Pi is %.3f%n", pi); System.out.format("Pi is %.0f%n", pi); System.out.format("Pi is %09f%n", pi); } }
upvoted 1 times
...
Abhitera
4 years, 3 months ago
All answers are correct
upvoted 1 times
...
ouzss
4 years, 5 months ago
output of line 5 is 03.141593
upvoted 2 times
Rakss
4 years, 4 months ago
how? please explain
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...