What is the output of the following code?
echo '1' . (print '2') + 3;
Correct Answer:
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;
}
Correct Answer:
C
🗳️
What is "instanceof" an example of?
Correct Answer:
B
🗳️
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
Correct Answer:
D
🗳️
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
Correct Answer:
B
🗳️