GVLTEC IST 226 - Chapter Questions 9

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which numbered item indicates an option button in the accompanying figure? 2 3 4 6

NOT NOT NOT 3

What is the default length for the type of field shown in the accompanying figure? 10 characters 20 characters 30 characters 40 characters

NOT NOT NOT 40 characters

If you can make more than one choice from a group of radio buttons, what is wrong with your code? The id attributes are not identical. The name attributes are not identical. The name attributes are identical. none of the above

The name attributes are not identical.

The ____ attribute sets the length of the text boxes marked 1 in the accompanying figure. length size width dimension

size

What is the value of the type attribute for the input element that creates a command button that sends form data to the server? reset submit send post

submit

The ____ element is used to display prompting text on the screen. prompting input legend label

label

The default value for the text area width is ____ characters. 18 19 20 21

19

The default value for the text area height is ____ rows. 2 3 4 5

2

The default width for a text box, such as the one labeled "First Name" in the accompanying figure, is ____ characters. 10 15 20 25

20

Which numbered item indicates a drop-down list box in the accompanying figure? 2 3 4 5

3

Which numbered item indicates a set of check boxes in the accompanying figure? 2 3 4 6

4

Which numbered item indicates a text area in the accompanying figure? 1 3 5 6

5

Which numbered item indicates a command button that clears all data entered in the form in the accompanying figure? 5 6 7 8

8

Every form's code is placed within ____ tags. <formcode></formcode> <form></form> <formdata></formdata> <userform></userform>

<form></form>

The caption text for the fieldset is entered between the ____ tags. <fieldset></fieldset> <legend></legend> <label></label> <caption></caption>

<legend></legend>

To create an option group within a selection list, you should use the ____ tags. <optiongroup></optiongroup> <opt></opt> <groupopt></groupopt> <optgroup></optgroup>

<optgroup></optgroup>

Case-Based Critical Thinking Questions Case 9-2 Ethan has some questions about HTML forms that he addresses to his sister Kyra, who has a lot of experience in Web design. Ethan is not sure which attribute he needs to define for the default option in the drop-down list box. He asks Kyra to help him. Which of the following is correct? <option value="New Jersey" checked="selected">New Jersey</option> <option value="New Jersey" checked="checked">New Jersey</option> <option value="New Jersey" selected="selected">New Jersey</option> <option value="New Jersey" selected="checked">New Jersey</option>

<option value="New Jersey" selected="selected">New Jersey</option>

The ____ tags are used to identify each choice in a drop-down list. <li></li> <item></item> <div></div> <option></option>

<option></option>

The option text in a selection list should be placed between the ____ tags. <option></option> <choice></choice> <select></select> <item></item>

<option></option>

The ____ tags are used if you want the user to be able to enter multiple lines of text. <text></text> <input type="text"> <textarea></textarea> <multi></multi>

<textarea></textarea>

Which of the following is NOT correct for the fieldset element? By default it creates a 2px border around grouped form controls. It groups a series of related form elements. By default it creates a 1px border around grouped form controls. all of the above

By default it creates a 2px border around grouped form controls.

Which of the following is NOT a scripting language? PHP C++ JavaScript ASP

C++

You can select more than one nonadjacent option from the drop-down list by using ____. Ctrl+click Shift+click Alt+click Ctrl+Alt+click

Ctrl+click

Which of the following does NOT recognize the placeholder attribute? Opera Safari Firefox Internet Explorer 9

Internet Explorer 9

In the accompanying figure, which of the following is true for the emailaddress text box? It is approximately 40 characters wide. It is 20 characters wide by default, but can expand to 40 characters. It is 0 characters wide because the size attribute is not specified. none of the above

It is approximately 40 characters wide.

Case-Based Critical Thinking Questions Case 9-2 Ethan has some questions about HTML forms that he addresses to his sister Kyra, who has a lot of experience in Web design. Ethan would like to limit the number of characters a user can type for his or her email address to 50, but make visible only 20 characters. Which of the following does Kyra define as a correct statement? <input type="text" name="firstname" id="firstname" size="20" maxlength="50" /> <input type="text" name="firstname" id="firstname" size="50" maxlength="50" /> <input type="text" name="firstname" id="firstname" maxlength="50" /> either a or c

