Zend ZF-100-500 - Zend Framework Certification Version 4.0 Exam

Question #11 (Topic: )
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?
A. preDispatch() B. setActionController() C. postDispatch() D. init()
Answer: D
Question #12 (Topic: )
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?
A. SELECT...TOP B. SELECT...WHERE C. SELECT...DISTINCT D. SELECT...ALL
Answer: C
Question #13 (Topic: )
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('[email protected]', 'Send er');
6. $mail->addTo('[email protected]', '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?
A. $mail = new Zend_Mail(); B. $mail => initialize_Zend_Mail(); C. $mail -> Zend_Mail(); D. $mail => Zend_Mail();
Answer: A
Question #14 (Topic: )
Which of the following functions sets up start and end element handlers?
A. xml_parse_into_struct() B. xml_parser_create_ns() C. xml_set_object() D. xml_set_element_handler()
Answer: D
Question #15 (Topic: )
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.
A. mysql_real_escape_string() B. escapeshellcmd() C. regenerateid() D. escapeshellarg()
Answer: B,D
Download Exam
Page: 3 / 26
Total 130 questions