Free 200-550 Questions for Zend-Technologies Zend Certified PHP Engineer 200-550 Exam as PDF & Practice Test Engine

  • Exam Code/Number: 200-550
  • Exam Name/Title: Zend Certified PHP Engineer
  • Certification Provider: Zend-Technologies
  • Corresponding Certification: Zend
  • Exam Questions: 223
  • Updated On: Oct 12, 2026
What is the output of the following code?
function fibonacci (&$x1 = 0, &$x2 = 1)
{ $result = $x1 + $x2; $x1 = $x2; $x2 = $result;
return $result; }
for ($i = 0; $i < 10; $i++) { echo fibonacci() . ','; }
Correct Answer: D Vote an answer
What is the preferred method for preventing SQL injection?
Correct Answer: A Vote an answer
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
Correct Answer: C Vote an answer
Which interfaces could class C implement in order to allow each statement in the following code to work? (Choose 2) $obj = new C();
foreach ($obj as $x => $y) { echo $x, $y; }
Correct Answer: A,D Vote an answer
How can you determine whether a PHP script has already sent cookies to the client?
Correct Answer: C Vote an answer
What is the output of the following code?
class Base { protected static function whoami() { echo "Base "; } public static function whoareyou() { static::whoami(); }
}
class A extends Base { public static function test() { Base::whoareyou(); self::whoareyou(); parent::whoareyou();
Correct Answer: D Vote an answer
When a browser requests an image identified by an img tag, it never sends a Cookie header.
Correct Answer: A Vote an answer
Which methods can be used to overload object properties? (Choose 2)
Correct Answer: B,E Vote an answer
Late static binding is used in PHP to:
Correct Answer: A Vote an answer
Which of the following items in the $_SERVER superglobal are important for authenticating the client when using HTTP Basic authentication? (Choose 2)
Correct Answer: A,E Vote an answer
CORRECT TEXT
Please provide the value of the $code variable in the following statement to set an HTTP status code that signifies that the requested resource was not found.
http_response_code($code);
Correct Answer:
404, 404 Not Found
CORRECT TEXT
Please provide the name of the super-global variable where all the information about cookies is available.
Correct Answer:
$_COOKIE, $_COOKIE[\], _COOKIE, _COOKIE[\]
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);
Correct Answer: B Vote an answer
0
0
0
10