ISDS Final 13, LSU ISDS 3105 Final Exam – Q’s And A’s
Since a page can contain multiple web forms, JavaScript organizes the forms
into _____ object collection. Right Ans - document.forms[idref]
Which of the following expressions can be used to reference a form element
using its name or id attribute? Right Ans - form.elements.ename;
Identify the input field property or method that can be used to remove the
focus from the input box.
a. input.focus()
b. input.pattern
c. input.blur()
d. input.required Right Ans - input.blur()
Identify the input field property or method that can be used to return the
current value displayed in the input box. Right Ans - input.value
Which of the following selection list properties returns true if more than one
option can be selected from the list? Right Ans - select.multiple
_____ is a selection list property that returns the number of options displayed
in the selection list. Right Ans - select.size
Identify the options object collection in which the selection list options are
organized. Right Ans - select.options[idref]
Identify the description of the option.selected property. Right Ans - It
returns true if the option has been selected by user.
Radio buttons are grouped by a common field name placed within the _____
array. Right Ans - options[idref]
The _____ property returns a Boolean value indicating whether the option
button, option, is currently checked by a user. Right Ans - option.checked
Which of the following CSS selector returns the option button that is checked
within the protection field? Right Ans - input[name="protection"]:checked
, Identify the toLocaleString() method that gives you more control while
formatting numeric values. Right Ans - value.toLocaleString(locale,
{options})
Which of the following descriptions corresponds to the currency:code option
from the toLocaleString() method? Right Ans - Currency symbol to use for
currency formatting where code designates the country or language
The _____ option from the toLocaleString() method indicates whether to use a
thousands grouping symbol (true) or not (false). Right Ans - useGroup:
Boolean
For options buttons and check boxes, use the _____ event handler in response
to the user clicking those elements. Right Ans - onclick
In many web forms, important data is stored within _____ so that the data is
available to programmers but removed from the user's control. Right Ans -
hidden fields
Identify the reason for which <form method="get" action="url"> attribute is
added to a form element. Right Ans - To append form data to the URL
Using the _____, you can direct the browser to retrieve specific information
about the URL, to reload the current page, or to load an entirely new page.
Right Ans - location object
Identify the method associated with browser locations that can find the
protocol, hostname, and port number of the URL. Right Ans -
location.origin
Which of the following location methods returns the href portion of the
location's URL? Right Ans - location.toString()
Identify the object constructor that can be used to create a text string
explicitly. Right Ans - stringVar = new String(var);
Which of the following methods can be used to reference a character at the
index i of the string? Right Ans - string.charAt(I)
Since a page can contain multiple web forms, JavaScript organizes the forms
into _____ object collection. Right Ans - document.forms[idref]
Which of the following expressions can be used to reference a form element
using its name or id attribute? Right Ans - form.elements.ename;
Identify the input field property or method that can be used to remove the
focus from the input box.
a. input.focus()
b. input.pattern
c. input.blur()
d. input.required Right Ans - input.blur()
Identify the input field property or method that can be used to return the
current value displayed in the input box. Right Ans - input.value
Which of the following selection list properties returns true if more than one
option can be selected from the list? Right Ans - select.multiple
_____ is a selection list property that returns the number of options displayed
in the selection list. Right Ans - select.size
Identify the options object collection in which the selection list options are
organized. Right Ans - select.options[idref]
Identify the description of the option.selected property. Right Ans - It
returns true if the option has been selected by user.
Radio buttons are grouped by a common field name placed within the _____
array. Right Ans - options[idref]
The _____ property returns a Boolean value indicating whether the option
button, option, is currently checked by a user. Right Ans - option.checked
Which of the following CSS selector returns the option button that is checked
within the protection field? Right Ans - input[name="protection"]:checked
, Identify the toLocaleString() method that gives you more control while
formatting numeric values. Right Ans - value.toLocaleString(locale,
{options})
Which of the following descriptions corresponds to the currency:code option
from the toLocaleString() method? Right Ans - Currency symbol to use for
currency formatting where code designates the country or language
The _____ option from the toLocaleString() method indicates whether to use a
thousands grouping symbol (true) or not (false). Right Ans - useGroup:
Boolean
For options buttons and check boxes, use the _____ event handler in response
to the user clicking those elements. Right Ans - onclick
In many web forms, important data is stored within _____ so that the data is
available to programmers but removed from the user's control. Right Ans -
hidden fields
Identify the reason for which <form method="get" action="url"> attribute is
added to a form element. Right Ans - To append form data to the URL
Using the _____, you can direct the browser to retrieve specific information
about the URL, to reload the current page, or to load an entirely new page.
Right Ans - location object
Identify the method associated with browser locations that can find the
protocol, hostname, and port number of the URL. Right Ans -
location.origin
Which of the following location methods returns the href portion of the
location's URL? Right Ans - location.toString()
Identify the object constructor that can be used to create a text string
explicitly. Right Ans - stringVar = new String(var);
Which of the following methods can be used to reference a character at the
index i of the string? Right Ans - string.charAt(I)