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

Updated On: 1-Feb-2026

Which of the following methods in Zend_Controller_Action can be used for resetting the state when multiple controllers use the same helper in the chained actions?

  1. preDispatch()
  2. setActionController()
  3. postDispatch()
  4. init()

Answer(s): D



You want to retrieve all the data from any given table. You also want to ensure that no duplicate values are displayed. Which of the following SQL statements will you use to accomplish the task?

  1. SELECT...TOP
  2. SELECT...WHERE
  3. SELECT...DISTINCT
  4. SELECT...ALL

Answer(s): C



Consider the following code segment:
1. <?php
2. require_once 'Zend/Mail.php';
3. ?????????????????????????
4. $mail->setBodyText('This is the test email.');
5. $mail->setFrom('somebody@example.com', 'Send er');
6. $mail->addTo('somebody_else@example.com', 'Recipient');
7. $mail->setSubject('TestSubject');
8. $mail->send();
9. ?>
Which of the following code snippets will you use at line number 3 to initiate Zend_Mail?

  1. $mail = new Zend_Mail();
  2. $mail => initialize_Zend_Mail();
  3. $mail -> Zend_Mail();
  4. $mail => Zend_Mail();

Answer(s): A



Which of the following functions sets up start and end element handlers?

  1. xml_parse_into_struct()
  2. xml_parser_create_ns()
  3. xml_set_object()
  4. xml_set_element_handler()

Answer(s): D



Which of the following functions can be used as a countermeasure to a Shell Injection attack? Each correct answer represents a complete solution. Choose all that apply.

  1. mysql_real_escape_string()
  2. escapeshellcmd()
  3. regenerateid()
  4. escapeshellarg()

Answer(s): B,D



Viewing page 4 of 27
Viewing questions 16 - 20 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