Name:     Logon ID: 
 
Email: 

XHTML - Semester Exam

 1. 

The size=“2” attribute means which of the following?
a.
two characters will appear, and no more may be entered
b.
at most, two characters can be entered
c.
two characters will appear, but more may be entered, depending on the maxlength attribute
d.
one character will appear, and the second will be truncated
 

 2. 

If you do not specify a size attribute for a select menu, only one option is displayed, along with a list arrow.
 

 3. 

In a radio control each choice is preceded by a radio ____.
a.
menu
c.
button
b.
bar
d.
either b or c
 

 4. 

A Web page form must include a Reset button.
 

 5. 

A radio button typically displays as which of the following?
a.
bullet
c.
open circle
b.
small rectangle
d.
none of the above
 
 
Identify the letter of the choice that best matches the phrase or definition.
a.
data input
f.
select
b.
checkbox
g.
textarea
c.
attributes
h.
password
d.
radio button
i.
select control
e.
input
j.
target
 

 6. 

The use of asterisks, for example, to mark the entered text in this kind of field is designed to help protect text from being observed as it is being entered
 

 7. 

This kind of field is useful when an extensive amount of input from the Web page visitors is required or desired
 

 8. 

When one of these is selected, all of the other ones in the list are deselected automatically
 

 9. 

This kind of input control creates a list item
 

 10. 

Nearly all of the HTML tags used to create forms have at most one of these each
 

 11. 

This attribute of the <form> tag indicates the location at which a resource will display
 

 12. 

These kinds of controls either are HTML tags or attributes of HTML tags
 

 13. 

If a choice in a selection menu is highlighted, it means that this attribute has been used for that choice
 

 14. 

This category of control eliminates a visitor's having to type information into a text or textarea field
 

 15. 

This kind of control either can be a radio button, a check box, a submit button, or a reset button
 

 16. 

The <legend> tag within the fieldset tag is required.
 
 
Modified Multiple Choice
 

 17. 

A text input control is a ____ box.
 a.
password text
 c.
link
 b.
textarea
 d.
text
 

 18. 

When a Web page visitor clicks the Submit button on the form, which of the following is sent to be processed?
 a.
dimensions of the field
 b.
parameters of the control
 c.
value of the data contained with the control
 d.
name of the control
 

 19. 

A password always appears as a series of which of the following?
 a.
asterisks
 c.
bullets
 b.
ampersands
 d.
characters
 

 20. 

Which of the following is a main component of a Web page form?
 a.
<form> tag
 c.
Submit button
 b.
link to a major search engine
 d.
input controls
 

 21. 

Which of the following controls creates a list item?
 a.
dropdown
 c.
checkbox
 b.
radio
 d.
list
 

 22. 

The <____________________> tag creates a form that allows user input.
 

 

 23. 

Which of the following controls sends a form to a server for processing?
a.
send
c.
reset
b.
submit
d.
enter
 

 24. 

For a textarea field, no value attribute is possible because of the variability of the input.
 

 25. 

The maximum length of a text field may exceed the size of the field that displays on the form.
 

 26. 

The ____________________ button sends the information to the appropriate location for processing.
 

 

 27. 

Which of the following tags gives you the option of using an image for a Submit button, rather than using the default button style?
a.
<modify>
c.
<image button>
b.
<option>
d.
<button>
 

 28. 

A(n) ____________________ button typically appears as an open circle.
 

 

 29. 

A Web page form must include a Reset button. _________________________

 

 30. 

With a checkbox control, the default can be changed so a particular check box is preselected as the default, by using the ____ value within the <input> tag.
a.
default
c.
chosen
b.
preselect
d.
checked
 

 31. 

Using a Web page form for user input reduces the potential for errors because customers enter data or select options from the form included directly on the Web page.
 

 32. 

A FORM script sends the information input on a Web page form to the Web server for processing.
 

 33. 

By default, all check boxes are pre-selected. _________________________

 

 34. 

