Free ZF-100-500 Exam Braindumps (page: 17)

Page 16 of 33

Which of the following OOPS design patterns is used to encapsulate a data source so that accessing the data source components becomes hidden within the class that implements the pattern?

  1. Registry
  2. ActiveRecord
  3. Model-view-controller
  4. Factory

Answer(s): B



You want to get the information of total number of documents stored in the index. You also want to include the deleted documents. Which of the following methods will you use to accomplish the task?

  1. $search_index::count_document();
  2. $search_index::count();
  3. $search_index->count();
  4. $search_index->docCount();

Answer(s): C



Which of the following SPL Interfaces/classes extends the standard Iterator interface and enables the ability to retrieve a specific item from internal data store?

  1. ArrayAccess
  2. Recursive Iterator
  3. FilterIterator
  4. SeekableIterator

Answer(s): D



You run the following PHP script:
<?php include("xml.inc");
if (!$dom = domxml_open_mem($xmlstr)) {
echo "Error while parsing the XML document \n";
exit;
}
$a = **********
print_r($a);
?>
Which of the following functions will you use instead of * if you want to print the root element of the XML file?

  1. $node->parent_node();
  2. $dom->document_element();
  3. $dom->root_node();
  4. $dom->root_element();

Answer(s): B






Post your Comments and Discuss Zend ZF-100-500 exam with other Community members:

ZF-100-500 Discussions & Posts