NOT NOT NOT <input type="text" name="firstname" id="firstname" size="20" maxlength="50" />

All of the following are examples of database software that can be used to store and manipulate data in the situation shown in the accompanying figure EXCEPT ____. PHP MySQL MS SQL Oracle

NOT NOT NOT MS SQL

Case-Based Critical Thinking Questions Case 9-1 At the beginning of the academic year, Maxwell was asked to create an HTML form for his tennis coach, Mr. McEnroe, so that he can collect information about the school's tennis team players. Mr. McEnroe would like to know who is male and who is female. Which of the following form controls should Maxwell use to gather this information? check box text box radio button all of the above

NOT NOT NOT check box

To control the height of the text area, the ____ attribute is used. height size cols rows

NOT NOT NOT height

If more than one choice is visible in the drop-down list, then the ____ attribute is used within the start <select> tag. number size options choices

NOT NOT NOT options

An HTML form like the one in the accompanying figure is used for which of the following? retrieving information organizing data sorting data none of the above

NOT NOT NOT retrieving information

The ____ attribute for the item marked 7 in the accompanying figure is Register. selection option value key

NOT key

You can select more than one adjacent option from the drop-down list by using ____. Ctrl+click Shift+click Alt+click Ctrl+Alt+click

Shift+click

The ____ attribute serves as the heading for the option group. legend label heading for

label

Which of the following is NOT true for an online form? After you enter data into a form, you click the submit button to send the data. The Common Gateway Interface sends data to a Web server. Software on the server retains the data in the database. The server sends the confirmation page to the browser.

The Common Gateway Interface sends data to a Web server.

Which of the following is true for the submit button? The button must have the text "submit" on it. The button cannot be styled. The button does not require a label element. The button must have an orange background.

The button does not require a label element.

A(n) ____ attribute identifies the script that will run when the user clicks the submit button to send the data collected by the form. method action id script

action

Forms can be formatted using ____. borders padding margins all of the above

all of the above

Which of the following is an example of an HTML form? job application form financial aid form survey form all of the above

all of the above

The value of a text box can include ____. spaces special characters numbers any of the above

any of the above

QUESTION 16 Which of the following is true for the input element? It should be placed below the label element code. It should be placed above the label element code. It is an empty element. both a and c

both a and c

Which element is used to organize form controls? fieldset fieldgroup legend both a and c

both a and c

Case-Based Critical Thinking Questions Case 9-2 Ethan has some questions about HTML forms that he addresses to his sister Kyra, who has a lot of experience in Web design. Ethan has a text box that he is not using, and he wants to convert it to a password field. He asks Kyra how he can do it. She suggests that he ____. change the <input> tag to the <password> tag change the value of the input type attribute to password encrypt the text box change the value of the input type attribute to hidden

change the value of the input type attribute to password

A(n) ____ is a form control that allows a user to choose one or more items from a list of items. radio button option box check box choice box

check box

To establish a default choice for a group of radio buttons, you should use ____. checked="choice" checked="checked" checked="select" selected="checked"

checked="checked"

Given the item marked 4 in the accompanying figure, the PC and Netbook options have been marked with the ____ attribute. option choice checked selected

choice

Form data sent to the server as shown in the accompanying figure is stored electronically in a ____. script network browser database

database

Case-Based Critical Thinking Questions Case 9-1 At the beginning of the academic year, Maxwell was asked to create an HTML form for his tennis coach, Mr. McEnroe, so that he can collect information about the school's tennis team players. Mr. McEnroe also would like to collect information about manufacturers of the racquets that players are using. There are 10 major racquet manufacturers. Which of the following form controls should Maxwell use for this? check box drop-down list box radio button text area

drop-down list box

Which of the following is a form control that allows a user to click a list arrow to display the list and make a selection? option list drop-down list box list box choice list

drop-down list box

A(n) ____ represents a single kind of data in the database. attribute field table column data item

field

The appearance of ____ can differ depending on the browser. fieldset borders textareas text boxes radio buttons

fieldset borders

The ____ attribute associates the label with the id value in the input element. name label for input

for

Which of the following is the default value for the method attribute? send post submit get

get

Fieldsets are also known as ____. fieldgroups group boxes field boxes all of the above

group boxes

