PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the slider control meets the requirements

DRAG DROP
You are developing a web page for runners who register for a race.
The page includes a slider control that allows users to enter their age.
You have the following requirements:
All runners must enter their age.
Applications must not be accepted from runners less than 18 years of age or greater than 90 years.
The slider control must be set to the average age (37) of all registered runners when the page is first
displayed.
You need to ensure that the slider control meets the requirements.
What should you do? (To answer, drag the appropriate word or number to the correct location in
the answer area. Each word or number may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

9 Comments on “You need to ensure that the slider control meets the requirements

  1. Damien says:

    step=”value” makes no sense to me. value is set to 37. This would mean that people could put their age in as 37 or 74. This is obviously not what the requirements are. The default value for the step attribute is 1. This would make sense. value=”default” is the answer.




    0



    0
    1. Al says:

      This has the look of a trick question and it aggravates me. My thoughts were in line with Damien’s, initially. However, the W3C web site states that a valid value for the step attribute is “any positive floating-point number”. Naturally, any invalid value will be ignored by the browser, resulting in the default value of 1 being used, but since a positive number is required per the HTML5 spec, and since the number 1 isn’t among the list of choices, my “closest correct answer” would tend to be 0. But who knows what Microsoft is expecting for an answer!

      http://www.w3.org/wiki/HTML/Elements/input/range




      0



      0
  2. Prakash Bhatta says:

    It is 37 because the range is between 18 to 90 thus if we place default value as 0 it would be no sense so it must be 37 which is in between 18 and 90.




    0



    0
  3. rik says:

    Based on the fact that ‘step=”value”‘ is considered the correct answer here, the only incorrect answers for the step value must be “18”, “90”, “100” and “37”.

    All other answers are invalid values for the step attribute (just like ‘step=”value”‘) and will therefore be ignored by the browser, resulting in a properly functioning slider.

    It’s aggravating because this is not testing our knowledge, merely our ability to read Microsoft mind.




    1



    0

Leave a Reply