Review 223 200-550 practice questions with answer explanations and community insights.
Question 1
What is the output of the following code? echo '1' . (print '2') + 3;
123
213
142
214
Syntax error
Question 2
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; }
one
two
three
four
Question 3
What is "instanceof" an example of?
a boolean
an operator
a function
a language construct
a class magic
Question 4
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
A scalar
An expression
A boolean
All of the above
Question 5
What is the output of the following code? $a = 'a'; $b = 'b'; echo isset($c) ? $a.$b.$c : ($c = 'c').'d';