In a(n) ____________________ box, a visitor may enter larger amounts of data.
 

 

 35. 

Each choice in a check box list can be either on or off.
 

 36. 

The value attribute of the <input> tag is optional for radio and checkbox controls.
 

 37. 

A select input control creates a series of check boxes for Web visitors to use.
 

 38. 

Which of the following controls resets the form?
a.
empty
c.
reset
b.
new
d.
clear
 

 39. 

A(n) ____________________ input control is either a text box, a textarea box, or a password text box.
 

 

 40. 

Which of the following controls creates a menu of choices from which a visitor chooses?
a.
option
c.
choice
b.
menu
d.
select
 

 41. 

Form controls are useless unless the information entered in the form can be submitted for ____.
a.
aggregation
c.
processing
b.
concatenation
d.
all of the above
 

 42. 

Which of the following controls is identical to text fields used for single-line data entry?
a.
textarea
c.
submit
b.
password
d.
radio
 

 43. 

All options in a selection menu are contained within the <select> and </select> tags.
 

 44. 

The ____________________ attribute of the text control determines the number of characters that display on the form.
 

 

 45. 

The ____ attribute of the <form> tag indicates the manner in which the data entered in the form is sent to the server to be processed.
a.
process
c.
server
b.
http
d.
method
 

 46. 

When the ____________________ attribute specifies the same number of characters as the size attribute, all characters entered by a user will appear in the text box.
 

 

 47. 

The paragraph input control creates a multiple-line field for a relatively large amount of text. _________________________

 

 48. 

A(n) ____ control creates a drop-down list or menu of choices from which a visitor can select an option or options.
a.
select
c.
radio
b.
checkbox
d.
option
 

 49. 

The ____________________ control helps to group related form elements together.
 

 

 50. 

The ____________________ button clears any input that was entered in the form, restoring the input controls back to the initial values.
 

 

 51. 

The two values of the ____ attribute in HTML are get and post.
a.
method
c.
server
b.
http
d.
process
 

 52. 

Using ____________________ is especially helpful in cases where some information is required and some is optional.
 

 

 53. 

Information on forms can be sent by e-mail to an e-mail address or can be used to update a database.
 

 54. 

If the ____ attribute was not used to create a selection menu, the Web page visitor will be allowed to select only one choice in the menu.
a.
many
c.
multiple
b.
choices
d.
several
 

 55. 

A(n) ____________________ control returns all input controls to the default status.
 

 

 56. 

Which of the following buttons deletes any data previously typed into text or textarea fields?
a.
Clear
c.
Reset
b.
Restore
d.
New
 

 57. 

The ____________________ method sends a separate data file with the name-value pairs to the URL (or e-mail address) indicated in the action attribute.
 

 

 58. 

In a(n) ____ box, a visitor may enter small amounts of text.
a.
textarea
c.
link
b.
text
d.
capture
 

 59. 

The <____> tag defines the text that displays in the grouping borders.
a.
cluster
c.
key
b.
aggregate
d.
legend
 

 60. 

Which of the following attributes, when used with the text tag, determines the number of characters that display on a form?
a.
character
c.
dimension
b.
size
d.
width
 

 61. 

To select several consecutive choices in a selection menu, a user first must select one choice and then press and hold the ____________________ key while selecting the last choice.
 

 

 62. 

A(n) ____ control is any type of input mechanism on a form.
a.
input
c.
parameter
b.
form
d.
variable
 

 63. 

The ____ method sends the name-value pairs to the end of the URL indicated in the action attribute.
a.
base
c.
post
b.
get
d.
serv
 

 64. 

To set a particular radio button as the default, you use the ____________________ value within the <input /> tag.
 

 

 65. 

A(n) ____________________ control creates a list item in a list from which more than one item can be chosen.
 

 

 66. 

The ____ attribute identifies the specific information that is being sent when the form is submitted for processing.
a.
spec
c.
target
b.
this
d.
name
 

 67. 

