CORRECT TEXT
Which value will be assigned to the key 0 in the following code?
1
What is the output of the following code?
echo '1' . (print '2') + 3;
D
What is the output of the following code?
$a = 3;
switch ($a) {
case 1: echo 'one'; break;
case 2: echo 'two'; break;
default: echo 'four'; break;
case 3: echo 'three'; break;
}
C
What is "instanceof" an example of?
B
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
D
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
B
Which of the following are valid identifiers? (Choose 3)
B, C, E
What super-global should be used to access information about uploaded files via a POST request?
D
What is the difference between "print" and "echo"?
B
What is the output of the following code?
echo "1" + 2 * "0x02";
C