Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Zend Framework CertificationVersion 4.1

Last Update 9 hours ago Total Questions : 128

The Zend Framework CertificationVersion 4.1 content is now fully updated, with all current exam questions added 9 hours ago. Deciding to include ZF-100-500 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our ZF-100-500 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these ZF-100-500 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Zend Framework CertificationVersion 4.1 practice test comfortably within the allotted time.

Question # 21

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?

A.

Model-view-controller

B.

Factory pattern

C.

ActiveRecord

D.

Singleton

Question # 22

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?

A.

< ?php

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

- > setMethod('post');

B.

< ?php

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

C.

< ?php

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

- > ('post');

D.

< ?php

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

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

Question # 23

Which of the following can be used as a countermeasure against the SQL injection attack?

Each correct answer represents a complete solution. Choose two.

A.

session_regenerate_id()

B.

Prepared statement

C.

mysql_escape_string()

D.

mysql_real_escape_string()

Question # 24

Which of the following methods of Zend_Auth returns TRUE if and only if the result represents a successful authentication attempt?

A.

getIdentity()

B.

getCode()

C.

isValid()

D.

getMessages()

Question # 25

Which of the following code snippets will you use to create a transport while considering the following PHP code segment?

< ?php

require_once 'Zend/Mail.php';

require_once 'Zend/Mail/Transport/Smtp.php';

??????????????????????????????????

for ($i = 0; $i > 5; $i++) {

$mail = new Zend_Mail();

$mail- > addTo('someone@example.com', 'Test');

$mail- > setFrom(' someone@example.com', 'Test');

$mail- > setSubject('Multiple Mails');

$mail- > setBodyText('Messages');

$mail- > send($transport);

}

A.

$transport = new transport();

B.

$transport = new Zend_Mail_Transport_Smtp('localho st');

C.

$transport = new Zend_Mail_Transport('localhost');

D.

$transport - > new Zend_Mail_Transport;

Question # 26

You run the following PHP script:

< ?php

$name = mysql_real_escape_string($_POST["name"]);

$password = mysql_real_escape_string($_POST["password"]);

? >

What is the use of the mysql_real_ escape_string() function in the above script. Each correct answer represents a complete solution. Choose all that apply.

A.

It can be used as a countermeasure against a SQL injection attack.

B.

It escapes all special characters from strings $_POST["name"] and $_POST["password"] except ' and ".

C.

It escapes all special characters from strings $_POST["name"] and $_POST["password"] .

D.

It can be used to mitigate a cross site scripting attack.

Question # 27

Which of the following inherits from Zend_Log_Writer_Abstract and is responsible for saving data to storage?

A.

Filter

B.

Writer

C.

Formatter

D.

Log

Question # 28

You are using a database named SalesDB to keep all sales records. The SalesDB database contains a table named Orders. You are required to create a new t able named OldOrders and transfer all the data from the Orders table to the new table. Which of the following statements will you use to accomplish the task?

A.

IMPORT INTO

B.

INSERT INTO

C.

ADD INTO

D.

SELECT INTO

Question # 29

Which of the following methods will you use to create movable objects?

A.

Zend_Memory_Manager::createLocked([$data])

B.

Zend_Memory_Manager::create([$data])

C.

getMemoryLimit()

D.

setMemoryLimit($newLimit)

Question # 30

Which of the following is used to persist the content between view scripts and view instances?

A.

Action View Helpers

B.

Placeholder Helper

C.

Initial Helpers

D.

Partial Helper

Go to page: