Chapter 7

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which character is used to separate parameters that are appended to a URL? a. & b. = c. $ d. ?

a. &

How many radio buttons from the following code can be selected at any given time? <input type="radio" name="address" value="Home">Home Address <input type="radio" name="delivery" value="FedEx">Federal Express <input type="radio" name="delivery" value="UPS">UPS a. 2 b. 0 c. 3 d. 1

a. 2

Which PHP function can be used to determine if a checkbox is checked? a. isset() b. boolean() c. value() d. is_checked()

a. isset()

Which optional attribute of a select element allows the user to select more than one option in a list box? a. multiple b. plural c. morethanone d. Size

a. multiple

Which character is used to separate the original URL from the parameters that are appended to it? a. $ b. & c. ? d. =

c. ?

Assume that the second radio button in the code below has been selected by the user. When you get the value of that radio button, what will the value be? <input type="radio" name="delivery" value="USPS">USPS <input type="radio" name="delivery" value="FedEx">Federal Express <input type="radio" name="delivery" value="UPS">UPS a. fedex b. federal express c. FedEx d. Federal Express

c. FedEx

Which HTML element is used to create a drop-down list? a. drop-down b. list c. input d. Select

d. Select

In order to group multiple radio buttons so that only one of the radio buttons can be selected at a time, which attribute of the input element must have the same value for all radio buttons in the group? a. checked b. id c. value d. name

d. name

Which method of the form appends values to the URL to pass data? a. POST b. APPEND c. GET d. ACTION

c. GET

Assume that the statements that follow get the data from a text area named comments. After these statements are executed, how will the $comments_esc variable be displayed by an echo statement? $comments = filter_input(INPUT_POST, 'comments'); $comments_esc = htmlspecialchars($comments); a. With both character entities and <br> tags b. With <br> tags for new line characters c. With character entities for special characters d. With character entities for both special characters and new line characters

c. With character entities for special characters


Conjuntos de estudio relacionados

CH 15 ~ Scalp Care, Shampooing & Conditioning

View Set

important Nursing 204 Pharmacology Review

View Set

Sociology: The Family, Chapters 4 & 5

View Set

APHY 201 Module 01 Membrane Transport

View Set

Chapter 2 Fitness and Prescription Assessment

View Set

AP European History: Chapter 13 (Reformations and Religious Wars (1500-1600))

View Set