200-550

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;

  1. 123
  2. 213
  3. 142
  4. 214
  5. 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; }

  1. one
  2. two
  3. three
  4. four

Question 3

What is "instanceof" an example of?

  1. a boolean
  2. an operator
  3. a function
  4. a language construct
  5. a class magic

Question 4

Which of the following may be used in conjunction with CASE inside a SWITCH statement?

  1. A scalar
  2. An expression
  3. A boolean
  4. 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';

  1. abc
  2. cd
  3. 0d
We are moving to a new platform

CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.