Quiz: 6. Web Forms

Ace your homework & exams now with Quizwiz!

What happens if you omit the size attribute when you use the <select> tag to create a select list? a. No items will appear in the list. b. No more than four items will appear in the list. c. The number of items that will appear in the list by default will depend on the browser. d. The scrolling list box will appear as a blank box with an "X" in it.

c. The number of items that will appear in the list by default will depend on the browser.

When you submit a Web form, the browser sends the information entered in this form to the Web server as: a. a server-side script. b. hexadecimal code. c. a raw text string. d. a client-side script.

c. a raw text string.

When creating Web forms, you use the <input> tag to: a. create single-option and multiple-option lists from which the user can choose items. b. create form fields into which the user can enter multiple lines of text. c. create text boxes, check boxes, radio buttons, and the Submit and Reset buttons. d. create a form into which you can input various form fields.

c. create text boxes, check boxes, radio buttons, and the Submit and Reset buttons.

You are creating a select list for your Web form. You want to allow users to choose more than one response from your list. Which attribute and value should you add to the <select> tag to allow this? a. value="multiple" b. type="multiple" c. multiple="multiple" d. multiple="yes"

c. multiple="multiple"

When you create a text box field, you should use the size attribute to: a. specify the minimum number of characters a user must enter into the text box. b. specify the visual width of the text box in pixels. c. specify the visual width of the text box in characters. d. specify the maximum number of characters a user can enter into the text box.

c. specify the visual width of the text box in characters.

When creating Web forms, you use the <input> tag to:

create text boxes, check boxes, radio buttons, and the Submit and Reset buttons.

Which of the following actions will redisplay Web form fields with their default values? a. Submitting the form b. Resetting the form c. E-mailing the form d. Processing the form

b. Resetting the form

Which of the following actions will upload user data from a Web form to the receiving server? a. Storing the form b. Submitting the form c. Processing the form d. Resetting the form

b. Submitting the form

When creating a Web form, which tag should you use to create a list from which users can choose one or more options? a. The <select> tag b. The <form> tag c. The <input> tag d. The <textarea> tag

a. The <select> tag

Which attribute is associated with the <form> element and is used to specify the name and location of the CGI script used to process the form? a. The action attribute b. The method attribute c. The name attribute d. The type attribute

a. The action attribute

Which choice correctly specifies the attribute and value needed in an <input> tag for a group of radio buttons to designate a preselected option? a. The checked="checked" attribute and value b. The checked="select" attribute and value c. The checked="yes" attribute and value d. The checked="on" attribute and value

a. The checked="checked" attribute and value

The main difference between form creation in HTML5 versus form creation in HTML 4.01 is:

Cascading Style Sheets (CSS) are used for all form styles.

What is the term for code embedded into an HTML page and downloaded by a user to help process Web form input?

Client-side script

Which of the following is the de facto standard used to process Web forms?

Common Gateway Interface (CGI)

Which of the following should you use to specify the width in characters of a scrolling text box? a. The cols attribute b. The maxlength attribute c. The width attribute d. The size attribute

a. The cols attribute

Which <form> tag attribute specifies the process required to send form data to a Web server? a. The method attribute b. The type attribute c. The name attribute d. The action attribute

a. The method attribute

Which of the following can be considered a disadvantage of using FormMail? a. It hasn't been maintained for many years and poses several security risks, including a problem wherein it can be fooled into sending email to anyone. b. A Perl interpreter is required before FormMail can receive information from a Web form. c. You can receive Web form information from FormMail only via e-mail. d. You must customize FormMail to your specifications before you can use it.

It hasn't been maintained for many years and poses several security risks, including a problem wherein it can be fooled into sending email to anyone.

Which of the following can be considered a disadvantage of using FormMail?

Older versions of FormMail could be fooled into sending e-mail to anyone.

Which are examples of modern server-side scripting processors that might be used to handle a Web form's input?

PHP, ASP, Java

Server-side CGI scripts are commonly written in which language?

Perl

In a raw text string, which of the following is used to replace spaces entered by the user?

Plus signs ( + )

Which of the following actions will redisplay Web form fields with their default values?

Resetting the form

Which of the following actions will upload user data from a Web form to the receiving server?

Submitting the form

When creating a Web form, which tag should you use to create a list from which users can choose one or more options?

The <select> tag

When creating a Web form, which of the following should you use to create a scrolling text field into which users can enter multiple lines of text?

The <textarea> tag

