Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Objects representing each of the controls in a form are stored in the (blank)

ID: 651222 • Letter: 1

Question

1. Objects representing each of the controls in a form are stored in the (blank) collection.

A. forms

B. controls

C. inputs

D. elements

2. Which of the following type values for the input element does not enable you to provide users with a limited set of choices?

A.   radio

B. email

C.   checkbox

D. range

3. What value of the selectedIndex property of a select object corresponds to no selection?

A. -1

B. 0

C. 1

D. false

4. To simulate the behavior of placeholder text in older browsers, you can instead set the value of the (blank) property?

A. src

B. alt

C. title

D. value

5. Which event do you use to call a function when a user selects a field or moves the insertion point into a field?

A. blur

B. focus

C. click

D. formatinput

6. Which event do you use to call a function when a field is no longer selected, or a user moves the insert point to a different field?

A. blur

B. focus

C. click

D. formatinput

7. Which of the following attributes determines whether a check box or option button is selected?

A. checked

B. defaultChecked

C. selected

D. focus

8. What do you assign to the value property of a text input box to remove its content?

A. false

B. true

C.

Explanation / Answer

===================================================================================1. Objects representing each of the controls in a form are stored in the (blank) collection.
   A. forms
   B. controls
   C. inputs
   D. elements
Ans:
   A.C. inputs
Explanation:

   All forms defined as collections of input fields.
===================================================================================2. Which of the following type values for the input element does not enable you to provide users with a limited set of choices?
   A. radio
   B. email
   C. checkbox
   D. range
Ans:
   C. checkbox
Explanation:

   Checkbox have multiple options to choose
===================================================================================3. What value of the selectedIndex property of a select object corresponds to no selection?
   A. -1
   B. 0
   C. 1
   D. false
Ans:
   A.-1
Explanation:

   If no option is selected, the selectedIndex property contains -1.
===================================================================================4. To simulate the behavior of placeholder text in older browsers, you can instead set the value of the (blank) property?
   A. src
   B. alt
   C. title
   D. value
Ans:
   D. value
Explanation:

   Using value function we can simulate behaviour of text.
===================================================================================5. Which event do you use to call a function when a user selects a field or moves the insertion point into a field?
   A. blur
   B. focus
   C. click
   D. formatinput
Ans:
   C. click
Explanation:

   onClick function is used when some option is selected or some input is entered in text field.
===================================================================================
6. Which event do you use to call a function when a field is no longer selected, or a user moves the insert point to a different field?
   A. blur
   B. focus
   C. click
   D. formatinput
Ans:
   A. blur
Explanation:

   The blur event occurs when an element loses focus.
===================================================================================
7. Which of the following attributes determines whether a check box or option button is selected?
   A. checked
   B. defaultChecked
   C. selected
   D. focus
Ans:
   A. checked
Explanation:

   checked is used for both check box and buttons.
===================================================================================
8. What do you assign to the value property of a text input box to remove its content?
   A. false
   B. true
   C.