1. After you install PHP, you can run php scripts by using ____ . a. Mozilla b.
ID: 643539 • Letter: 1
Question
1. After you install PHP, you can run php scripts by using ____ .
a.
Mozilla
b.
Apache
c.
d.
Internet Explorer
Both a and c are correct
____ 2. You configure PHP by modifying the ____ configuration file.
a.
php.ini
b.
localhost.ini
c.
php.com
____ 3. A Web page document containing PHP code must have an extension of ____.
a.
html
b.
htm
c.
php
____ 4. Which of the following variables is an array of environment information?
a.
$_COOKIE
c.
$_ENV
b.
$_SERVER
d.
$_get
____ 5. Which of the following variables is an array of values from a form submitted with the POST method?
a.
$_POST
b.
$_GET
c.
$_SESSION
d.
$GLOBALS
____ 6. The ____ that are available with the $_SERVER variable depend on the Web server that executes the PHP script.
a.
autoglobals
c.
Elements (keys)
b.
functions
d.
statements
____ 7. Two of the most commonly used variables, ____ and $_POST, allow you to access the values of forms that are submitted to a PHP script.
a.
$_GET
c.
$_SESSION
b.
$GLOBALS
d.
$_REQUEST
____ 8. You must use what when referring to array elements?
a.
parentheses
c.
semi-colons
b.
brackets
d.
colons
____ 9. The concatenation operator for strings in PHP is a ____.
a.
plus sign (+)
c.
minus sign (-)
b.
period (.)
d.
question mark (?)
____ 10. The syntax for declaring and initializing an associative array is ____.
a.
$array_name=array(key=>value, ...);
c.
$array_name=array(key=value, ...);
b.
$array_name=array(key=
d.
$array_name=array(key==value, ...);
a.
Mozilla
b.
Apache
c.
d.
Internet Explorer
Both a and c are correct
Explanation / Answer
1) b. Apache
2) a. php.ini
3) c. php
4) c. $_ENV
5) a. $_POST
6) c. Elements(keys)
7) a. $_GET
8) b. brackets
9) b. period(.)
10) a. $array_name-array(key=>value,...);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.