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

Page 3 of 33

Which of the following methods will you use to retain the identity across requests according to the PHP session configuration?

  1. isValid()
  2. getIdentity()
  3. Zend_Auth::authenticate()
  4. getCode()

Answer(s): C



Which of the following code snippets will you use to create an index in Zend_Search_Lucene?
1. <?php
2. ?????????????
3. ?????????????
4. $Search_Doc ->addField(Zend_Search_Lucene_Field::Text('url', $docUrl));
5. $Search_Doc ->addField(
6. Zend_Search_Lucene_Field::UnStored(
7. 'contents',
8. $docContent
9. )
10. );
11. $index->addDocument($Search_Doc);

  1. $Search_Index = Zend_Search_Lucene::create_Index('/data/my -index'); $Search_Doc = new Zend_Search_Lucene_Document();
  2. $Search_Index = Zend_Search_Lucene::open_Index('/data/my -index'); $Search_Doc = new Zend_Search_Lucene_Document();
  3. $Search_Index = Zend_Search_Lucene::create('/data/my -index'); $Search_Doc = new Zend_Search_Lucene_Document();
  4. $Search_Index = Zend_Search_Lucene::open('/data/my -index'); $Search_Doc = new Zend_Sear ch_Lucene_Document();

Answer(s): C



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






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

ZF-100-500 Discussions & Posts