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

Which of the following encryption standards provides symmetric key encryption? (Choose 2)

A.

AES

B.

Blowfish

C.

DES

D.

RSA

You need to escape special characters to use user input inside a regular expression. Which functions would you use? (Choose 2)

A.

addslashes()

B.

htmlentities()

C.

preg_quote()

D.

regex_quote()

E.

quotemeta()

Consider the following XML code:

PHP 5 Power Programming

Learning PHP 5

Which of the following SimpleXML calls print the name of the second book?

(Let $xml=simplexml_load_file("books.xml");) (Choose 2)

A.

echo $xml->books->book[2];

B.

echo $xml->books->book[1];

C.

echo $xml->book[1];

D.

echo $xml->xpath("/books/book[@id=2]");

E.

$c = $xml->children(); echo $c[1];

What is the output of the following code: echo "1" + 2 * "0x02";

A.

1

B.

3

C.

5

D.

20

E.

7

What DOMElement method should be used to check for availability of a non-namespaced attribute?

A.

getAttributeNS()

B.

getAttribute()

C.

hasAttribute()

D.

hasAttributeNS()

Which of the following statements about Reflection are correct? (Choose 2)

A.

Since 5.1 reflection is an extension that can be disabled

B.

Reflection is present in any installation of PHP 5 or later

C.

Reflection only allows to reflect on built-in classes

D.

Built-in classes can be reflected on command line using php –rc

What is the output of the following code?

1

2 function append($str)

3 {

4 $str = $str.'append';

5 }

6

7 function prepend(&$str)

8 {

9 $str = 'prepend'.$str;

10 }

11

12 $string = 'zce';

13 append(prepend($string));

14 echo $string;

15 ?>

A.

zceappend

B.

prependzceappend

C.

prependzce

D.

zce

What XML component does the following XPath query try to match?

//foo[bar/@id=5]

A.

bar element with an id attribute whose value is equal to 5

B.

foo element containing a child node bar tag

C.

id attribute whose value is equal to 5

D.

foo element with a child note bar whose id attribute is equal to 5

E.

all of the foo elements that have a child node bar, whose id attribute is equal to 5

After running this sort, what will be the value of $b?

$a = array('_!', 'def', 0);

$b = sort($a);

A.

array(0, 'def', '_!')

B.

array('_!', 0, 'def')

C.

array('def', 0, '_!)

D.

None of the above

After executing a SELECT query on a database server,

A.

All data is immediately transmitted to PHP

B.

All data will be transmitted on-demand to PHP

C.

None of the above