Zend 200-550 Exam (page: 6)
Zend Certified PHP Engineer
Updated on: 28-Jul-2025

Viewing Page 6 of 46

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 6 of 46



Share your comments for Zend 200-550 exam with other users:

Puneeth 10/5/2023 2:06:00 AM

new to this site but i feel it is good
EUROPEAN UNION


Ashok Kumar 1/2/2024 6:53:00 AM

the correct answer to q8 is b. explanation since the mule app has a dependency, it is necessary to include project modules and dependencies to make sure the app will run successfully on the runtime on any other machine. source code of the component that the mule app is dependent of does not need to be included in the exported jar file, because the source code is not being used while executing an app. compiled code is being used instead.
Anonymous


Merry 7/30/2023 6:57:00 AM

good questions
Anonymous


VoiceofMidnight 12/17/2023 4:07:00 PM

Delayed the exam until December 29th.
UNITED STATES


Umar Ali 8/29/2023 2:59:00 PM

A and D are True
Anonymous


vel 8/28/2023 9:17:09 AM

good one with explanation
Anonymous


Gurdeep 1/18/2024 4:00:15 PM

This is one of the most useful study guides I have ever used.
CANADA