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

Which of the following functions are used to escape data within the context of HTML? (Choose 2)

A.

htmlentities()

B.

addslashes()

C.

stripslashes()

D.

strip_tags()

E.

htmlspecialchars()

Which of the following can NOT be used to send a cookie from within a PHP application?

A.

header()

B.

$_COOKIE

C.

setcookie()

D.

setrawcookie()

Which of the following is correct? (Choose 2)

A.

A class can extend more than one class.

B.

A class can implement more than one class.

C.

A class can extend more than one interface.

D.

A class can implement more than one interface.

E.

An interface can extend more than one interface.

F.

An interface can implement more than one interface.

What information can be used to reliably determine the type of an uploaded file?

A.

MIME type

B.

File name extension

C.

Contents of the file

Which of the following may be used in conjunction with CASE inside a SWITCH statement?

A.

A scalar

B.

An expression

C.

A boolean

D.

All of the above

What method can be used to find the tag via the DOM extension?

A.

getElementById()

B.

getElementsByTagName()

C.

getElementsByTagNameNS()

D.

getElementByName()

E.

findTag()

What is the output of the following code?

class Number {

private $v;

private static $sv = 10;

public function __construct($v) { $this->v = $v; }

public function mul() {

return static function ($x) {

return isset($this) ? $this->v*$x : self::$sv*$x;

};

}

}

$one = new Number(1);

$two = new Number(2);

$double = $two->mul();

$x = Closure::bind($double, null, 'Number');

echo $x(5);

A.

5

B.

10

C.

50

D.

Fatal error

Which class of HTTP status codes is used for server error conditions?

A.

2XX

B.

3XX

C.

4XX

D.

5XX

You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilites work? (Choose 2)

A.

echo $test(3);

B.

echo $test[2];

C.

echo $test(2);

D.

echo $test{2};

E.

echo $test{3};

When uploading a file to a PHP script using the HTTP PUT method, where would the file data be found?

A.

the $_FILES super-global

B.

the input stream php://input

C.

the $_POST super-global

D.

the global variable scope