PHP Test with Questions with 100%
CorrecT Answers
extends - ANSWER Use the ______ keyword to specify that one class is to be a subclass
of another.
string - ANSWER Data type that will be assigned to the PHP variable $a with the
following data assignment statement $a = "Jim";
5 - ANSWER "Number of times this for loop will execute: for ($i = 1; $i <= 10; $i = $i + 2) {
echo $i;
}"
$ - ANSWER Special character used as the first character before the variable name to
make it stand out in a PHP script
; - ANSWER Special character that terminates statements in PHP
$a == $b - ANSWER Tests for equal values only between variables $a and $b
{...} - ANSWER Set of characters used around a block of code
fopen() - ANSWER Function that opens a file in PHP
, White Space - ANSWER PHP engine ignores_________
// - ANSWER Symbol that represents a single line comment in PHP
POST - ANSWER Method recommended as most private when passing form data to
a PHP script
AND - ANSWER Logical operator signified by double ampersand (&&) characters
fwrite() - ANSWER Function in PHP that will write to a file
Boolean - ANSWER Data type that only stores true or false values
define - ANSWER Keyword used to declare constants
5 - ANSWER Integer value that the variable $a will contain after the execution of
these two PHP statements $a = 3; $a += 2;
Number - ANSWER PHP variable names cannot begin with a _________
feof() - ANSWER Function in PHP that tests for end of file in a while loop
continue; - ANSWER PHP statement that will skip to the next iteration of a loop
exit; - ANSWER PHP statement that completely terminates execution of the script
CorrecT Answers
extends - ANSWER Use the ______ keyword to specify that one class is to be a subclass
of another.
string - ANSWER Data type that will be assigned to the PHP variable $a with the
following data assignment statement $a = "Jim";
5 - ANSWER "Number of times this for loop will execute: for ($i = 1; $i <= 10; $i = $i + 2) {
echo $i;
}"
$ - ANSWER Special character used as the first character before the variable name to
make it stand out in a PHP script
; - ANSWER Special character that terminates statements in PHP
$a == $b - ANSWER Tests for equal values only between variables $a and $b
{...} - ANSWER Set of characters used around a block of code
fopen() - ANSWER Function that opens a file in PHP
, White Space - ANSWER PHP engine ignores_________
// - ANSWER Symbol that represents a single line comment in PHP
POST - ANSWER Method recommended as most private when passing form data to
a PHP script
AND - ANSWER Logical operator signified by double ampersand (&&) characters
fwrite() - ANSWER Function in PHP that will write to a file
Boolean - ANSWER Data type that only stores true or false values
define - ANSWER Keyword used to declare constants
5 - ANSWER Integer value that the variable $a will contain after the execution of
these two PHP statements $a = 3; $a += 2;
Number - ANSWER PHP variable names cannot begin with a _________
feof() - ANSWER Function in PHP that tests for end of file in a while loop
continue; - ANSWER PHP statement that will skip to the next iteration of a loop
exit; - ANSWER PHP statement that completely terminates execution of the script