Free 200-550 Exam Braindumps (page: 27)

Page 26 of 56

What is the output of the following code?
var_dump(boolval([]));

  1. bool(true)
  2. bool(false)

Answer(s): B



What is the output of the following code?
var_dump(boolval(new StdClass()));

  1. bool(true)
  2. bool(false)

Answer(s): A



CORRECT TEXT
Consider the following code:

$result = $value1 ??? $value2;
Which operator needs to be used instead of ??? so that $result equals $value1 if $value1 evaluates to true, and equals $value2 otherwise? Just state the operator as it would be required in the code.

  1. ?:

Answer(s): A



Which of the following is NOT true about PHP traits? (Choose 2)

  1. Multiple traits can be used by a single class.
  2. A trait can implement an interface.
  3. A trait can declare a private variable.
  4. Traits are able to be auto-loaded.
  5. Traits automatically resolve conflicts based on definition order.

Answer(s): B,E






Post your Comments and Discuss Zend 200-550 exam with other Community members:

200-550 Discussions & Posts