Which attribute is associated with the <form> element and is used to specify the name and location of the CGI script used to process the form?

The action attribute

In Microsoft Internet Explorer, what occurs on a Web form if you omit the closing </form> tag?

The form fields will render but users will not be able to submit any information.

Which <form> tag attribute specifies the process required to send form data to a Web server?

The method attribute

Which <input> tag attribute organizes Web form information submitted by the user into the basic elements for a raw text string, which is then processed by the Web server?

The name attribute

Which of the following must occur before a server-side script can process Web form data?

The user must enter the data into the Web form and submit it.

Which choice lists the elements that are necessary for a CGI session?

Web browser, CGI script, Web form and Web server with a CGI interpreter

Which choice lists the elements that are necessary for client-server communication??

Web browser, Web form, Web server, and a Server-Side Scripting Language or CGI Script

When you submit a Web form, the browser sends the information entered in this form to the Web server as:

a raw text string.

Consider the following HTML code: <input type="file" name="File"/> What does this code create on a Web form? a. A Browse button so users can select and upload files to your site b. A Find File button so users can specify files they want to download from your site c. A Send File button so users can select and upload files to your site d. A text box so users can specify files they want to find on your site

a. A Browse button so users can select and upload files to your site

In a raw text string, which of the following is used to delimit name=value pairs? a. Ampersands ( & ) b. Quotation marks ( " " ) c. Plus signs ( + ) d. Pipe symbols ( | )

a. Ampersands ( & )

If you want to specify default text for a text area box, where should you add the text that will appear as default text? a. Between the <textarea> tags b. To the name="" attribute of the <textarea> tag c. To the value="" attribute of the <textarea> tag d. To the type="" attribute of the <textarea> tag

a. Between the <textarea> tags

Which of the following is a sensible method of reducing spam submissions to Web forms you create? a. CAPTCHA b. FormMail c. Common Gateway Interface (CGI) d. Search engine optimization (SEO)

a. CAPTCHA

In a raw text string, which of the following is used to replace spaces entered by the user? a. Plus signs ( + ) b. Quotation marks ( " " ) c. Underscores ( _ ) d. Ampersands ( & )

a. Plus signs ( + )

Which Web form field should you use to create a scrolling text field into which a user can enter multiple lines of text? a. Text area b. Single-option select list c. Text box d. Multiple-option select list

a. Text area

Consider the following HTML code: <p>Are you CIW certified?</p> <select name="Certified" size="4"> <option>Not yet</option> <option>CIW Web Foundations Associate</option> <option>CIW Web Design Professional</option> <option>CIW Web Development Professional</option> </select> Which type of form field does this HTML code create?

A drop-down list from which users can choose one response

Which of the following describes a CGI?

A program that allows a Web server to pass control to a software application in order to process user submitted data.

What occurs when the Web server receives raw text strings from the client?

A server-side script parses and formats the raw text strings into a human-readable format.

In a raw text string, which of the following is used to delimit name=value pairs?

Ampersands ( & )

Consider the following HTML code: <select name="Countries" multiple="multiple" size="8"> What does the size attribute control? a. The number of items that will appear in the scrolling list box b. The maximum number of characters allowed for each item in the scrolling list box c. The maximum number of items that can be offered in the scrolling list box d. The width in characters of the scrolling list box

a. The number of items that will appear in the scrolling list box

For what should you use the value attribute when creating a text box field? a. To place default text inside the text box b. To specify the maximum number of characters a user can enter into the text box c. To specify the minimum number of characters a user must enter into the text box d. To specify the width of the text box in characters

a. To place default text inside the text box

FormMail is a CGI script that is designed to receive information from a Web form. FormMail is popular because it: a. sends form information to you via e-mail. b. is widely available for a nominal fee. c. is written in JavaScript. d. prevents spam from proliferating on the Internet.

a. sends form information to you via e-mail.

Which attribute is associated with the <form> element and is used to specify the name and location of the server-side script used to process the form?

action attribute

What occurs when the Web server receives raw text strings from the client? a. A CGI script parses and formats the raw text strings into a computer-readable format. b. A CGI script parses and formats the raw text strings into a human-readable format. c. A CGI script replaces spaces with plus signs ( + ) and inserts ampersands ( & ) between name=value pairs in the raw text strings. d. A CGI script strips the values from the name=value pairs and creates a database containing the data input by the user.

b. A CGI script parses and formats the raw text strings into a human-readable format.

