Make your own free website on Tripod.com
 
Name:     Logon ID: 
 
Email: 

XHTML - Semester Exam

 1. 

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

 2. 

The value attribute of the <input> tag is optional for radio and checkbox controls.
 
 
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
 

 3. 

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

 4. 

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

 5. 

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

 6. 

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

 7. 

This kind of input control creates a list item
 

 8. 

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

 9. 

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

 10. 

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

 11. 

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
 

 12. 

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

 13. 

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

 14. 

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

 15. 

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

 16. 

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.
 

 17. 

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

 

 18. 

The <legend> tag within the fieldset tag is required.
 

 19. 

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

 20. 

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

 21. 

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

 22. 

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

 23. 

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

 24. 

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

 25. 

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

 

 26. 

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

 27. 

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

 28. 

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

 29. 

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

 

 30. 

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

 31. 

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.
server
c.
method
b.
http
d.
process
 

 32. 

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

 33. 

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.
 

 

 34. 

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

 35. 

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

 

 36. 

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

 37. 

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

 38. 

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

 39. 

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

 

 40. 

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

 41. 

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

 42. 

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

 43. 

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

 44. 

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

 45. 

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

 

 46. 

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.
 

 

 47. 

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

 

 48. 

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

 

 49. 

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

 

 50. 

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

 51. 

A Web page form must include a Reset button. _________________________

 

 52. 

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

 

 53. 

____ 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
 

 54. 

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

 55. 

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

 

 56. 

The ____________________ control helps to group related form elements together.
 

 

 57. 

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

 58. 

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

 59. 

A radio button typically displays as which of the following?
a.
bullet
c.
open circle
b.
small rectangle
d.
none of the above
 

 60. 

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

 61. 

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

 62. 

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
 

 63. 

A Web page form must include a Reset button.
 

 64. 

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

 65. 

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.
checked
d.
preselect
 

 66. 

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

 

 67. 

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

 

 68. 

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

 69. 

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

 70. 

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

 71. 

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

 72. 

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.
<button>
c.
<option>
b.
<modify>
d.
<image button>
 

 73. 

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.
choice
c.
default
b.
checked
d.
size
 

 74. 

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

 

 75. 

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

 76. 

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

 77. 

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

 

 78. 

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

 79. 

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

 

 80. 

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

 

 81. 

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

 82. 

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

 83. 

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

 84. 

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

 85. 

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

 

 86. 

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

 87. 

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

 88. 

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.
choices
c.
multiple
b.
several
d.
many
 

 89. 

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

 90. 

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

 91. 

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

 92. 

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

 

 93. 

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.
 

 

 94. 

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

 95. 

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.
 

 96. 

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

 

 97. 

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

 98. 

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

 99. 

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.
 

 100. 

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



 
         Start Over