When you are collecting information from an online form, it is very important to test that the information is accurate.
 

 68. 

A checkbox control allows a Web page visitor to select only one choice from a list of choices.
 

 69. 

All controls except one have a(n) ____ attribute.
a.
link
c.
select
b.
name
d.
value
 

 70. 

The use of which of the following controls eliminates the visitor’s having to type information into a text field?
a.
select
c.
text
b.
password
d.
textarea
 

 71. 

The ____ attribute of the <form> tag indicates the URL for the action to be completed by the server.
a.
process
c.
action
b.
http
d.
method
 

 72. 

If no ____ attribute value is specified, a selection menu initially displays only one option, along with a list arrow to view other choices in the list.
a.
default
c.
choice
b.
size
d.
checked
 

 73. 

A ____ control creates a list item in a list from which only one item can be chosen.
a.
radio
c.
list
b.
select
d.
solo
 

 74. 

An embedded style sheet changes the style for a single Web page.
 

 75. 

A ____ input control is either a radio button, a check box, a Submit button, a Reset button, or a selection menu.
a.
select
c.
list
b.
data
d.
capture
 

 76. 

Few Web sites use CGI scripts to process forms because this is an inefficient way to handle the data that is sent to a form.
 

 77. 

The resume and send controls create the Reset and Submit buttons.
 

 78. 

The textarea control uses the ____________________ attribute to specify the number of columns in the textarea field.
 

 

 79. 

The <____________________/ > tag defines the controls used in the form, using a variety of type attribute values.
 

 

 80. 

Which of the following is a program written in a programming language (such as Perl) that communicates with the Web server?
a.
post method
c.
URL imagemap
b.
CGI script
d.
HTML function
 

 81. 

Multiple radio buttons in the same group can be set to a checked state at the same time.
 

 82. 

To select multiple choices in a selection menu, a user first must select one choice and then press and hold the ____________________ key while clicking other choices in the list.
 

 

 83. 

The default type for the <input /> tag is a ____.
a.
text box
c.
radio button
b.
textarea
d.
checkbox
 

 84. 

With check boxes, only one option can be selected at a time.
 

 85. 

____ controls are similar to text controls, except that they allow multiple lines of text input.
a.
Password
c.
Capture
b.
Textarea
d.
Either a or b
 

 86. 

In a(n) ____________________ text box, a visitor may enter a password.
 

 

 87. 

The post method is a program written in a programming language that communicates with the Web server.
 

 88. 

The textarea control has two primary attributes: ____.
a.
rows and cols
c.
select and option
b.
size and width
d.
size and maxlength
 

 89. 

The reset input control sends the information from a form to the appropriate location for processing. _________________________

 

 90. 

The get method sends the name-value pairs to the end of the URL indicated in the action attribute.
 

 91. 

You should validate the code after the form is completed and view and test it using your browser.
 

 92. 

If you specify a maximum number of characters that is greater than the number of characters specified in the size attribute, the additional characters will be cut off.
 

 93. 

A(n) ____________________ control tells the browser to send the data on the form to the server.
 

 

 94. 

Which of the following attributes specifies a reset button?
a.
master=“reset”
c.
type=“option”
b.
reset=“type”
d.
type=“reset”
 

 95. 

A text control creates a text box that is used for a single line of input. _________________________

 

 96. 

The ____ attribute of the text tag specifies the maximum length of the input field.
a.
size
c.
maxlength
b.
control
d.
limit
 

 97. 

The tabindex attribute of the <input> tag sets tabbing order among control elements.
 

 98. 

The text control has two attributes: ____.
a.
cols and rows
c.
size and maxlength
b.
post and get
d.
width and height
 

 99. 

If a selection menu includes the size attribute with a value of 3, ____ choice(s) will appear in the menu.
a.
one
c.
three
b.
two
d.
four
 

 100. 

It is a good rule of thumb to use between 50 and 100 columns of text in a textarea field.
 



 
         Start Over