Deck 11: Web Forms
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
Play
Full screen (f)
Deck 11: Web Forms
1
Forms rarely contain basic HTML formatting tags such as < p > and < br/ >.
False
2
Which of the following is the scripting language used most often with HTML forms?
A) PHP
B) JavaScript
C) PERL
D) VBScript
A) PHP
B) JavaScript
C) PERL
D) VBScript
B
3
Which attribute of a form is the URL of the application that processes the form data?
A) method
B) action
C) accept
D) location
A) method
B) action
C) accept
D) location
B
4
The scripting language most often used with HTML forms is is CSS3.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
The < list > element lets you create a list box or scrollable list of selectable options.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Use the mailto action to collect data from a form and securely process the data.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Forms provide a user interface to enter data but a server processes the data.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
The ____ attribute of a form specifies the content type used to submit the form to the server.
A) action
B) enctype
C) method
D) accept
A) action
B) enctype
C) method
D) accept
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Which form attribute do you use to specify a list of content types that a server processing the form can handle correctly?
A) action
B) enctype
C) method
D) accept
A) action
B) enctype
C) method
D) accept
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Using programs called ____, CGI can collect data sent by a user.
A) functions
B) applets
C) scripts
D) methods
A) functions
B) applets
C) scripts
D) methods
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
When radio buttons are grouped with the same name, only one choice ban be selected.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
If you want to limit the allowed character sets that the server accepts, which form attribute can you use?
A) accept-char
B) accept-charset
C) accept
D) accept-chars
A) accept-char
B) accept-charset
C) accept
D) accept-chars
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Which method sends the form information by including it in the URL?
A) select
B) post
C) input
D) get
A) select
B) post
C) input
D) get
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following is the default method used to submit form data?
A) get
B) post
C) action
D) put
A) get
B) post
C) action
D) put
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
To send data securely to the server, you should use the get method.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Which element is the container for creating a form?
A) < input >
B) < form >
C) < table >
D) < method >
A) < input >
B) < form >
C) < table >
D) < method >
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
Use the < textarea > element to create a larger space for user input.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
CGI transfers data between the user and the server using scripts.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
When using a password input type object, the entered text is hidden by asterisks.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Which form attribute specifies how to submit the form data to the server?
A) method
B) enter
C) submit
D) submit-method
A) method
B) enter
C) submit
D) submit-method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
Which input type attribute provides an on/off toggle that the user selects?
A) reset
B) radio
C) check box
D) button
A) reset
B) radio
C) check box
D) button
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
Which input type attribute opens a calendar picker when selected?
A) year
B) date
C) time
D) calendar
A) year
B) date
C) time
D) calendar
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
___________________, originally created for the Netscape browser, is a client-side scripting language.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
When selecting an image file for the submit button, the ____ attribute contains the location of the image file.
A) file
B) location
C) img
D) src
A) file
B) location
C) img
D) src
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
Which method should you use to send form data securely within the message body?
A) input
B) post
C) get
D) secure
A) input
B) post
C) get
D) secure
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The ________________ method sends data in the form, but it is not secure and should not be used for confidential information.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Which input type attribute adds a control that is not displayed in the browser?
A) hidden
B) nodisplay
C) invisible
D) additional
A) hidden
B) nodisplay
C) invisible
D) additional
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
Each ____ element contains a list value.
A) < menuitem >
B) < input >
C) < select >
D) < option >
A) < menuitem >
B) < input >
C) < select >
D) < option >
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
What attribute do you use to group check boxes to allow the user to select multiple values for the same property?
A) name
B) multi
C) group
D) select
A) name
B) multi
C) group
D) select
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Which element contains a label for a grouping of different types of < input > elements?
A) < labels >
B) < group >
C) < fieldset >
D) < legend >
A) < labels >
B) < group >
C) < fieldset >
D) < legend >
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The ____________________ method sends the form information securely to the server within the message body, so the data is not visible.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
The ____ element lets you create a list box or scrollable list of selectable options.
A) < select >
B) < button >
C) < input >
D) < option >
A) < select >
B) < button >
C) < input >
D) < option >
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
The ____ type input object sends the form data to the server using the transmission method specified in the < form > element.
A) text
B) submit
C) reset
D) button
A) text
B) submit
C) reset
D) button
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
The ____________________ attribute of the < form > element specifies how to submit the form data.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
Which input type attribute creates an object that performs a script function when the user pushes it?
A) file
B) text
C) button
D) select
A) file
B) text
C) button
D) select
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
What attribute do you add to the < select > element to allow users to pick more than one value from the list?
A) several
B) multiple
C) values
D) number
A) several
B) multiple
C) values
D) number
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
What input type attribute should you provide if you want the user to be able to clear the form?
A) undo
B) rewrite
C) reset
D) clear
A) undo
B) rewrite
C) reset
D) clear
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
Which input type attribute should you use if you want to mask the characters typed by the user?
A) text
B) password
C) hidden
D) masked
A) text
B) password
C) hidden
D) masked
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
In a < select > element, the ____ attribute specifies how many of the list options are visible at a time.
A) number
B) selected
C) size
D) label
A) number
B) selected
C) size
D) label
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
The Common _________________ Interface transfers data between the user and the server.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Describe the < form > element and the attributes associated with it.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
What are the primary input object types? Provide a code example of two different input types.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
Describe how to use the < select > element. Use examples.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
When using text boxes, you can constrain the user's entry of text with the ____________________ attribute.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Give a brief overview of forms and how they work. Include a description of the Common Gateway Interface.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
The < select > element is a container for the ____________________ element which contains a list value.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
_______________ buttons are like check boxes, but only one selection is allowed.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Using the ______________ action, you can collect data from a form and send it to an email address.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
Check boxes are on/off ____________ that the user can select.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
Describe how to use methods in a form - give examples of using both method types.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck