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

What is the length of a string returned by: md5(rand(). TRUE);

A.

Depends on the value returned by rand() function

B.

32

C.

24

D.

16

E.

64

What function can reverse the order of values in an array so that keys are preserved?

A.

array_flip()

B.

array_reverse()

C.

rsort()

D.

krsort()

E.

array_multisort()

You work for a shared hosting provider, and your supervisor asks you do disable user scripts to dynamically load PHP extensions using the d1() function. How can you do this? (Choose two.)

A.

Set enable_d1 to off in the server’s php.ini configuration file

B.

Add d1 to the current value of disable_functions in the server’s php.ini configuration file.

C.

Add d1 to the current value of disable_classes in the server’s php.ini configuration file.

D.

Write a custom function called d1(), save it under the name prepend.inc and then set the auto_prepend_file directive to prepend.inc in php.ini.

What is the benefit of using persistent database connections in PHP? (Choose two.)

A.

Reduces the connection & authentication overhead of connecting to the database

B.

Ensures that only a single connection is open to the database from PHP

C.

Allows connection settings such as character set encoding to persist

D.

Allows for resumption of transactions across multiple requests.

Which value will be assigned to the key 0 in the following code?

What is the output of this code?

A.

hello world

B.

hello $world

C.

PHP Parser error

Which of the following is NOT possible using reflection?

A.

Analysing of nearly any aspect of classes and interfaces

B.

Analysing of nearly any aspect of functions

C.

Adding class methods

D.

Implement dynamic construction (new width variable class name)

Which options do you have in PHP to set the expiry date of a session?

A.

Set the session.duration directive in php.ini

B.

Set session cookie expiry date locally via session_set_cookie_params()

C.

Set session expiry date locally via session_cache_expire()

D.

None of the above

What is the difference between the spaceship operator (<=>) and the strcmp() function?

A.

There is no difference in functionality

B.

strcmp() returns a Boolean value, the spaceship operator a number

C.

strcmp() does a case-intensive comparison, the spaceship operator does not

D.

The spaceship operator returns -1, 0 or 1; strcmp() may return any integer

What is the output of the following code?

A.

1

B.

2

C.

6

D.

7