Zend 200-550 - Zend Certified PHP Engineer Exam

Page:    1 / 45   
Total 223 questions

What is the output of the following code?
echo '1' . (print '2') + 3;

  • A. 123
  • B. 213
  • C. 142
  • D. 214
  • E. Syntax error


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;

  • A. one
  • B. two
  • C. three
  • D. four


Answer : C

What is "instanceof" an example of?

  • A. a boolean
  • B. an operator
  • C. a function
  • D. a language construct
  • E. a class magic


Answer : B

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

  • A. A scalar
  • B. An expression
  • C. A boolean
  • D. All of the above


Answer : D

What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';

  • A. abc
  • B. cd
  • C. 0d


Answer : B

Page:    1 / 45   
Total 223 questions