New Year Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

200-550 Exam Dumps - Zend Certified PHP Engineer

Go to page:
Question # 25

Which of the following expressions will evaluate to a random value from an array below?

$array = array("Sue","Mary","John","Anna");

A.

array_rand($array);

B.

array_rand($array, 1);

C.

shuffle($array);

D.

$array[array_rand($array)];

E.

array_values($array, ARRAY_RANDOM);

Full Access
Question # 26

What function can be used to retrieve an array of current options for a stream context?

A.

stream_context_get_params

B.

stream_context_get_default

C.

stream_context_get_options

D.

The 'options' element of the stream_get_meta_data return value

Full Access
Question # 27

When a query that is supposed to affect rows is executed as part of a transaction, and reports no affected rows, it could mean that: (Choose 2)

A.

The transaction failed

B.

The transaction affected no lines

C.

The transaction was rolled back

D.

The transaction was committed without error

Full Access
Question # 28

What is the result of the following bitwise operation in PHP?

1 ^ 2

A.

1

B.

3

C.

2

D.

4

E.

-1

Full Access
Question # 29

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

A.

22333

B.

33222

C.

33322

D.

222333

Full Access
Question # 30

Which of these databases is NOT supported by a PDO driver?

A.

Microsoft SQL Server

B.

SQLite

C.

Microsoft Access

D.

Berkeley DB

Full Access
Question # 31

After performing the following operations:

$a = array('a', 'b', 'c');

$a = array_keys(array_flip($a));

What will be the value of $a?

A.

array('c', 'b', 'a')

B.

array(2, 1, 0)

C.

array('a', 'b', 'c')

D.

None of the above

Full Access
Question # 32

Which of the following code snippets DO NOT write the exact content of the file "source.txt" to "target.txt"? (Choose 2)

A.

file_put_contents("target.txt", fopen("source.txt", "r"));

B.

file_put_contents("target.txt", readfile("source.txt"));

C.

file_put_contents("target.txt", join(file("source.txt"), "\n"));

D.

file_put_contents("target.txt", file_get_contents("source.txt"));

E.

$handle = fopen("target.txt", "w+"); fwrite($handle, file_get_contents("source.txt")); fclose($handle);

Full Access
Go to page: