Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

What will an opcode cache ALWAYS automatically improve?

A.

Running time of a loop in a PHP script

B.

Efficiency of HTML markup generated by a PHP script

C.

Execution speed of a PHP script

D.

Memory footprint of a PHP script

E.

None of the above

How do you allow the caller to submit a variable number of arguments to a function?

A.

Using a prototype like function test(... $parameters).

B.

Using a prototype like function test() and the function func_get_args() inside the function body.

C.

Using a prototype like function test($parameters[]).

D.

Using a prototype like function test() and the function get_variable_args() inside the function body.

E.

This is not possible in PHP.

Which DOMElement property provides a reference to the list of the element's children?

When a browser requests an image identified by an img tag, it never sends a Cookie header.

A.

TRUE

B.

FALSE

Given a DateTime object that is set to the first second of the year 2014, which of the following samples will correctly return a date in the format '2014-01-01 00:00:01'?

A.

$datetime->format('%Y-%m-%d %h:%i:%s')

B.

$datetime->format('%Y-%m-%d %h:%i:%s', array('year', 'month', 'day', 'hour', 'minute', 'second'))

C.

$datetime->format('Y-m-d H:i:s')

D.

$date = date('Y-m-d H:i:s', $datetime);

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.

Which of the following code snippets is correct? (Choose 2)

A.

interface Drawable {

abstract function draw();

}

B.

interface Point {

function getX();

function getY();

}

C.

interface Line extends Point {

function getX2();

function getY2();

}

D.

interface Circle implements Point {

function getRadius();

}

Which of the following rules must every correct XML document adhere to? (Choose 2)

A.

It has to be well-formed.

B.

It has to be valid.

C.

It has to be associated to a DTD.

D.

It may only contain UTF-8 encoded characters.

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

Which one of the following XML declarations is NOT valid?

A.

B.

C.

D.