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

Zend 200-500 - Zend PHP 5 Certification

Page: 3 / 7
Total 219 questions

An unbuffered query will: (Choose 2)

A.

Return the first data faster

B.

Return all data faster

C.

Free connection faster for others scripts to use

D.

Use less memory

What will be the result of the following operation?

array_combine(array("A","B","C"), array(1,2,3));

A.

array("A","B",C",1,2,3)

B.

array(1,2,3,"A","B",C")

C.

array("A"=>1,"B"=>2,"C"=>3)

D.

array(1=>"A",2=>"B",3=>"C")

E.

array(1,2,3)

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

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

A.

0

B.

3

C.

4

D.

5

After executing a query on a database server, PHP offers several functions to read the resulting lines, such as mysqli_fetch_assoc, pg_fetch_row, oci_fetch,etc.). If such functions do not return any rows, it means: (Choose 2)

A.

a SELECT statement returned no rows

B.

the transaction has been rolled back

C.

the connection to the database server was disconnected during query execution

D.

the query was too slow to execute

How can you determine if magic_quotes_gpc is enabled? (Choose 2)

A.

Use the get_magic_quotes() function.

B.

Using the get_magic_quotes_runtime() function.

C.

Use the get_magic_quotes_gpc() function.

D.

Using ini_get('magic_quotes_gpc').

E.

Using ini_get('magic_quotes').

When PHP is running on a command line, what super-global will contain the command line arguments specified?

A.

$_SERVER

B.

$_ENV

C.

$GLOBALS

D.

$_POST

E.

$_ARGV

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

1

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 ?>

A.

2

B.

3

C.

4

D.

7

E.

9

What parsing methodology is utilized by the SimpleXML extension?

A.

SAX

B.

DOM

C.

XPath

D.

Push/Pull Approach

E.

Expat

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();

}

A.

Both functions do the same

B.

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

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