Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam MCD - Level 1 All Questions

View all questions & answers for the MCD - Level 1 exam

Exam MCD - Level 1 topic 1 question 14 discussion

Actual exam question from Mulesoft's MCD - Level 1
Question #: 14
Topic #: 1
[All MCD - Level 1 Questions]

What is the correct way to format the decimal 200.1234 as a string to two decimal places?

  • A. 200.1234 as string {format: ".0#"}
  • B. 200.1234 as string as format: ".0#"
  • C. 200.1234 as String {format: ".0#"}
  • D. 200.1234 as String as format: ".0#"
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
GGameChanger
1 year, 9 months ago
C is correct
upvoted 1 times
...
sirious09
2 years, 3 months ago
Selected Answer: C
C - I agree with C
upvoted 2 times
...
Aquaworm
2 years, 9 months ago
If you are not a Java programmer, you may want to look at the Java documentation for the DecimalFormatter class to review documentation on DecimalFormat patterns. https://docs.oracle.com/javase/8/docs/api/java/text/DecimalFormat.html
upvoted 2 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 ...