exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 44 discussion

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

You develop an HTML5 webpage that contains the following HTML markup:

Users must receive a message after they click the Submit button if the text entered into the favoriteColor text box is fewer than 2 characters or greater than 10 characters.
You need to implement the testLength() function.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Use three arguments: element, min, max.
Compare element.value with min and max.

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
TeamEcko
5 years, 5 months ago
Is A also right?
upvoted 1 times
lifetocode
5 years, 3 months ago
How will you use given parameters if you get min and max value from given text?
upvoted 1 times
lifetocode
5 years, 3 months ago
and for A element.value length must not be min limit
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 ...