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

Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions
Questions # 51:

Some databases support the LIMIT clause. ft is a method to ensure that

Options:

A.

only certain rows are deleted in DELETE queries.


B.

only a defined subset of rows are read in SELECT queries.


C.

only certain users can access the database.


Expert Solution
Questions # 52:

Which of the following is used to find all PHP files under a certain directory?

Options:

A.

PHPIterator


B.

RecursiveTreelterator


C.

RecursiveDirectorylterator


D.

SplTempFileObject


Expert Solution
Questions # 53:

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)

Options:

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];


Expert Solution
Questions # 54:

Which of the following parts must a XML document have in order to be well-formed?

Options:

A.

An XML declaration


B.

A root element


C.

A specified encoding


D.

A reference to either a DTD or an XML schema definition


Expert Solution
Questions # 55:

What is the ideal method of copying data between two opened files?

Options:

A.

copy($source_file, $destination_file);


B.

copy(destination_file, $source_file);


C.

stream_copy_to_stream($source_file, $destination_file);


D.

stream_copy_to_stream($destination_file, $source_file);


E.

stream_bucket_prepend($source_file, $destination_file);


Expert Solution
Questions # 56:

What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?

Options:

A.

get_headers($url);


B.

get_header($url);


C.

stream_context_get_headers($url);


D.

get_headers($url, 1);


E.

get_headers($url, ASSOC_HEADERS);


Expert Solution
Questions # 57:

Which of the following is correct? (Choose 2)

1) A class can extend more than one class.

2) A class can implement more than one class.

3) A class can extend more than one interface.

4) A class can implement more than one interface.

5) An interface can extend more than one interface.

6) An interface can implement more than one interface.

Options:

A.

1)


B.

2)


C.

3)


D.

4)


E.

5)


F.

6)


Expert Solution
Questions # 58:

When checking whether two English words are pronounced alike, which function should be used for the best possible result?

Options:

A.

levenshtein()


B.

metaphone()


C.

similar_text()


D.

soundex()


Expert Solution
Questions # 59:

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 # 60:

Given the following array:

$a = array(28, 15, 77, 43);

Which function will remove the value 28 from $a?

Options:

A.

array_shift()


B.

array_pop()


C.

array_pull()


D.

array_unshift()


Expert Solution
Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions