Zend Framework Certification Version 4.0 v3.0 (ZF-100-500)

Page:    1 / 9   
Total 130 questions

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?

  • A. Registry
  • B. ActiveRecord
  • C. Model-view-controller
  • D. Factory


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

  • A. $search_index::count_document();
  • B. $search_index::count();
  • C. $search_index->count();
  • D. $search_index->docCount();


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

  • A. ArrayAccess
  • B. Recursive Iterator
  • C. FilterIterator
  • D. SeekableIterator


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

  • A. $node->parent_node();
  • B. $dom->document_element();
  • C. $dom->root_node();
  • D. $dom->root_element();


Answer : B

You have been given the following PHP script:
1. <?php
2. $xmlstring = <<<XML
3. <?xml version="1.0" encoding="ISO -8859-1"?>
4. <email>
5. <to>[email protected]</to>
6. <from>[email protected]</from>
7. <heading>Technical issue in Linux OS</heading>
8. <body>There is a technical issue in my Linux system. Please Fix it. </body>
9. </email>
10. XML;
11. $xml = new SimpleXMLElement($xmlstring);
12. foreach($xml->children() as $child)
13. {
14. <Insert code here.>
15. }
16. ?>
Which of the following code snippets will you insert at line number 14 to get the following output?

  • A. echo $child->getNamespaces() . ": " . $child . "<br />";
  • B. echo $child->getDocNamespaces() . ": " . $child . "<br />";
  • C. echo $child->getName() . ": " . $child . "<br />";
  • D. echo $child->asXML() . ": " . $child . "<br />";


Answer : C

Maria writes a query that uses outer join between two tables. Which of the following operators are not allowed in the query? Each correct answer represents a complete solution. Choose two.

  • A. OR
  • B. IN
  • C. =
  • D. AND


Answer : A,B

Which of the following provides the quota limit in Zend_Mail?

  • A. Maildir
  • B. IMAP
  • C. Mbox
  • D. POP3


Answer : A

You have to select persons whose age is between twenty -five and forty from a database named HumanResource. Which of the following criteria will you use in the query to accomplish thetask?

  • A. BETWEEN 25 AND 40
  • B. BETWEEN 25 TO 40
  • C. BETWEEN 25 - 40
  • D. BETWEEN 25 & 40


Answer : A

Which of the following code segments can be used to check the form validity?

  • A. if (Zend_Form::isValid($_Post)) { // success! } else { // failure! }
  • B. if (Zend_Form->isValid($form)) { // success! } else { // failure! }
  • C. if ($form->isValid($_POST)) { // success! } else { // failure! }
  • D. if (Zend_Form::isValid($form)) { // success! } else { // failure! }


Answer : C

Which of the following code snippets will you use to create a transport while considering the following PHP code segment?
<?php
require_once 'Zend/Mail.php';
require_once 'Zend/Mail/Transport/Smtp.php';
??????????????????????????????????
for ($i = 0; $i > 5; $i++) {
$mail = new Zend_Mail();
$mail->addTo('[email protected]', 'Test');
$mail->setFrom(' [email protected]', 'Test');
$mail->setSubject('Multiple Mails');
$mail->setBodyText('Messages');
$mail->send($transport);

  • A. $transport = new transport();
  • B. $transport = new Zend_Mail_Transport_Smtp('localho st');
  • C. $transport = new Zend_Mail_Transport('localhost');
  • D. $transport -> new Zend_Mail_Transport;


Answer : B

Which of the following is used for separation of hierarchies in Zend_config_Ini file?

  • A. .
  • B. >
  • C. ,
  • D. ->


Answer : A

Which of the following methods dynamically loads the Adapter class file on demand using
Zend_Loader::loadClass()?

  • A. Zend_Db_Adapter_Pdo_Mysql()
  • B. Zend_load_Adaptor()
  • C. fetchAll()
  • D. Zend_Db::factory()


Answer : D

Which of the following keywords will you use to set the default timezone? Each correct answer represents a complete solution. Choose all that apply.

  • A. date.timezone setting in php.ini
  • B. set_default_timezone
  • C. set_timezone
  • D. date_default_timezone_set()


Answer : A,D

Which of the following methods is used to attach files to an e-mail and returns a
Zend_Mime_Part object?

  • A. setBodyHTML()
  • B. Zend_Mime_attach()
  • C. createAttachment()
  • D. Zend_Mail_Storage_Mbox()


Answer : C

Which of the following error constants gives all errors and warnings, except the
E_STRICTerror level?

  • A. E_RECOVERABLE_ERROR
  • B. E_ALL
  • C. E_ERROR
  • D. E_WARNING


Answer : B

Page:    1 / 9   
Total 130 questions