Winter Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

PHP and Zend Framework Certifications 200-550 Dumps PDF

Page: 3 / 8
Total 223 questions

Zend Certified PHP Engineer Questions and Answers

Question 9

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

Question 10

Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)

Options:

A.

header_add()

B.

header()

C.

http_set_status()

D.

http_response_code()

E.

http_header_set()

Question 11

What will be the result of the following operation?

$a = array_merge([1,2,3] + [4=>1,5,6]);

echo $a[2];

Options:

A.

4

B.

3

C.

2

D.

false

E.

Parse error

Question 12

What is the output of the following code?

var_dump(boolval([]));

Options:

A.

bool(true)

B.

bool(false)

Page: 3 / 8
Total 223 questions