NEW
Font size
S
M
L
XL
WorksheetsUID uCertify Chapter 9 Test
Total questions: 20
Worksheet time: 10mins
Name
Class
Date
1.
Which HTML5 <form> attribute assists with form completion and validation by reducing the amount of manual typing a user must do to complete a form?
a)
The placeholder attribute
b)
The autofocus attribute
c)
The novalidate attribute
d)
The autocomplete
attribute
attribute
2.
When would you include the novalidate attribute with the <form> element?
a)
If you decide to perform validation only on the client side and not on the server side
b)
If you decide to bypass HTML5
form validation
form validation
c)
If you decide to validate the form manually
d)
If you decide to perform
validation on both the client side and server side
validation on both the client side and server side
3.
Which statement about form data submission attributes is true?
a)
For HTML5-compliant browsers, data submission attributes of the <input> element will override data submission attributes in the <form> element.
b)
For HTML5-compliant browsers, data submission attributes of the <form> element will override data submission attributes in the <input> element.
c)
Browsers that do not support HTML5 will default to the <input> tag instructions for data submission.
d)
Browsers that do not support HTML5 will ignore data submission attributes of both the <input> and <form> elements.
4.
Which HTML5 <input> attribute can you use to direct users to the first required field in a form when they load the form in their browsers?
a)
The required
attribute
attribute
b)
The
autocomplete
attribute
autocomplete
attribute
c)
The autofocus
attribute
attribute
d)
The placeholder attribute
5.
Which element creates a "Reset" button that changes all user input and settings in a form back to their original values?
a)
The <button type=
"reset"> element
"reset"> element
b)
The <button type=
"submit"> element
"submit"> element
c)
The <reset type=
"submit"> element
"submit"> element
d)
The <reset type="button"> element
6.
You can use the <input type="submit"> element to create a standard "Submit" button. What distinguishes <button type="submit"> from <input type="submit">?
a)
The <button> element
allows text and images to be placed within its tags; the <input> element does not.
allows text and images to be placed within its tags; the <input> element does not.
b)
The <input> element allows text and images to be placed within its tags; the <button> element does not.
c)
The <button> element can be interpreted by non-HTML5-compliant browsers; the <input> element cannot.
d)
The <input> element can use HTML global attributes; the <button> element cannot.
7.
Why would you include the HTML formaction global attribute in the <button type="submit"> element?
a)
To specify the form(s) on the page in which the <button> element appears by binding the button to the form
b)
To specify the HTTP method for sending form input to the server-side script that will process the information
c)
To specify a name or keyword that indicates where to display the response to the user after he or she has submitted the form
d)
To specify where to send user input when the form is submitted
8.
What can be considered a disadvantage of waiting to validate user input in a form until the user completes the form and clicks the Submit button?
a)
Some users may become frustrated if each form field into which they enter data displays a pop-up warning if the entry is not valid for that field.
b)
Some users may become frustrated if they need to submit and resubmit a form until it validates.
c)
Users will need to submit the form only once, which increases the likelihood of errors in the form.
d)
Most server-side scripts will not accept a form that has been validated only once before submission.
9.
To what does the term "pogo-sticking" refer when talking about Web forms?
a)
A process that tests data input by users in a Web form to verify whether the input follows a specified format or meets minimum requirements for character number or type
b)
A type of user input validation in which the user input in each field of a form is validated as the user completes it, before the form is submitted
c)
The process of submitting a form to a server-side script after validating user input
d)
A process that occurs when users must submit and resubmit a form until it validates
10.
User input validation in Web pages ensures that:
a)
user-entered data is properly formatted and complete.
b)
a form has a "Submit" button users can click to submit the form to a server-side script.
c)
a form has a "Reset" button users can click to clear the form data and re-enter information into the form fields.
d)
user-entered data is truthful and not fraudulent.
11.
What is the term for a type of user input validation in which the user input in each field of a form is validated as the user completes it, before the form is submitted?
a)
Pogo-sticking
b)
Graceful
degradation
degradation
c)
Embedded
validation
validation
d)
Inline validation
12.
Which statement is true about inline validation of data input by users in a Web form?
a)
Inline validation can ensure that user-entered data is truthful and not fraudulent.
b)
Users can resolve errors as they fill out each form field and submit the completed, validated form just once.
c)
Inline validation can lead to pogo-sticking and frustrate users who are in a hurry to complete the form.
d)
Users must fill out the form and click the Submit button before the form can be validated.
13.
What can be considered a limitation of user input validation techniques?
a)
They focus only on the format of data entered in form fields.
b)
They do not include checks for truthful information.
c)
They focus only on the completion of form fields.
d)
They are a waste of time if the form is to be validated by the server processing the form.
14.
Which statement is true regarding client-side vs. server-side user input validation?
a)
Server-side validation is needed in case a browser does not support client-side validation.
b)
Client-side validation is needed in case a browser does not support server-side validation.
c)
Server-side validation can be disabled in the browser but client-side validation cannot.
d)
Client-side validation will require the user to re-submit a form if it finds errors that the server-side validation may have missed.
15.
What is the result of including the HTML5 required attribute in an <input> field?
a)
The required attribute provides inline
validation.
validation.
b)
The required attribute
displays a red marker next to an empty field that needs data input.
displays a red marker next to an empty field that needs data input.
c)
The required attribute displays a green check mark when a valid entry is entered into the field.
d)
The required attribute provides validation upon form submission.
16.
Which HTML5 attribute can you use with the <input> element to prevent typos and unexpected formatting by restricting user-entered data to a specific pattern?
a)
The pattern
attribute
attribute
b)
The placeholder attribute
c)
The required attribute
d)
The novalidate attribute
17.
What type of data input would an HTML5 pattern attribute of "^.+@.+$" indicate?
a)
An e-mail address
b)
A URL
c)
A date
d)
A price
18.
Which HTML5 input type results in a field that is usually displayed as a slider?
a)
<input type="number">
b)
<input type="range">
c)
<input type="date">
d)
<input type="time">
19.
Prior to HTML5, what did Web developers primarily use to provide inline validation for HTML forms?
a)
Third-party plug-ins
b)
JavaScript
c)
Java
d)
CSS
20.
Which element creates a "Submit" button that submits all user input in a form to a server for processing?
a)
The <button type=
"submit"> element
"submit"> element
b)
The <button type=
"reset"> element
"reset"> element
c)
The <submit type=
"button"> element
"button"> element
d)
The <submit type="submit"> element
Reset
