Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
New Perspectives on HTML5 CSS3 and JavaScript
Quiz 13: Programming for Web Forms Tutorial
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 61
Multiple Choice
Case based critical thinking Case 13-1 Sarah wants to set the value of an input control. She applies the element.value = value; expression. Which of the following methods should Sarah use to return the default value for the input box?
Question 62
Matching
Match the following validation states to their respective descriptions.
Premises:
Responses:
The element contains data whose character length exceeds the value of the length attribute.
element.validity.customError
The field element, element , contains data that the browser is unable to convert.
element.validity.tooLong
The element contains data that does not match the data type specified by the type attribute.
element.validity.badInput
Premises:
The element contains data whose character length exceeds the value of the length attribute.
The field element, element , contains data that the browser is unable to convert.
The element contains data that does not match the data type specified by the type attribute.
Responses:
element.validity.customError
element.validity.tooLong
element.validity.badInput
Question 63
Multiple Choice
Case based critical thinking Case 13-5 William is exploring the syntax of regular expressions. He learns that in the regular expression language, a word refers to any string of symbols consisting solely of word characters. He also learns that word boundaries are indicated by the \b symbol. He wants to use a pattern that matches any word that starts with the characters "great" such as "greater", "greatness", or "greatest" Which of the following patterns should William use?
Question 64
Matching
Match the following properties/methods to their respective descriptions.
Premises:
Responses:
Allows the browser to automatically complete form fields
form.submit()
Returns the number of elements in the form
form.length
Submits the web form
form.autocomplete
Premises:
Allows the browser to automatically complete form fields
Returns the number of elements in the form
Submits the web form
Responses:
form.submit()
form.length
form.autocomplete
Question 65
Multiple Choice
Case based critical thinking Case 13-4 Samantha is working on a web document. She wants to direct the browser to retrieve specific information about a URL, to reload the current page, and to load an entirely new page. Which of the following commands can Samantha use to load a new page in the current window?
Question 66
Multiple Choice
Case based critical thinking Case 13-3 Thomas is working on reference forms and form fields. He wants to use event handlers that can respond to user actions within a form. He uses the element.onchange event handler. Identify the description of the event handler Thomas has used.
Question 67
Matching
Match the following validation states to their respective descriptions.
Premises:
Responses:
The element contains data whose character length exceeds the value of the length attribute.
element.validity.patternMismatch
The element contains valid data, satisfying all constraints.
element.validity.customError
The field element, element , contains data that the browser is unable to convert.
element.validity.typeMismatch
Premises:
The element contains data whose character length exceeds the value of the length attribute.
The element contains valid data, satisfying all constraints.
The field element, element , contains data that the browser is unable to convert.
Responses:
element.validity.patternMismatch
element.validity.customError
element.validity.typeMismatch
Question 68
Multiple Choice
Case based critical thinking Case 13-4 Samantha is working on a web document. She wants to direct the browser to retrieve specific information about a URL, to reload the current page, and to load an entirely new page. Identify the object that Samantha should use to meet her desired requirements.
Question 69
Multiple Choice
Case based critical thinking Case 13-2 Lisa can control the number of digits displayed by the browser using the toFixed() method. However, since the toFixed() method is limited to only defining the decimal place accuracy, she wants to use a method that gives her more control over the numeric format, such as formatting numbers as currency or separating thousands with the comma symbol. Which of the following methods should Lisa use to format the numbers as currency?
Question 70
Multiple Choice
Case based critical thinking Case 13-3 Thomas is working on reference forms and form fields. He wants to use event handlers that can respond to user actions within a form. He uses the element.onchange event handler. Which event handler should Thomas use for options buttons and check boxes in response to the user clicking those elements?
Question 71
Matching
Match the following properties/methods to their respective descriptions.
Premises:
Responses:
Resets the web form
form.reset()
Initiates autocompletion of those form fields that have autocomplete activated
form.length
Submits the web form
form.submit()
Premises:
Resets the web form
Initiates autocompletion of those form fields that have autocomplete activated
Submits the web form
Responses:
form.reset()
form.length
form.submit()
Question 72
Matching
Match the following properties/methods to their respective descriptions.
Premises:
Responses:
Allows the browser to automatically complete form fields
element.validity.tooLong
The element contains valid data, satisfying all constraints.
form.reset()
The element contains data that does not match the character pattern specified in the pattern attribute.
element.validity.valid
Premises:
Allows the browser to automatically complete form fields
The element contains valid data, satisfying all constraints.
The element contains data that does not match the character pattern specified in the pattern attribute.
Responses:
element.validity.tooLong
form.reset()
element.validity.valid
Question 73
Essay
Explain how the Luhn Algorithm can be used to test for legitimate card numbers.
Question 74
Essay
Explain how you can work with radio buttons and check boxes.
Question 75
Essay
Explain how you can work with selection lists.
Question 76
Multiple Choice
Case based critical thinking Case 13-1 Sarah wants to set the value of an input control. She applies the element.value = value; expression. What does element signify in the expression that Sarah has used?