Zend-Technologies Zend Certified Engineer - 200-710 Exam Practice Test
Question 1
Which of these statements about PDO is NOT true?
Correct Answer: C
Question 2
Which of the following functions will allow identifying unique values inside an array?
Correct Answer: E
Question 3
What is the output of the following code?
$ first= "second";
$ second = "first";
echo $$$first;
$ first= "second";
$ second = "first";
echo $$$first;
Correct Answer: B
Question 4
Which of the following statements about anonymous functions in PHP are NOT true? (Choose 2)
Correct Answer: A,D
Question 5
In the following code, which classes can be instantiated?
abstract class Graphics {
abstract function draw($im, $col);
}
abstract class Point1 extends Graphics {
public $x, $y;
}
function _construct($x, $y) {
$ this->x = $x;
$ this->y = $y;
}
function draw($im, $col) {
lmageSetPixel($im, $this->x, $this->y, $col);
}
class Point2 extends Point1 {}
abstract class Point3 extends Point2 {}
abstract class Graphics {
abstract function draw($im, $col);
}
abstract class Point1 extends Graphics {
public $x, $y;
}
function _construct($x, $y) {
$ this->x = $x;
$ this->y = $y;
}
function draw($im, $col) {
lmageSetPixel($im, $this->x, $this->y, $col);
}
class Point2 extends Point1 {}
abstract class Point3 extends Point2 {}
Correct Answer: B
Question 6
Which line of code can be used to replace the INSERT comment in order to output "hello"?
class C {
public $ello == 'ello';
public $c;
public $m;
function _construct($y) {
$ this->c == static function($f) {
// INSERT LINE OF CODE HERE
};
$ this->m == function() {
return "h";
};
$ x == new C("h");
$ f == $x->c;
echo $f($x->m);
class C {
public $ello == 'ello';
public $c;
public $m;
function _construct($y) {
$ this->c == static function($f) {
// INSERT LINE OF CODE HERE
};
$ this->m == function() {
return "h";
};
$ x == new C("h");
$ f == $x->c;
echo $f($x->m);
Correct Answer: C
Question 7
Assuming UTF-8 encoding, what is the value of $count?


Correct Answer: B
Question 8
What types of HTTP authentication are supported by PHP? (Choose 2)
Correct Answer: B,E
Question 9
Which of these databases is NOT supported by a PDO driver?
Correct Answer: A
Question 10
What is the output of the following code?


Correct Answer: B
Question 11
Which one of the following XML declarations is NOT valid?
Correct Answer: B
Question 12
Given a PHP value, which sample shows how to convert the value to JSON?
Correct Answer: A

