exam questions

Exam 98-382 All Questions

View all questions & answers for the 98-382 exam

Exam 98-382 topic 1 question 20 discussion

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

HOTSPOT -
You are planning to use the Math object in a JavaScript application. You write the following code to evaluate various Math functions:

What are the final values for the three variables? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
References: https://www.w3schools.com/js/js_math.asp

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
Ciupaz
Highly Voted 4 years, 9 months ago
Remember that Math.round(4.5) return 5 (not 4).
upvoted 7 times
w35l3y
4 years ago
So? `Math.round(100.5)` returns 101
upvoted 3 times
...
...
dev_ash
Most Recent 3 years, 3 months ago
I remember it as "up to the ceiling" (101), "down to the floor" (100), and for round .5 or greater round up (101), if it's >.5 round down
upvoted 1 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 ...