Summer Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dealsixty

200-550 Exam Dumps - Zend PHP and Zend Framework Certifications Questions and Answers

Question # 4

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

Options:

A.

bang bong bung

B.

bang bonged bung

C.

big bang bong bung

D.

big bang bung

Buy Now
Question # 5

Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?

Options:

A.

$json = new Json($jsonValue); $value = $json->decode();

B.

$value = Json::decode($jsonValue);

C.

$value = json_decode($jsonValue);

D.

$value = Json::fromJson($jsonValue);

Buy Now
Question # 6

Consider the following table data and PHP code. What is the outcome?

Table data (table name "users" with primary key "id"):

id name email

------- ----------- -------------------

1 anna alpha@example.com

2 betty beta@example.org

3 clara gamma@example.net

5 sue sigma@example.info

PHP code (assume the PDO connection is correctly established):

$dsn = 'mysql:host=localhost;dbname=exam';

$user = 'username';

$pass = '********';

$pdo = new PDO($dsn, $user, $pass);

try {

$cmd = "INSERT INTO users (id, name, email) VALUES (:id, :name, :email)";

$stmt = $pdo->prepare($cmd);

$stmt->bindValue('id', 1);

$stmt->bindValue('name', 'anna');

$stmt->bindValue('email', 'alpha@example.com');

$stmt->execute();

echo "Success!";

} catch (PDOException $e) {

echo "Failure!";

throw $e;

}

Options:

A.

The INSERT will succeed and the user will see the "Success!" message.

B.

The INSERT will fail because of a primary key violation, and the user will see the "Success!" message.

C.

The INSERT will fail because of a primary key violation, and the user will see a PDO warning message.

D.

The INSERT will fail because of a primary key violation, and the user will see the "Failure!" message.

Buy Now
Question # 7

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

Options:

A.

22333

B.

33222

C.

33322

D.

222333

Buy Now
Question # 8

Which PHP function sets a cookie and URL encodes its value when sending it to the browser?

Options:

Buy Now
Question # 9

What is cached by an opcode cache?

Options:

A.

Compiled PHP code

B.

Native PHP extensions

C.

Data sent to the client

D.

Data received from the database

Buy Now
Question # 10

What method can be used to find the tag via the DOM extension?

Options:

A.

getElementById()

B.

getElementsByTagName()

C.

getElementsByTagNameNS()

D.

getElementByName()

E.

findTag()

Buy Now
Question # 11

How can a SimpleXML object be converted to a DOM object?

Options:

A.

dom_import_simplexml()

B.

dom_export_simplexml()

C.

simplexml_import_dom()

D.

SimpleXML2Dom()

E.

None of the above.

Buy Now
Question # 12

What function allows resizing of PHP's file write buffer?

Options:

A.

ob_start()

B.

set_write_buffer()

C.

stream_set_write_buffer()

D.

Change the output_buffering INI setting via ini_set() function

Buy Now
Question # 13

Given the following code, what is correct?

function f(stdClass &$x = NULL) { $x = 42; }

$z = new stdClass;

f($z);

var_dump($z);

Options:

A.

Error: Typehints cannot be NULL

B.

Error: Typehints cannot be references

C.

Result is NULL

D.

Result is object of type stdClass

E.

Result is 42

Buy Now
Exam Code: 200-550
Exam Name: Zend Certified PHP Engineer
Last Update: Apr 29, 2025
Questions: 223
200-550 pdf

200-550 PDF

$34  $84.99
200-550 Engine

200-550 Testing Engine

$38  $94.99
200-550 PDF + Engine

200-550 PDF + Testing Engine

$54  $134.99