Black Friday Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

What function can reverse the order of values in an array without the loss of key information?

A.

array_flip()

B.

array_reverse()

C.

rsort()

D.

krsort()

E.

array_multisort()

Full Access
Question # 5

The XML document below has been parsed into $xml via SimpleXML. How can the value of tag

accessed?

Value

A.

$xml->bar['foo']

B.

$xml->bar->foo

C.

$xml['document']['bar']['foo']

D.

$xml->document->bar->foo

E.

$xml->getElementByName('foo');

Full Access
Question # 6

What SimpleXML function is used to parse a file?

A.

simplexml_load_file()

B.

simplexml_load_string()

C.

load()

D.

loadFile()

E.

loadXML()

F.

None of the above.

Full Access
Question # 7

Consider the following code:

strspn($test, 'aeiou', 1);

The variable $test contains the string "You get certified".

What will the function call return?

A.

true

B.

false

C.

0

D.

1

E.

2

F.

3

Full Access
Question # 8

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.

Full Access
Question # 9

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

A.

B.

C.

<%

D.

<%php

E.