exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 12 discussion

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

You develop an HTML5 webpage that contains the following HTML markup:
<input id="loanTermTextBox" type="text" />
Users must enter a valid integer value into the text box.
You need to validate the data type that is received from the input element.
Which two code segments should you include on the webpage? (Each correct answer presents a complete solution. Choose two.)

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
  • E. Option E
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️
* parseInt
The parseInt() function parses a string and returns an integer.
)
Required. The string to be parsed
Optional. A number (from 2 to 36) that represents the numeral system to be used.
* The isNaN() function determines whether a value is an illegal number (Not-a-Number).
This function returns true if the value is NaN, and false if not.
Reference: JavaScript parseInt() Function; JavaScript isNaN() Function

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
MrAnderson
5 years, 1 month ago
A and B has the same answer?
upvoted 1 times
nelaed
4 years, 11 months ago
First line is different.
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 ...