Deck 6: Creating a Form on a Web Page

Full screen (f)
exit full mode
Question
The use of which of the following controls prevents the visitor's having to type information into a text field?

A)text
B)textarea
C)password
D)select
Use Space or
up arrow
down arrow
to flip the card.
Question
____ controls are similar to text controls,except that they allow multiple lines of text input.

A)Password
B)Textarea
C)Capture
D)Either a or b
Question
Which of the following controls is identical to text fields used for single-line data entry?

A)submit
B)textarea
C)password
D)radio
Question
A ____ input control is either a radio button,a check box,a Submit button,a Reset button,or a selection menu.

A)select
B)data
C)capture
D)list
Question
In a ____ box,a visitor may enter small amounts of text.

A)capture
B)link
C)text
D)textarea
Question
A(n)____ control creates a selection menu of choices from which a visitor selects one or more choices.

A)select
B)option
C)radio
D)checkbox
Question
Which of the following attributes,when used with the text tag,determines the number of characters that display on a form?

A)character
B)size
C)width
D)dimension
Question
In a radio control each choice is preceded by a radio ____.

A)menu
B)bar
C)button
D)either b or c
Question
It is a good rule of thumb to keep the number of columns in a textarea to ____ or fewer.

A)10
B)15
C)25
D)50
Question
Which of the following controls creates a drop-down menu of choices from which a visitor chooses?

A)select
B)option
C)menu
D)choice
Question
A(n)____ control is any type of input mechanism on a form.

A)variable
B)input
C)parameter
D)form
Question
The ____ attribute of the text tag specifies the maximum length of the input field.

A)size
B)limit
C)maxlength
D)control
Question
The text control has two attributes: ____.

A)cols and rows
B)post and get
C)size and maxlength
D)width and height
Question
A ____ control creates a list item in a list from which only one item can be chosen.

A)select
B)solo
C)list
D)radio
Question
Which of the following controls sends a form to a server for processing?

A)enter
B)reset
C)send
D)submit
Question
A radio button typically displays as which of the following?

A)bullet
B)open circle
C)small rectangle
D)none of the above
Question
The type="____" attribute specifies that the type of control is the radio button.

A)radio
B)check
C)option
D)circle
Question
With a checkbox control,the default can be changed so a particular check box is preselected as the default,by using the ____ attribute and value within the < input > tag.

A)chosen
B)default
C)checked
D)preselect
Question
The textarea control has two primary attributes: ____.

A)rows and cols
B)size and maxlength
C)size and width
D)select and option
Question
Which of the following controls returns all input controls to the default status?

A)clear
B)empty
C)reset
D)new
Question
Which of the following buttons deletes any data previously typed into text or textarea fields?

A)New
B)Restore
C)Clear
D)Reset
Question
The default type for the < input / > tag is a ____.

A)radio button
B)checkbox
C)text box
D)textarea
Question
The size="2" attribute means which of the following?

A)two characters will appear,but more may be entered,depending on the maxlength attribute
B)one character will appear,and the second will be truncated
C)two characters will appear,and no more may be entered
D)at most,two characters can be entered
Question
Which of the following characters strings together all of the form responses?

A)&
B)!
C)@
D)%
Question
Which of the following attributes specifies a reset button?

A)type="option"
B)master="reset"
C)reset="type"
D)type="reset"
Question
The ____ method sends the name-value pairs to the end of the URL indicated in the action attribute.

A)get
B)base
C)post
D)serv
Question
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
B)choice
C)size
D)checked
Question
The ____ attribute of the < form > tag indicates the URL for the action to be completed by the server.

A)method
B)process
C)action
D)http
Question
Which of the following is a program written in a programming language (such as Perl)that communicates with the Web server?

A)HTML function
B)CGI script
C)URL imagemap
D)post method
Question
The two values of the ____ attribute in HTML are get and post.

A)process
B)server
C)http
D)method
Question
Form controls are useless unless the information entered in the form can be submitted for ____.

