200-550 Zend Certified PHP Engineer Free Practice Exam Questions (2025 Updated)
Prepare effectively for your Zend 200-550 Zend Certified PHP Engineer certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.
Which of these databases is NOT supported by a PDO driver?
When would you use classes and when would you use namespaces?
Which class of HTTP status codes is used for server error conditions?
What is the output of the following code?
for ($i = 0; $i < 1.02; $i += 0.17) {
$a[$i] = $i;
}
echo count($a);
Which sentence describes the following regular expression match?
preg_match('/^\d+(?:\.[0-9]+)?$/', $test);
Which of these statements about PDO is NOT true?
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
Which of the following is correct? (Choose 2)
What is the difference between "print" and "echo"?
Given the following code, what will the output be:
trait MyTrait {
private $abc = 1;
public function increment() {
$this->abc++;
}
public function getValue() {
return $this->abc;
}
}
class MyClass {
use MyTrait;
public function incrementBy2() {
$this->increment();
$this->abc++;
}
}
$c = new MyClass;
$c->incrementBy2();
var_dump($c->getValue());
Which parts of the text are matched in the following regular expression?
$text = << The big bang bonged under the bung. EOT; preg_match_all('@b.n?g@', $text, $matches);
Under what condition may HTTP headers be set from PHP if there is content echoed prior to the header function being used?
When a browser requests an image identified by an img tag, it never sends a Cookie header.
What is the output of the following code?
$a = 3;
switch ($a) {
case 1: echo 'one'; break;
case 2: echo 'two'; break;
default: echo 'four'; break;
case 3: echo 'three'; break;
}
The XML document below has been parsed into $xml via SimpleXML. How can the value of
What is the output of the following code?
var_dump(boolval(new StdClass()));
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?
Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?
Which of the following expressions will evaluate to a random value from an array below?
$array = array("Sue","Mary","John","Anna");
Which of the following statements about exceptions is correct? (Choose 2)