Zend Certified Engineer 200-710 Exam Practice Test

Page: 1 / 14
Total 232 questions
Question 1

Which of these error types may be handled by a user defined error handler function? (Choose two.)



Answer : A, C


Question 2

Consider the following code. What change must be made to the class for the code to work as written?

class Magic {

protected $v = array("a" => 1, "b" => 2, "c" => 3);

public function __get($v) {

return $this->v[$v];

}

}

$m = new Magic();

$m->d[] = 4;

echo $m->d[0];



Answer : D


Question 3

Which of the following statements is correct?



Answer : B


Question 4

Late static binding is used in PHP to:



Answer : B


Question 5

Which of the following expressions will evaluate to a random value from an array below?

$array = array("Sue","Mary","John","Anna");



Answer : D


Question 6

Given the following code, what is correct?

function f(stdClass &$x = NULL) { $x = 42; }

$z = new stdClass;

f($z);

var_dump($z);



Answer : E


Question 7

What is the output of the following code?

class Test {

public function __call($name, $args)

{

call_user_func_array(array('static', "test$name"), $args);

}

public function testS($l) {

echo "$l,";

}

}

class Test2 extends Test {

public function testS($l) {

echo "$l,$l,";

}

}

$test = new Test2();

$test->S('A');



Answer : B


Page:    1 / 14   
Total 232 questions