A)concatenation
B)processing
C)aggregation
D)all of the above
Question
All controls except one have a ____ attribute.

A)name
B)link
C)value
D)select
Question
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)< option >
B)< image button >
C)< modify >
D)< button >
Question
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)several
B)many
C)choices
D)multiple
Question
If a selection menu includes the size attribute with a value of 3,____ choice(s)will appear in the menu.

A)one
B)two
C)three
D)four
Question
The < ____ > tag defines the text that displays in the grouping borders.

A)key
B)legend
C)cluster
D)aggregate
Question
The ____ attribute identifies the specific information that is being sent when the form is submitted for processing.

A)spec
B)name
C)target
D)this
Question
The ____ attribute of the < form > tag specifies the manner in which the data entered in the form is sent to the server to be processed.

A)process
B)server
C)http
D)method
Question
The < form method=post action=mailto:ahs@isp.com > tag designates that the ____ method will be used to send data to the appropriate location for processing.

A)mailto
B)form
C)post
D)action
Question
There are two primary methods to send the form to the server to be processed: ____

A)send and put
B)get and post
C)get and put
D)CGI and HTML
Question
When a Web page visitor clicks the Submit button on the form,which of the following is sent to be processed?

A)parameters of the control
B)value of the data contained with the control
C)dimensions of the field
D)name of the control
Question
A Web page form must include a Reset button.
Question
The maximum length of a text field may exceed the size of the field that displays on the form.
Question
A Web page form must include a Reset button._________________________
Question
Which of the following controls creates a list item?

A)checkbox
B)radio
C)list
D)dropdown
Question
By default,all check boxes are pre-selected._________________________
Question
The paragraph input control creates a multiple-line field for a relatively large amount of text._________________________
Question
The resume and send controls create the Reset and Submit buttons.
Question
A password always appears as a series of which of the following?

A)characters
B)asterisks
C)bullets
D)ampersands
Question
The reset input control sends the information from a form to the appropriate location for processing._________________________
Question
It is a good rule of thumb to use between 50 and 100 columns of text in a textarea field.
Question
A text control creates a text box that is used for a single line of input._________________________
Question
With check boxes,only one option can be selected at a time.
Question
Multiple radio buttons in the same group can be set to a checked state at the same time.
Question
Each choice in a check box list can be either on or off.
Question
Which of the following is a main component of a Web page form?

A)input controls
B)< form > tag
C)link to a major search engine
D)Submit button
Question
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.
Question
A checkbox control allows a Web page visitor to select only one choice from a list of choices.
Question
A text input control is a ____ box.

A)link
B)textarea
C)password text
D)text
Question
A select input control creates a series of check boxes for Web visitors to use.
Question
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.
Question
HTML5 includes new attributes for the < input / > tag.
Question
A(n)____________________ input control is either a text box,a textarea box,or a password text box.
Question
You should validate the code after the form is completed and view and test it using your browser.
Question
The value attribute of the < input / > tag is optional for radio and checkbox controls.
Question
Information on forms can be sent by e-mail to an e-mail address or can be used to update a database.
Question
The post method is a program written in a programming language that communicates with the Web server.
Question
A FORM script sends the information input on a Web page form to the Web server for processing.
Question
For a textarea field,no value attribute is possible because of the variability of the input.
Question
An embedded style sheet changes the style for a single Web page.
Question
The ____________________ attribute of the text control determines the number of characters that display on the form.
Question
A(n)____________________ control tells the browser to send the data on the form to the server.
Question
In a(n)____________________ text box,a visitor may enter a password.
Question
The < legend > tag within the fieldset tag is required.
Question
All options in a selection menu are contained within the < select > and < /select > tags.
Question
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.
Question
When you are collecting information from an online form,it is very important to test that the information is accurate.
Question
The get method sends the name-value pairs to the end of the URL indicated in the action attribute.
Question
If you do not specify a size attribute in the < select > tag,only one option is displayed,along with a list arrow.
Question
In a(n)____________________ box,a visitor may enter larger amounts of text.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/112
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 6: Creating a Form on a Web Page
1
The use of which of the following controls prevents the visitor's having to type information into a text field?

