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.)

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.)

Answer:



Leave a Reply 9

Your email address will not be published. Required fields are marked *


Damien

Damien

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.

Al

Al

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

Prakash Bhatta

Prakash Bhatta

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.

rik

rik

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.

coder12878

coder12878

Couldn’t agree more!

dude

dude

A value of 0 also sets the step to 1. I can only assume that ‘step=”value”‘ is a mistype.

J

J

Yes Step 0 indeed sets step to 1. Tested in IE.

mieke

mieke

So it should be 0 then?