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

The purpose of the singleton pattern is to...

A.

...create applications that only a single user may use.

B.

...have just one single instance of an object in the entire application.

C.

...have only one instance of each object in a collection of objects.

Under which circumstances is the $_SESSION super-global available? (Choose 2)

A.

If session_start() was called.

B.

If session.auto_start INI setting is enabled.

C.

Always available in PHP 5.

D.

If a valid session id is passed via GET, POST or COOKIE.

E.

If register_globals are enabled.

Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?

A.

Class

B.

String

C.

Object

D.

Array

What super-global should be used to access information about uploaded files via a POST request?

A.

$_SERVER

B.

$_ENV

C.

$_POST

D.

$_FILES

E.

$_GET

You have a variable $test that contains sub-strings divided by a dash ("-"). How can you put every sub-string into an array element easily?

A.

extract($test, "-");

B.

explode("-", $test);

C.

to_array($test, "-");

D.

explode($test, "-");

Which of the following statements are NOT true?

A.

SimpleXML allows removal of attributes.

B.

SimpleXML allows addition of new attributes.

C.

SimpleXML allows removal of nodes.

D.

SimpleXML allows addition of new nodes.

E.

None of the above

What tags can always be used to begin a PHP script? (Choose 2)

A.

B.

C.

<%

D.

<%php

E.