Question 11 : Consider the following HTML code: <form> <p>Which skills can you offer a potential employer?</p> <input type="checkbox" name="Skills" value="HTML"/> HTML coding <input type="checkbox" name="Skills" value="GUI"/> GUI authoring tools <input type="checkbox" name="Skills" value="Design"/> Fundamental Web design <input type="checkbox" name="Skills" value="PMgmt"/> Project management <input type="checkbox" name="Skills" value="EComm"/> E-commerce solutions </form> Which type of form field does this XHTML code create? a. A group of round buttons from which users can choose one response b. A group of square buttons from which users can choose multiple responses c. A list from which users can choose one response d. A list from which users can choose multiple responses

b. A group of square buttons from which users can choose multiple responses

When you create a select list, how can you specify to pass a value different from the text that appears in the list? a. Add the multiple="" attribute into any or all of the <option> tags. b. Add the value="" attribute into any or all of the <option> tags. c. Add the type="" attribute into any or all of the <option> tags. d. Add the name="" attribute into any or all of the <option> tags.

b. Add the value="" attribute into any or all of the <option> tags.

The main difference between form creation in HTML5 versus form creation in HTML 4.01 is: Each correct answer represents a complete solution. Choose two. a. Cascading Style Sheets (CSS) can be used for all form styles but are not yet supported by most browsers. b. Advanced features are now available for better control of validation and input control. c. Cascading Style Sheets (CSS) are used for all form styles. d. Forms no longer require a Common Gateway Interface (CGI) program to process the script.

b. Advanced features are now available for better control of validation and input control. c. Cascading Style Sheets (CSS) are used for all form styles.

What occurs when a user clicks the Reset button on a Web form? a. A Choose File dialog box appears, which the user can use to navigate to and select a local file for uploading. b. All form fields are cleared and set back to their default settings. c. The data from all fields in the form is sent to be processed by the action specified in the <form> tag. d. All form fields are cleared and the data is submitted.

b. All form fields are cleared and set back to their default settings.

Which Web form field allows users to choose from among two or more non-exclusive options? a. Text box b. Check box c. Radio button d. Select list

b. Check box

Which of the following is the de facto standard used to process Web forms? a. Active Server Pages (ASP) b. Common Gateway Interface (CGI) c. Search engine optimization (SEO) d. JavaServer Pages (JSP)

b. Common Gateway Interface (CGI)

Which of the following occurs when you specify the wrap="soft" attribute and value for the <textarea> tag? a. Text you enter will wrap to the next row as it approaches the scrolling text box border. b. Text you enter will continue on one line beyond the scrolling text box border. c. You will be able to enter only one row of text in the scrolling text box. d. The amount of text you will be able to type in each row will be restricted to the width of the scrolling text box.

b. Text you enter will continue on one line beyond the scrolling text box border.

What occurs when a user clicks the Submit button on a Web form? a. A Choose File dialog box appears, which the user can use to navigate to and select a local file for uploading. b. The data from all fields in the form is sent to be processed by the action specified in the <form> tag. c. All form fields are cleared and the data is submitted. d. All form fields are cleared and set back to their default settings.

b. The data from all fields in the form is sent to be processed by the action specified in the <form> tag.

In Microsoft Internet Explorer, what occurs on a Web form if you omit the closing </form> tag? a. The form will render but the form fields will appear as blank boxes with "Xs" in them. b. The form fields will render but users will not be able to submit any information. c. The form fields will render and users will be able to submit information. d. The form fields will not render.

b. The form fields will render but users will not be able to submit any information.

Radio buttons are reserved for two or more mutually exclusive options on a Web form. How do you ensure this exclusivity? a. The radio buttons must share the same checked attribute. b. The radio buttons must share the same name attribute. c. The radio buttons must share the same value attribute. d. The radio buttons must share the same type attribute.

b. The radio buttons must share the same name attribute.

If you are conducting search engine optimization (SEO), you should: a. use form fields without labels. b. create as simple a form as possible. c. create a complex form in order to slow a bot reading the page. d. always use a CAPTCHA because it usually increases the search engine score.

b. create as simple a form as possible.

By adding the checked="checked" attribute and value into the <input> tag for a group of check boxes, you can: a. preselect only one check box in the group of check boxes. b. preselect as many check boxes as you like. c. specify that each check box be treated as a separate database field. d. specify that each check box be treated as part of a single database field.

b. preselect as many check boxes as you like.

The most common form field used in designing Web forms is the: a. check box. b. text box. c. text area. d. radio button.

