exam questions

Exam 98-382 All Questions

View all questions & answers for the 98-382 exam

Exam 98-382 topic 1 question 23 discussion

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

HOTSPOT -
You are using JavaScript to create a function that calculates admission price.
The function must meet the following requirements:
✑ The function accepts the age of the customer as a parameter
✑ A customer who is less than 5 years old gets in free
✑ A customer who is 65 years old or older gets in free
✑ A customer who is 5 years old to 17 years old, pays $10 USD
✑ All other customers pay $20 USD
How should you complete the code? To answer, select the appropriate code segments 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/jsref/jsref_operators.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
kisskeo
3 years, 7 months ago
Answer - Correct
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 ...