A)text
B)textarea
C)password
D)select
D
2
____ controls are similar to text controls,except that they allow multiple lines of text input.

A)Password
B)Textarea
C)Capture
D)Either a or b
B
3
Which of the following controls is identical to text fields used for single-line data entry?

A)submit
B)textarea
C)password
D)radio
C
4
A ____ input control is either a radio button,a check box,a Submit button,a Reset button,or a selection menu.

A)select
B)data
C)capture
D)list
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
5
In a ____ box,a visitor may enter small amounts of text.

A)capture
B)link
C)text
D)textarea
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
6
A(n)____ control creates a selection menu of choices from which a visitor selects one or more choices.

A)select
B)option
C)radio
D)checkbox
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following attributes,when used with the text tag,determines the number of characters that display on a form?

A)character
B)size
C)width
D)dimension
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
8
In a radio control each choice is preceded by a radio ____.

A)menu
B)bar
C)button
D)either b or c
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
9
It is a good rule of thumb to keep the number of columns in a textarea to ____ or fewer.

A)10
B)15
C)25
D)50
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following controls creates a drop-down menu of choices from which a visitor chooses?

A)select
B)option
C)menu
D)choice
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
11
A(n)____ control is any type of input mechanism on a form.

A)variable
B)input
C)parameter
D)form
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
12
The ____ attribute of the text tag specifies the maximum length of the input field.

A)size
B)limit
C)maxlength
D)control
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
13
The text control has two attributes: ____.

A)cols and rows
B)post and get
C)size and maxlength
D)width and height
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
14
A ____ control creates a list item in a list from which only one item can be chosen.

A)select
B)solo
C)list
D)radio
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following controls sends a form to a server for processing?

A)enter
B)reset
C)send
D)submit
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
16
A radio button typically displays as which of the following?

A)bullet
B)open circle
C)small rectangle
D)none of the above
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
17
The type="____" attribute specifies that the type of control is the radio button.

A)radio
B)check
C)option
D)circle
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
18
With a checkbox control,the default can be changed so a particular check box is preselected as the default,by using the ____ attribute and value within the < input > tag.

A)chosen
B)default
C)checked
D)preselect
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
19
The textarea control has two primary attributes: ____.

A)rows and cols
B)size and maxlength
C)size and width
D)select and option
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following controls returns all input controls to the default status?

A)clear
B)empty
C)reset
D)new
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following buttons deletes any data previously typed into text or textarea fields?

A)New
B)Restore
C)Clear
D)Reset
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
22
The default type for the < input / > tag is a ____.

A)radio button
B)checkbox
C)text box
D)textarea
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
23
The size="2" attribute means which of the following?

A)two characters will appear,but more may be entered,depending on the maxlength attribute
B)one character will appear,and the second will be truncated
C)two characters will appear,and no more may be entered
D)at most,two characters can be entered
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following characters strings together all of the form responses?

A)&
B)!
C)@
D)%
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following attributes specifies a reset button?

A)type="option"
B)master="reset"
C)reset="type"
D)type="reset"
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
26
The ____ method sends the name-value pairs to the end of the URL indicated in the action attribute.

A)get
B)base
C)post
D)serv
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
27
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
B)choice
C)size
D)checked
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
28
The ____ attribute of the < form > tag indicates the URL for the action to be completed by the server.

A)method
B)process
C)action
D)http
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following is a program written in a programming language (such as Perl)that communicates with the Web server?

A)HTML function
B)CGI script
C)URL imagemap
D)post method
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
30
The two values of the ____ attribute in HTML are get and post.

A)process
B)server
C)http
D)method
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
31
Form controls are useless unless the information entered in the form can be submitted for ____.

A)concatenation
B)processing
C)aggregation
D)all of the above
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
32
All controls except one have a ____ attribute.

