Zend ZF-100-500 Exam
Zend Framework Certification (Page 5 )

Updated On: 12-Jan-2026

Which of the following methods sends log data to a PHP stream?

  1. Zend_Log_Writer_Stream
  2. Zend_Log_Writer_Filestream
  3. Zend_Log_Writer_Abstract
  4. Zend_Log_Writer_Db

Answer(s): A



Which of the following methods are run by the Zend_Controller_Front::run($path) method at a time? Each correct answer represents a complete solution. Choose all that apply.

  1. setControllerDirectory()
  2. getInstance()
  3. dispatch()
  4. setInstance()

Answer(s): A,B,C



What will be the output of the following PHP script?
<?php include("xml.inc");
if (!$dom = domxml_open_mem($xmlstr)) {
echo "Error while parsing the XML document \n";
exit;
}
$a = $dom->document_element();
print_r($a);
?>

  1. It will display the root element of the XML file.
  2. It will display the XML code of the XML file.
  3. It will throw an error.
  4. It will display the contents of the XML file.

Answer(s): A



Consider the PHP program (which includes a file specified by request):
<?php
$color = 'blue';
if (isset( $_GET['COLOR'] ) )
$color = $_GET['COLOR'];
require( $color . '.php' );
?>
<form method="get">
<select name="COLOR">
<option value="red">red</option>
<option value="blue">blue</option>
</select>
<input type="submit">
</form>
A malicious user injects the following command:
/vulnerable.php?COLOR=C:\\notes.txt%00
Where vulnerable.php is a remotely hosted file containing an exploit. What does the malicious user want to do?

  1. Perform a cross-site scripting attack.
  2. Execute the malicious code that exists in the file vulnerable.php.
  3. Remove the .php suffix, allowing access to files other than .php.
  4. Inject a remotely hosted file containing an exploit.

Answer(s): C



Which of the following methods is triggered when a dispatched action is done even if apreDispatch() plugin has skipped the action and is mainly useful for cleanup?

  1. getRequest()
  2. postDispatch()
  3. init()
  4. getResponse()

Answer(s): B



Viewing page 5 of 27
Viewing questions 21 - 25 out of 200 questions



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

Join the ZF-100-500 Discussion