Deck 6: Creating a Form on a Web Page

Full screen (f)
exit full mode
Question
Which of the following controls sends a form to a server for processing?

A) enter
B) reset
C) send
D) submit
Use Space or
up arrow
down arrow
to flip the card.
Question
The text control has two attributes: ____.

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

A) clear
B) empty
C) reset
D) new
Question
The type="____" attribute specifies that the type of control is the radio button.

A) radio
B) check
C) option
D) circle
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
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 tag.

A) chosen
B) default
C) checked
D) preselect
Question
The ____ attribute of the text tag specifies the maximum length of the input field.

A) size
B) limit
C) maxlength
D) control
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
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
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
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 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
A radio button typically displays as which of the following?

A) bullet
B) open circle
C) small rectangle
D) none of the above
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
In a radio control each choice is preceded by a radio ____.

A) menu
B) bar
C) button
D) either b or c
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
In a ____ box, a visitor may enter small amounts of text.

A) capture
B) link
C) text
D) textarea
Question
A(n) ____ control is any type of input mechanism on a form.

A) variable
B) input
C) parameter
D) form
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 creates a drop-down menu of choices from which a visitor chooses?

A) select
B) option
C) menu
D) choice
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
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
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
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
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
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
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
The default type for the tag is a ____.

A) radio button
B) checkbox
C) text box
D) textarea
Question
The ____ attribute of the
tag indicates the URL for the action to be completed by the server.

A) method
B) process
C) action
D) http
Question
The <____> tag defines the text that displays in the grouping borders.

A) key
B) legend
C) cluster
D) aggregate
Question
The two values of the ____ attribute in HTML are get and post.

A) process
B) server
C) http
D) method
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
Which of the following attributes specifies a reset button?

A) type="option"
B) master="reset"
C) reset="type"
D) type="reset"
Question
The ____ attribute of the
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
All controls except one have a ____ attribute.

A) name
B) link
C) value
D) select
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
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
Which of the following characters strings together all of the form responses?

A) &
B) !
C) @
D) %
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)
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
By default, all check boxes are pre-selected. _________________________
Question
A text control creates a text box that is used for a single line of input. _________________________
Question
It is a good rule of thumb to use between 50 and 100 columns of text in a textarea field.
Question
A Web page form must include a Reset button. _________________________
Question
The paragraph input control creates a multiple-line field for a relatively large amount of text. _________________________
Question
Each choice in a check box list can be either on or off.
Question
A password always appears as a series of which of the following?

A) characters
B) asterisks
C) bullets
D) ampersands
Question
Multiple radio buttons in the same group can be set to a checked state at the same time.
Question
A Web page form must include a Reset button.
Question
Which of the following is a main component of a Web page form?

A) input controls
B)
tag
C) link to a major search engine
D) Submit button
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
The reset input control sends the information from a form to the appropriate location for processing. _________________________
Question
A checkbox control allows a Web page visitor to select only one choice from a list of choices.
Question
The resume and send controls create the Reset and Submit buttons.
Question
The maximum length of a text field may exceed the size of the field that displays on the form.
Question
Which of the following controls creates a list item?

A) checkbox
B) radio
C) list
D) dropdown
Question
A select input control creates a series of check boxes for Web visitors to use.
Question
With check boxes, only one option can be selected at a time.
Question
A text input control is a ____ box.

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

A) enter
B) reset
C) send
D) submit
D
2
The text control has two attributes: ____.

A) cols and rows
B) post and get
C) size and maxlength
D) width and height
C
3
Which of the following controls returns all input controls to the default status?

A) clear
B) empty
C) reset
D) new
C
4
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 111 flashcards in this deck.
Unlock Deck
k this deck
5
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 111 flashcards in this deck.
Unlock Deck
k this deck
6
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 tag.

A) chosen
B) default
C) checked
D) preselect
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
7
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 111 flashcards in this deck.
Unlock Deck
k this deck
8
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 111 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following controls is identical to text fields used for single-line data entry?

