exam questions

Exam 98-382 All Questions

View all questions & answers for the 98-382 exam

Exam 98-382 topic 1 question 10 discussion

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

You are creating a web page that allows customers to choose how hot their spice is. If they choose spicy, a warning should be displayed.
You create the following form. Line numbers are included for reference only.

You create the following JavaScript code to display the warning.

When you choose spicy and click Order, the warning fails to display.
You need to solve this problem.
What should you do?

  • A. Change line 07 to <button onchange = "checkWarning();">Order</button>
  • B. Change line 07 to <button onclick = "checkWarning;">Order</button>
  • C. Change line 10 to var option.value = document.forms.orderForm["heatIndex"];
  • D. Change line 10 to var option = document.forms.orderForm["heatIndex"].value;
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
References: https://www.w3schools.com/jsref/coll_doc_forms.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
rgast450
2 years, 4 months ago
Or is it?????
upvoted 1 times
...
kisskeo
3 years, 8 months ago
D - Correct
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 ...