exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 3 question 22 discussion

Actual exam question from Microsoft's 70-480
Question #: 22
Topic #: 3
[All 70-480 Questions]

HOTSPOT -
You develop an HTML5 webpage that contains the following markup and code:

You have the following requirements:
✑ Display a message if users select the first OPTION element, and then submit the form.
✑ Do not display an alert message if users select any other OPTION element, and then submit the form.
You need to implement the madeSelection() function.
How should you complete the relevant code? (To answer, select the appropriate code segment from each drop-down list in the answer area.)
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
* The <select> element is used to create a drop-down list.
The <option> tags inside the <select> element define the available options in the list.
* option.value
text
Specifies the value to be sent to a server
Reference: HTML <option> Tag

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
MFDOOM
Highly Voted 5 years, 3 months ago
Answer is correct, your return false because you do not want to submit the current selected value, which is "Please Choose".You keep the focus on that selected option so that a user can choose again,you do not clear anything as this is not an input box where a user types in their own custom values but rather options are pre-determined for user.
upvoted 5 times
...
TonyBezerra
Most Recent 5 years, 6 months ago
I beleave they asked to no submit the form, if the first option have been choose, so, if i'm right, return false is the correct option, as well to give the focus for the element. But i think clear is right too...
upvoted 2 times
...
JMz123
5 years, 8 months ago
Why the element focus?
upvoted 2 times
...
JMz123
5 years, 8 months ago
why return false if the form is supposed to be submitted even if they have not selected anything?
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 ...