Zend 200-550 Exam Questions
Zend Certified PHP Engineer (Page 7 )

Updated On: 14-Mar-2026

Which of the following methods are available to limit the amount of resources available to PHP through php.ini? (Choose 2)

  1. Limit the amount of memory a script can consume
  2. Limit the total amount of memory PHP uses on the entire server
  3. Limit the maximum execution time of a script
  4. Limit the maximum number of concurrent PHP processes
  5. Limit the maximum number of concurrent PHP threads

Answer(s): A,C



Consider the following two files. When you run test.php, what would the output look like?
test.php:
include "MyString.php";
print ", ";
print strlen("Hello world!");
MyString.php:
namespace MyFramework\String;
function strlen($str)
{
return \strlen($str)*2; // return double the string length
}
print strlen("Hello world!")

  1. 12, 12
  2. 12, 24
  3. 24, 12
  4. 24, 24
  5. PHP Fatal error: Cannot redeclare strlen()

Answer(s): C



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);

  1. return $this->m() . "ello";
  2. return $f() . "ello";
  3. return "h". $this->ello;
  4. return $y . "ello";

Answer(s): B



What is the output of the following code?
function z($x) {
return function ($y) use ($x) {
return str_repeat($y, $x);
};
}
$a = z(2);
$b = z(3);
echo $a(3) . $b(2);

  1. 22333
  2. 33222
  3. 33322
  4. 222333

Answer(s): B



What is the output of the following code?
$f = function () { return "hello"; };
echo gettype($f);

  1. hello
  2. string
  3. object
  4. function

Answer(s): C



Viewing page 7 of 46
Viewing questions 31 - 35 out of 223 questions



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

200-550 Exam Discussions & Posts

AI Tutor 👋 I’m here to help!