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

Page 5 of 33

You want to set the form method in post and action to / uc/zend.php when you are using the Zend_Form class. Which of the following code snippets will you use to accomplish the task?

  1. <?php
    $form->setAction('/uc/zend.php')
    ->setMethod('post');
  2. <?php
    echo "<form action=\"/uc/zend.php \" method=POST>";
  3. <?php
    $form->('/uc/zend.php')
    ->('post');
  4. <?php
    $form->Zend::setAction('/uc/zend.php')
    ->Zend::setMethod('post');

Answer(s): A



In which of the following situations will you use the set_exception_handler() function?

  1. When you want to restore a previously defined exception handler function.
  2. When the try/catch block is unable to catch an exception.
  3. When you want to set a user -defined function to handle errors.
  4. When you want to generate a user -level error/warning/notice message.

Answer(s): B



Which of the following code snippets will you use if you want to connect to a Pop3 server using TLS?

  1. <?php
    $mail = new Zend_Mail_Storage_Pop3(array('host'
    ='example.com', 'user' ='user_name',
    'protocol_used' = 'tls')); ?>
  2. <?php
    $mail = new Zend_Mail_Storag e_Pop3(array('host'
    ='example.com', 'user' ='user_name',
    'connectTo' = 'tls')); ?>
  3. <?php
    $mail = new Zend_Mail_Storage_Pop3(array('host'
    ='example.com', 'user' ='user_name',
    'ssl' = 'tls')); ?>
  4. <?php
    $mail = new Zend_Mail_Storage_Pop3(array('host'
    ='example.com', 'user' ='user_name',
    'protocol_used' = 'ssl/tls')); ?>

Answer(s): C



Which of the following are the configuration files that are used in Zend_Config?

  1. Zend_Config_Server
  2. Zend_Config_Xml
  3. Zend_Config_Db
  4. Zend_Config_Ini

Answer(s): B,D






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

ZF-100-500 Discussions & Posts