Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Zend > PHP and Zend Framework Certifications > 200-550

200-550 Zend Certified PHP Engineer Question and Answers

Question # 4

What will the following function call print?

printf('%010.6f', 22);

A.

22

B.

22.00

C.

022.000000

D.

22.000000

Full Access
Question # 5

Given the following code, what is correct?

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

$z = new stdClass;

f($z);

var_dump($z);

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

Full Access
Question # 6

What can prevent PHP from being able to open a file on the hard drive (Choose 2)?

A.

File system permissions

B.

File is outside of open_basedir

C.

File is inside the /tmp directory.

D.

PHP is running in CGI mode.

Full Access
Question # 7

Which string will be returned by the following function call?

$test = '/etc/conf.d/wireless';

substr($test, strrpos($test, '/')); // note that strrpos() is being called, and not strpos()

A.

""

B.

"/wireless"

C.

"wireless"

D.

"/conf.d/wireless"

E.

"/etc"

Full Access
Question # 8

Which of the following filtering techniques prevents all cross-site scripting (XSS) vulnerabilities?

A.

Strip all occurrences of the string