Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the Zend Zend Certification 200-500 Questions and answers with CertsForce

Viewing page 5 out of 7 pages
Viewing questions 41-50 out of questions
Questions # 41:

Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?

Options:

A.

$_GET['ALL']


B.

$_SERVER['QUERY']


C.

$_SERVER['QUERY_STRING']


D.

$_ENV['QUERY']


E.

$QUERY_STRING


Expert Solution
Questions # 42:

Which of the following is an invalid DOM save method?

Options:

A.

save()


B.

saveFile()


C.

saveXML()


D.

saveHTML()


E.

saveHTMLFile()


Expert Solution
Questions # 43:

What DOM method is used to load HTML files?

Options:

A.

load()


B.

loadXML()


C.

loadHTML()


D.

loadHTMLFile()


Expert Solution
Questions # 44:

Which is the most secure approach for handling dynamic data in SQL queries?

Options:

A.

Use addslashes().


B.

Enable magic_quotes_gpc.


C.

Use prepared statements if supported by the database library, data-specific escaping functions otherwise.


D.

Use stored procedures.


Expert Solution
Questions # 45:

How many elements does the array $pieces contain after the following piece of code has been executed?

$pieces = explode("/", "///");

Options:

A.

0


B.

3


C.

4


D.

5


Expert Solution
Questions # 46:

Which string will be returned by the following function call?

$test = '/etc/conf.d/wireless';

substr($test, strrpos($test, '/'));

Options:

A.

""


B.

"/wireless"


C.

"wireless"


D.

"/conf.d/wireless"


E.

"/etc"


Expert Solution
Questions # 47:

Which of the following is NOT possible using reflection?

Options:

A.

Analysing of nearly any aspect of classes and interfaces


B.

Analysing of nearly any aspect of functions


C.

Adding class methods


D.

Implement dynamic construction (new with variable class name)


Expert Solution
Questions # 48:

Given the following two functions, what statement is correct?

function dynamicNew($name) {

return new $name;

}

function reflectionNew($name) {

$r = new ReflectionClass($name);

return $r->newInstanceArgs();

}

Options:

A.

Both functions do the same


B.

dynamicNew() results in a parse error, reflectionNew() works


Expert Solution
Questions # 49:

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

Options:

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


Expert Solution
Questions # 50:

How many elements does the array $matches from the following code contain?

1 <?php

2 $str = "The cat sat on the roof of their house.";

3

4 $matches = preg_split("/(the)/i", $str, -1,

PREG_SPLIT_DELIM_CAPTURE);

5 ?>

Options:

A.

2


B.

3


C.

4


D.

7


E.

9


Expert Solution
Viewing page 5 out of 7 pages
Viewing questions 41-50 out of questions