SDA 2.04

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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

<select name="listName">

Which line of HTML code creates a multiple-option select list in a Web form?

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

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">

Your company Web site 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 CGI script

A user has accessed your company's Web server with her Web browser. Which choice lists the necessary elements for a CGI session to occur in this scenario?

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

What is the basic element of a raw text string sent from a Web form to a Web server's CGI script?

A name=value pair

Which <form> element attribute and value is considered to be the most secure when sending data?

method="post"

Which <form> element attribute and value specify that the browser will send data to the Web server location specified by a URL?

method="post"

Tomas has created a Web form for users to submit information to his Web site. A CGI script helps process and store the data in a database. Which attribute of the form field elements in Tomas' Web form will perform the task of organizing user information into name=value pairs?

name

In an HTML form, the <input> tag is used to:

create text boxes, radio buttons and Submit buttons.

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

On the Web server

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

Radio buttons

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 code will create a Web form check box that will validate as HTML5?

<input type="checkbox" name="groupName"/>

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"/>

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"/>

Consider the following example code from a Web form: How often do you want to be updated about Habitat for Humanity? <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

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.

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

CGI

Your company's intranet Web server has crashed. You must help re-create the server. A server administrator has copied a CGI script from last night's backup tape. The server is an exact duplicate of the server that just crashed. However, this script will not process information on the new server. What is most likely the problem on the server?

Executable permissions have not been set correctly.

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

It identifies data received from a user and associates it with a value specified by the form's creator.

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

It identifies the form input received in a name=value pair by the site's administrator.

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?

The method attribute of the <form> element

You are creating form fields in a Web page. Which attribute should you include in the <input> element to specify the type of form fields that will appear in the form?

The type attribute


Ensembles d'études connexes

Giddens Caregiving and Care Coordination

View Set

Nursing Process Exam 1 Practice Questions

View Set

Ch. 58 Care of Patients with Liver Problems

View Set

Chapter 56: Acute Intracranial Problems

View Set

Chapter 3- Biopsychology Quiz Review

View Set

Chapter 15: Critical Thinking in Nursing Practice

View Set