Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MultipleNNeed to check my answers. Identify the choice that best completes the s

ID: 3552307 • Letter: M

Question

MultipleNNeed to check my answers.

Identify the choice that best completes the statement or answers the 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=<value, ...);

d.

$array_name=array(key==value, ...);

a.

Mozilla

b.

Apache

c.

d.

Internet Explorer

Both a and c are correct

Explanation / Answer

1) b

2) a

3) c

4) b

5) a

6) c

7) a

8) b

9) b

10) a