New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Zend ZF-100-500 Practice Exam with Questions & Answers | Set: 2

Questions 11

Consider the following code segment:

1.

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?

Options:
A.

$mail = new Zend_Mail();

B.

$mail => initialize_Zend_Mail();

C.

$mail -> Zend_Mail();

D.

$mail => Zend_Mail();

Zend ZF-100-500 Premium Access
Questions 12

Which method is used to load a PHP file that may contain any PHP code?

Options:
A.

Zend_Loader::load()

B.

Zend_Loader::load()::includeFile()

C.

Zend_Loader::load()::includeOnce()

D.

Zend_Loader::loadFile()

Questions 13

Which of the following methods are used by Zend_Controller_Action_Helper_Abstract? Each correct answer represents a complete solution. Choose all that apply.

Options:
A.

init()

B.

preDispatch()

C.

setActionController()

D.

getResponseId()

Questions 14

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?

Options:
A.

$form->setAction('/uc/zend.php')

->setMethod('post');

B.

echo "<form action=\"/uc/zend.php \" method=POST>";

C.

$form->('/uc/zend.php')

->('post');

D.

$form->Zend::setAction('/uc/zend.php')

->Zend::setMethod('post');

Questions 15

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

Options:
A.

Zend_Log_Writer_Stream

B.

Zend_Log_Writer_Filestream

C.

Zend_Log_Writer_Abstract

D.

Zend_Log_Writer_Db

Questions 16

Fill in the blank with the appropriate term. _______________is used to process all requests that are received by the server and then dispatch them to the appropriate action controllers.

Options:
Questions 17

You want to get the information of total number of documents stored in the index. You also want to include the deleted documents. Which of the following methods will you use to accomplish the task?

Options:
A.

$search_index::count_document();

B.

$search_index::count();

C.

$search_index->count();

D.

$search_index->docCount();

Questions 18

Which of the following code snippets will create a memory manager object?

Options:
A.

$memoryManager = Zend_Memory:=>factory('None');

B.

$memoryManager = Zend_Memoryfactory::None;

C.

$memoryManager = Zend_Memory::factory.None;

D.

$memoryManager = Zend_Memory::factory('None');

Questions 19

Which of the following is an example of a database connection that needs to be created once at the beginning of a script and then used throughout its code?

Options:
A.

Model-view-controller

B.

Factory pattern

C.

ActiveRecord

D.

Singleton

Questions 20

Which of the following is used to provide a tree structure onto which multiple resources can be added?

Options:
A.

Zend_Acl_Assert_Interface

B.

Zend_Acl_Assert

C.

Zend_Acl_Role

D.

Zend_Acl

Exam Code: ZF-100-500
Certification Provider: Zend
Exam Name: Zend Framework CertificationVersion 4.0
Last Update: Mar 28, 2025
Questions: 128

Zend Related Exams

Zend Free Exams

Zend Free Exams
Enhance your Zend exam prep with free resources and practice tests from Examstrack. Achieve Zend certification success by exploring Examstrack.