Building Web Applications in PHP Week 8 Practice Quiz Answer
Building Web Applications in PHP Week 8 Practice Quiz Answer
Visit this link: Building Web Applications in PHP Week 7 Practice Quiz Answer
Forms
Question 1)
A properly formatted form element will always include an action attribute.
- True
- False
Question 2)
Web crawlers follow anchor tags <a href=”…. and may even fill in forms with a method of GET, but will never submit a form with a method= attribute of [_____].
- POST
Question 3)
Within PHP the [_____] array merges $_GET and $_POST data.
- $_REQUEST
Question 4)
It is good practice for a web application to change data on a GET request.
- True
- False
Question 5)
The [_____] attribute of an text input field will set a default value for the field.
- value
Question 6)
The function htmlentities will transform an ampersand character ( & ) into
- &
Question 7)
The input type [_____] will display your form input as dots.
- password
Question 8)
To connect the behavior of multiple radio buttons (e.g. to make sure that only one is “on” at the same time), make sure to give each radio button the same [_____] attribute.
- name
Question 9)
To set a checkbox as checked by default, use the [_____] attribute.
- checked
Question 10)
To set a default option in a drop-down list, use the [_____] attribute.
- selected
Question 11)
All browsers treat unknown input types as type= [_____] “
- text
Question 12)
In HTML5, the email input type doesn’t validate the value until you press
- submit
Question 13)
Post data is appended to the URL.
- True
- False
Question 14)
In a PHP script, it is generally a good idea to process any incoming POST data before you produce page output.
- True
- False
Question 15)
“View Page Source” allows you to see the HTML code.
- True
- False
Question 16)
“View Page Source” allows you to see the PHP code.
- True
- False
Question 17)
“View Page Source” allows you to see the output of the PHP code.
- True
- False