b. text box.

When using the <input> tag, you designate the form field type by assigning the appropriate value to: a. the textarea attribute. b. the type attribute. c. the name attribute. d. the select attribute.

b. the type attribute.

Consider the following HTML code: <p>Are you CIW certified?</p> <select name="Certified" size="4"> <option>Not yet</option> <option>CIW Web Foundations Associate</option> <option>CIW Web Design Professional</option> <option>CIW Web Development Professional</option> </select> Which type of form field does this HTML code create? a. A group of radio buttons from which users can choose one response b. A group of check boxes from which users can choose multiple responses c. A drop-down list from which users can choose one response d. A drop-down list from which users can choose multiple responses

c. A drop-down list from which users can choose one response

What is the term for code embedded into an HTML page and downloaded by a user to help process Web form input? a. Common Gateway Interface (CGI) b. Server-side script c. Client-side script d. Structured Query Language (SQL)

c. Client-side script

Server-side CGI scripts are commonly written in which language? a. JScript b. VBScript c. Perl d. JavaScript

c. Perl

Which Web form field allows users to choose from among two or more mutually exclusive options? a. Select list b. Check box c. Radio button d. Text box

c. Radio button

Which HTML code will produce a Web-user form field that offers the user round buttons with mutually exclusive choices? a. <select name="Certifications"> <option>CIW Web Foundations Associate</option> <option>CIW Web Design Professional</option> </select> b. <input type="checkbox" name="Certifications" value="Associate"/> CIW Web Foundations Associate <input type="checkbox" name="Certifications" value="Professional"/> CIW Web Design Professional c. <select name="Certifications" multiple="multiple> <option>CIW Web Foundations Associate</option> <option>CIW Web Design Professional</option> </select> d. <input type="radio" name="Certifications" value="Associate"/> CIW Web Foundations Associate <input type="radio" name="Certifications" value="Professional"/> CIW Web Design Professional

d. <input type="radio" name="Certifications" value="Associate"/> CIW Web Foundations Associate <input type="radio" name="Certifications" value="Professional"/> CIW Web Design Professional

When creating a Web form, which of the following should you use to create a scrolling text field into which users can enter multiple lines of text? a. The <select> tag b. The <input> tag c. The <form> tag d. The <textarea> tag

d. The <textarea> tag

Which <form> tag attribute uses the "get" and "post" values to specify how the browser will send form data to a Web server? a. The type attribute b. The name attribute c. The action attribute d. The method attribute

d. The method attribute

Which <input> tag attribute organizes Web form information submitted by the user into the basic elements for a raw text string, which is then processed by the Web server? a. The action attribute b. The method attribute c. The type attribute d. The name attribute

d. The name attribute

Which attribute is shared by all Web form field elements? a. The type attribute b. The method attribute c. The action attribute d. The name attribute

d. The name attribute

Which choice lists the elements that are necessary for a CGI session? a. Web browser, Web form, server-side script and client-side script b. Web browser, CGI script, Web form and Web client with the UNIX operating system c. Web form, server-side script, client-side script and Web client with the UNIX operating system d. Web browser, CGI script, Web form and Web server with a CGI interpreter

d. Web browser, CGI script, Web form and Web server with a CGI interpreter

When you create a text box field, you should use the maxlength attribute to: a. specify the visual width of the text box in pixels. b. specify the visual width of the text box in characters. c. specify the minimum number of characters a user must enter into the text box. d. specify the maximum number of characters a user can enter into the text box.

d. specify the maximum number of characters a user can enter into the text box.

Which <form> tag attribute uses the "get" and "post" values to specify how the browser will send form data to a Web server?

method attribute

You are creating a select list for your Web form. You want to allow users to choose more than one response from your list. Which attribute and value should you add to the <select> tag to allow this?

multiple="multiple"

By adding the checked="checked" attribute and value into the <input> tag for a group of check boxes, you can:

preselect as many check boxes as you like.

FormMail is a CGI script that is designed to receive information from a Web form. FormMail is popular because it:

sends form information to you via e-mail.

The most common form field used in designing Web forms is the:

text box

When using the <input> tag, you designate the form field type by assigning the appropriate value to:

the type attribute.


Related study sets

Med Bac exam 3 Quizzes and exercises

View Set

Quiz# 3 Ch: 13 Motivation, Teaching and Learning

View Set

Live Keyboard Shortcuts - Showing and Hiding Views

View Set

GSMST Literary Devices and Literary Terms

View Set