Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Zend ZF-100-500 - Zend Framework CertificationVersion 4.0

Page: 2 / 4
Total 130 questions

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()

Fill in the blank with the appropriate method name. The__________ method is used to retrieve headers when the storage has been opened.

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

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;

Fill in the blank with the appropriate PHP function. The_____________ function is used to replace the current session id with the new session id, and to keep information of the current session.

Which of the following are the valid methods of the Zend_Date class? Each correct answer represents a complete solution. Choose all that apply.

A.

set()

B.

add()

C.

check()

D.

get()

E.

sub()

Which of the following OOPS design patterns is used to encapsulate a data source so that accessing the data source components becomes hidden within the class that implements the pattern?

A.

Registry

B.

ActiveRecord

C.

Model-view-controller

D.

Factory

Fill in the blank with the appropriate method name. The__________ method is used to convert an existing money value to a localized currency formatted output.

Which of the following steps will you take to apply Zend_View? Each correct answer represents a part of the solution. Choose all that apply.

A.

Transfer control of the display to the View Script.

B.

Render the View.

C.

Assign the variables to the View via a Controller Script.

D.

Create an instance of the View.

Which of the following are the features of Zend_Layout? Each correct answer represents a complete solution. Choose all that apply.

A.

It is the configuration of layout name, inflection, and path.

B.

It can be used with ZF MVC components.

C.

It is used to disable layouts and change scripts.

D.

It has a separate scope for layout-related variables and content.

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