question archive 1) Which of the following statements about check boxes is true? Each check box must have a unique id attribute
Subject:Computer SciencePrice:4.87 Bought7
1) Which of the following statements about check boxes is true?
Each check box must have a unique id attribute. |
|
The name and id attributes of each check box should be set to the same value. |
|
Each check box is independent of the other check boxes on a page. |
|
All of the above. |
2. How can you clear a check from a Checkbox object?
set its clear property to true |
|
set its checked property to false |
|
set its value property to an empty string |
|
call its blur() method |
3. What property of the Radio object is used to determine if a radio button is selected?
the value property |
|
the checked property |
|
the selected property |
|
the radio property |
4. What property would you use to get the text that has been entered into a text area?
value |
|
text |
|
name |
|
string |
5. What method would you use to remove the focus from a control?
focus() |
|
blur() |
|
remove() |
|
value() |
6. What event occurs when the user selects a new item from a select list?
click |
|
dblclick |
|
change |
|
select |
1)
Answer: Each check box must have a unique id attribute.
Explanation: To identify each checkbox separately, each check box must have a unique id.
2)
Answer: set its checked property to false
Explanation: By setting the checked property to false will clear the checkbox checked state.
3)
Answer: the checked property
Explanation: If the checked property is true then it can be said that the radio button is selected.
4)
Answer: value
Explanation: The value property is used to get the text that has been entered into a text area.
5)
Answer: blur()
Explanation: The blur() function removes the focus from a control.
6)
Answer: change
Explanation: When the new item is selected, the change event will get triggered.