A)name
B)link
C)value
D)select
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
33
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)< option >
B)< image button >
C)< modify >
D)< button >
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
34
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)several
B)many
C)choices
D)multiple
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
35
If a selection menu includes the size attribute with a value of 3,____ choice(s)will appear in the menu.

A)one
B)two
C)three
D)four
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
36
The < ____ > tag defines the text that displays in the grouping borders.

A)key
B)legend
C)cluster
D)aggregate
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
37
The ____ attribute identifies the specific information that is being sent when the form is submitted for processing.

A)spec
B)name
C)target
D)this
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
38
The ____ attribute of the < form > tag specifies the manner in which the data entered in the form is sent to the server to be processed.

A)process
B)server
C)http
D)method
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
39
The < form method=post action=mailto:ahs@isp.com > tag designates that the ____ method will be used to send data to the appropriate location for processing.

A)mailto
B)form
C)post
D)action
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
40
There are two primary methods to send the form to the server to be processed: ____

A)send and put
B)get and post
C)get and put
D)CGI and HTML
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
41
When a Web page visitor clicks the Submit button on the form,which of the following is sent to be processed?

A)parameters of the control
B)value of the data contained with the control
C)dimensions of the field
D)name of the control
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
42
A Web page form must include a Reset button.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
43
The maximum length of a text field may exceed the size of the field that displays on the form.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
44
A Web page form must include a Reset button._________________________
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
45
Which of the following controls creates a list item?

A)checkbox
B)radio
C)list
D)dropdown
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
46
By default,all check boxes are pre-selected._________________________
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
47
The paragraph input control creates a multiple-line field for a relatively large amount of text._________________________
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
48
The resume and send controls create the Reset and Submit buttons.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
49
A password always appears as a series of which of the following?

A)characters
B)asterisks
C)bullets
D)ampersands
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
50
The reset input control sends the information from a form to the appropriate location for processing._________________________
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
51
It is a good rule of thumb to use between 50 and 100 columns of text in a textarea field.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
52
A text control creates a text box that is used for a single line of input._________________________
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
53
With check boxes,only one option can be selected at a time.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
54
Multiple radio buttons in the same group can be set to a checked state at the same time.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
55
Each choice in a check box list can be either on or off.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following is a main component of a Web page form?

A)input controls
B)< form > tag
C)link to a major search engine
D)Submit button
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
57
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.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
58
A checkbox control allows a Web page visitor to select only one choice from a list of choices.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
59
A text input control is a ____ box.

A)link
B)textarea
C)password text
D)text
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
60
A select input control creates a series of check boxes for Web visitors to use.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
61
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.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
62
HTML5 includes new attributes for the < input / > tag.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
63
A(n)____________________ input control is either a text box,a textarea box,or a password text box.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
64
You should validate the code after the form is completed and view and test it using your browser.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
65
The value attribute of the < input / > tag is optional for radio and checkbox controls.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
66
Information on forms can be sent by e-mail to an e-mail address or can be used to update a database.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
67
The post method is a program written in a programming language that communicates with the Web server.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
68
A FORM script sends the information input on a Web page form to the Web server for processing.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
69
For a textarea field,no value attribute is possible because of the variability of the input.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
70
An embedded style sheet changes the style for a single Web page.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
71
The ____________________ attribute of the text control determines the number of characters that display on the form.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
72
A(n)____________________ control tells the browser to send the data on the form to the server.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
73
In a(n)____________________ text box,a visitor may enter a password.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
74
The < legend > tag within the fieldset tag is required.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
75
All options in a selection menu are contained within the < select > and < /select > tags.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
76
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.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
77
When you are collecting information from an online form,it is very important to test that the information is accurate.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
78
The get method sends the name-value pairs to the end of the URL indicated in the action attribute.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
79
If you do not specify a size attribute in the < select > tag,only one option is displayed,along with a list arrow.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
80
In a(n)____________________ box,a visitor may enter larger amounts of text.
Unlock Deck
Unlock for access to all 112 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 112 flashcards in this deck.