A) submit
B) textarea
C) password
D) radio
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
10
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
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
11
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 111 flashcards in this deck.
Unlock Deck
k this deck
12
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 111 flashcards in this deck.
Unlock Deck
k this deck
13
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 111 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 111 flashcards in this deck.
Unlock Deck
k this deck
15
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 111 flashcards in this deck.
Unlock Deck
k this deck
16
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 111 flashcards in this deck.
Unlock Deck
k this deck
17
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 111 flashcards in this deck.
Unlock Deck
k this deck
18
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 111 flashcards in this deck.
Unlock Deck
k this deck
19
____ 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
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
20
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 111 flashcards in this deck.
Unlock Deck
k this deck
21
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 111 flashcards in this deck.
Unlock Deck
k this deck
22
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 111 flashcards in this deck.
Unlock Deck
k this deck
23
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 111 flashcards in this deck.
Unlock Deck
k this deck
24
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 111 flashcards in this deck.
Unlock Deck
k this deck
25
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 111 flashcards in this deck.
Unlock Deck
k this deck
26
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 111 flashcards in this deck.
Unlock Deck
k this deck
27
The
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 111 flashcards in this deck.
Unlock Deck
k this deck
28
The default type for the tag is a ____.

A) radio button
B) checkbox
C) text box
D) textarea
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
29
The ____ attribute of the
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 111 flashcards in this deck.
Unlock Deck
k this deck
30
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 111 flashcards in this deck.
Unlock Deck
k this deck
31
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 111 flashcards in this deck.
Unlock Deck
k this deck
32
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 111 flashcards in this deck.
Unlock Deck
k this deck
33
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 111 flashcards in this deck.
Unlock Deck
k this deck
34
The ____ attribute of the
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 111 flashcards in this deck.
Unlock Deck
k this deck
35
All controls except one have a ____ attribute.

A) name
B) link
C) value
D) select
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
36
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 111 flashcards in this deck.
Unlock Deck
k this deck
37
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 111 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following characters strings together all of the form responses?

A) &
B) !
C) @
D) %
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
39
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)
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
40
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 111 flashcards in this deck.
Unlock Deck
k this deck
41
By default, all check boxes are pre-selected. _________________________
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
42
A text control creates a text box that is used for a single line of input. _________________________
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
43
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 111 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 111 flashcards in this deck.
Unlock Deck
k this deck
45
The paragraph input control creates a multiple-line field for a relatively large amount of text. _________________________
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
46
Each choice in a check box list can be either on or off.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
47
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 111 flashcards in this deck.
Unlock Deck
k this deck
48
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 111 flashcards in this deck.
Unlock Deck
k this deck
49
A Web page form must include a Reset button.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
50
Which of the following is a main component of a Web page form?

A) input controls
B)
tag
C) link to a major search engine
D) Submit button
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
51
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 111 flashcards in this deck.
Unlock Deck
k this deck
52
The reset input control sends the information from a form to the appropriate location for processing. _________________________
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
53
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 111 flashcards in this deck.
Unlock Deck
k this deck
54
The resume and send controls create the Reset and Submit buttons.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
55
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 111 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following controls creates a list item?

A) checkbox
B) radio
C) list
D) dropdown
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
57
A select input control creates a series of check boxes for Web visitors to use.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
58
With check boxes, only one option can be selected at a time.
Unlock Deck
Unlock for access to all 111 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 111 flashcards in this deck.
Unlock Deck
k this deck
60
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 111 flashcards in this deck.
Unlock Deck
k this deck
61
The ____________________ attribute of the text control determines the number of characters that display on the form.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
62
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 111 flashcards in this deck.
Unlock Deck
k this deck
63
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 111 flashcards in this deck.
Unlock Deck
k this deck
64
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 111 flashcards in this deck.
Unlock Deck
k this deck
65
HTML5 includes new attributes for the tag.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
66
For a textarea field, no value attribute is possible because of the variability of the input.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
67
All options in a selection menu are contained within the tags.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
68
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 111 flashcards in this deck.
Unlock Deck
k this deck
69
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 111 flashcards in this deck.
Unlock Deck
k this deck
70
The tag within the fieldset tag is required.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
71
A(n) ____________________ input control is either a text box, a textarea box, or a password text box.
Unlock Deck
Unlock for access to all 111 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 111 flashcards in this deck.
Unlock Deck
k this deck
73
The post method is a program written in a programming language that communicates with the Web server.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
74
The value attribute of the tag is optional for radio and checkbox controls.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
75
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 111 flashcards in this deck.
Unlock Deck
k this deck
76
In a(n) ____________________ text box, a visitor may enter a password.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
77
In a(n) ____________________ box, a visitor may enter larger amounts of text.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
78
If you do not specify a size attribute in the
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
79
An embedded style sheet changes the style for a single Web page.
Unlock Deck
Unlock for access to all 111 flashcards in this deck.
Unlock Deck
k this deck
80
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 111 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 111 flashcards in this deck.