The software that runs on a Web file server and processes an HTML form is called a form ____. processing program processor handler software package

handler

The ____ attribute sets a limit on the number of characters a user can type in a text box. maxchar maxsize maxwidth maxlength

maxlength

To allow the user to select more than one choice from the drop-down list, use ____. selected="multiple" multiple="selected" selected="selected" multiple="multiple"

multiple="multiple"

When coding the text area, a(n) ____ attribute identifies the field in the database associated with this form control. id name key field

name

Each menu choice within a selection list is defined by the ____ element. select choice option menu

option

Given the item marked 3 in the accompanying figure, the Pennsylvania option has been marked with the ____ attribute. option choice checked selected

option

Radio buttons are also known as ____ buttons. option choice data key

option

The type attribute value for the text box marked 6 in the accompanying figure is ____. password text masked texttype

password

With the <input> tag, the ____ value for the type attribute creates a text box where stars or bullets are displayed no matter what is entered. text entry password hidden

password

The ____ attribute allows you to display a sample email address in an input box. default instructional caption placeholder

placeholder

Which of the following values is useful for providing instructions to users so they are not left wondering what they should type or select? default instructional placeholder caption

placeholder

The ____ method is the most secure way to send data to the server. get send post submit

post

All of the following are examples of form controls EXCEPT ____. option buttons text boxes radio areas check boxes

radio areas

Which of the following buttons is used to clear or reset the form fields? command button submit button reset button clear button

reset button

To make an option in the selection list selected by default, use ____. selected="selected" selected="checked" checked="selected" checked="checked"

selected="selected"

A(n) ____ is a form control that allows a user to choose from a list of items; all the items in the list are shown. selection list drop-down list box option box either a or c

selection list

Case-Based Critical Thinking Questions Case 9-1 At the beginning of the academic year, Maxwell was asked to create an HTML form for his tennis coach, Mr. McEnroe, so that he can collect information about the school's tennis team players. Mr. McEnroe would like Maxwell to offer players a chance to tell him something about themselves, in a longer, narrative format. Which of the following can Maxwell use to achieve this goal? text box text area drop-down list box text window

text area

Case-Based Critical Thinking Questions Case 9-1 At the beginning of the academic year, Maxwell was asked to create an HTML form for his tennis coach, Mr. McEnroe, so that he can collect information about the school's tennis team players. Mr. McEnroe coaches three school teams with players in different age categories. He wants to present these age categories to his new players as options and then have them tell him to which category they belong. Which of the following form controls should Maxwell NOT use for this purpose? text box check box radio button drop-down list box

text box

Case-Based Critical Thinking Questions Case 9-1 At the beginning of the academic year, Maxwell was asked to create an HTML form for his tennis coach, Mr. McEnroe, so that he can collect information about the school's tennis team players. Mr. McEnroe would like to collect the name of each player's hometown. Which of the following form controls should Maxwell use? text area text box radio button check box

text box

Case-Based Critical Thinking Questions Case 9-2 Ethan has some questions about HTML forms that he addresses to his sister Kyra, who has a lot of experience in Web design. Ethan is trying to add a form control to his customer registration form using the <input /> tag, but he cannot make it work because it is a control that is not added that way. Kyra explains that he cannot create a ____ control with the <input /> tag. text box radio button check box text area

text box

The ____ attribute determines the specific kind of form object that is created. label type for name

type

By default, the caption appears in the ____ corner of the fieldset border. upper-right lower-right lower-left upper-left

upper-left

The ____ attribute determines what text appears on the button in the browser. name label text value

value

The ____ attribute of a radio button determines what data will be sent to the database if the user selects a particular button. selection value key choice

value

A form's start and end tags must be placed ____. above the <body> tag after the </body> tag within the <head></head> tags within the <body></body> tags

within the <body></body> tags


Kaugnay na mga set ng pag-aaral

chapter 16: the reformation in europe

View Set

Administering Ear Drops and Eye Drops

View Set

Nature of Light: Subtractive and Additive Color Mixing Terms

View Set

ΒΙΟΛΟΓΙΑ ΓΕΝΙΚΗΣ Β ΛΥΚΕΙΟΥ

View Set

Immunology chapter 5, sections 5-6 through 5-21, and 5-23

View Set