CIW Lesson 6 Test

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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

Your company Website uses a Web form to collect data from a user. The user has entered data into the form fields and will soon click the Submit button, then the data will be sent to a database. Which of the following passes information from the Web form to the database server?

A server-side script

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.

A user has signed up for your company. Which choice lists the necessary elements for client-server communication to occur in this scenario?

A server-side script, a Web form, a Web browser, and a Web server

Consider the following example code from a Web form: How often do you want to be updated about uCorp?<select name="Frequency"> <option> Once a month </option> <option> Once a quarter </option> <option> Once a year </option> <option value="NotAtAll"> Never </option></select> Which Web form field will this code create?

A single-select drop-down list

Which of the following is a sensible method of reducing spam submissions to Web forms you create?

CAPTCHA

Which is a technology that resides on a server and receives Web form data from the browser, then processes the data into the human-readable format?

CGI

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

Client-side script

When creating a Web form in HTML, what is the purpose of the name attribute?

It identifies the data received from a user by associating it with the name specified by the form's creator.

In an HTML form, what is the purpose of the name attribute in the <input> tag?

It organizes information input by the user into name=value pairs.

User-entered information has been passed from a Web form to a database server. Where is the CGI script that handles this located?

On the Web server

Which <form> element attribute and value is preferred for sending form data and can send more characters?

method="post"

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 email.

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

the type attribute.

Consider the following figure: Which of the following codes renders this form field?

<input type="datetime-local" name="datetime"/>

Your Web team manager has directed you to create a Web form that allows the user to upload a file to your Web server. Which line of HTML code would accomplish this task?

<input type="file" name="File"/>

Which HTML code will produce a Web-user form field that offers the user round buttons with mutually exclusive choices?

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

Consider the following code for a text box in a Web form: <input type="text" name="UserName"/> Which modified tag should you use if you want the text box to appear with default text that reads "Enter Name Here"?

<input type="text" name="UserName" value="Enter Name Here"/>

Which line of code creates a text box in a Web form that will validate as HTML5?

<input type="text" name="UserName"/>

Which line of HTML code begins a single-option select list?

<select name="listName">

In the Web form you are creating, you want a multiple-option select list to appear with five options. Which line of HTML code will help accomplish this?

<select name="work" multiple="multiple" size="5">

Which line of HTML code creates a scrolling text box that can display three rows of text that are each 30 characters long?

<textarea name="comments" cols="30" rows="3"></textarea>

Consider the following example code from a Web form: What is your favorite hobby? <select name="Hobby"> <option> Kayaking </option> <option> Swimming </option> <option> Fishing </option> <option value="NoneAbove"> None of the Above </option> </select> You have been directed to change this form field so that users can select more than one option from this list. In addition to rewording the page text, which change must you make to the code?

Add the multiple="multiple" attribute and value to the <select> element.

When you create a select list, how can you specify to pass a value different from the text that appears in the list?

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

The main differences between form creation in HTML5 versus form creation in HTML 4.01 are: Each correct answer represents a complete solution. Choose all that apply.

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

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

Ampersands ( & )

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

PHP, ASP, Java

If a Webpage author wants her users to select only one option among several specified on a form, which input type should she specify?

Radio buttons

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

Resetting the form

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 choice correctly specifies the attribute and value needed in an <input> tag for a group of radio buttons to designate a preselected option?

The checked="checked" attribute and value

Which of the following should you use to specify the width in characters of a scrolling text box?

The cols attribute

What occurs when a user clicks the Submit button on a Web form?

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

Which attribute of the <form> element is used to specify the way that user-entered Web form data will be sent to the Web server?

The method attribute

You are creating a Web form in HTML5 for your site. You want to make sure you code it correctly to process data. You have included the action attribute in the <form> element. What else do you need to include in the <form> element without which your form will not function?

The method attribute

What happens if you omit the size attribute when you use the <select> tag to create a select list?

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

For what should you use the value attribute when creating a text box field?

To place default text inside the text box

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

a raw text string.

If you are conducting search engine optimization (SEO), you should:

create as simple a form as possible.

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

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


Set pelajaran terkait

Analyzing Word Choice and Theme in a Play

View Set

R N352 PrepU Chapter 51 - Diabetes

View Set

Micronutrients FINAL water and minerals

View Set

Hesi Quiz: Health Policy/Systems - Health Care Law

View Set

meteorology ch15 critical questions and review questions

View Set

Abrams Chapter 9 - Drug Therapy for Coagulation Disorders, Chapter 10: Drug Therapy for Dyslipidemia, Chapter 27 Dysrhythmias, Chapter - 27 Drug therapy for dysthymia, Pharm Chapter 27 Drug Therapy for Dysrhythmias

View Set