Pass the Zend Zend Certification ZF-100-500 Questions and answers with CertsForce

Viewing page 2 out of 4 pages
Viewing questions 11-20 out of questions
Questions # 11:

Which function is used to take a locale string as a parameter and set a new locale?

Options:

A.

setNewLocale()


B.

setLocale()


C.

locale_Set()


D.

newLocale()


Expert Solution
Questions # 12:

All of the following are the basic steps in setting up a multi -lingual site, except for which one?

Options:

A.

Create the source file from the code


B.

Manipulate different adapters for translation


C.

Create the View and integrate Zend_Translate into the code


D.

Translate the source file to the desired language


Expert Solution
Questions # 13:

Fill in the blank with the appropriate term. ________is used to implement a classic Two -StepView pattern that allows a user to wrap the application content within another view.


Expert Solution
Questions # 14:

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

Options:

A.

By default, the ErrorHandler plugin and ViewRenderer action helper plugin are loaded in Zend_Controller_Front.


B.

It is used to register a plugin broker, which allows calling a user code when certain events occur in controller process.


C.

It is used to implement the Singleton pattern.


D.

It is used to handle the request and output.


Expert Solution
Questions # 15:

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.


Expert Solution
Questions # 16:

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.

<?php $form->Zend::setAction('/uc/zend.php') ->Zend::setMethod('post');


B.

<?php $form->('/uc/zend.php') ->('post');


C.

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


D.

<?php $form->setAction('/uc/zend.php') ->setMethod('post');


Expert Solution
Questions # 17:

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.

Options:

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.


Expert Solution
Questions # 18:

Which of the following error constants gives all errors and warnings, except the E_STRICTerror level?

Options:

A.

E_RECOVERABLE_ERROR


B.

E_ALL


C.

E_ERROR


D.

E_WARNING


Expert Solution
Questions # 19:

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

Options:

A.

getIdentity()


B.

getCode()


C.

isValid()


D.

getMessages()


Expert Solution
Questions # 20:

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

Each correct answer represents a complete solution. Choose two.

Options:

A.

session_regenerate_id()


B.

Prepared statement


C.

mysql_escape_string()


D.

mysql_real_escape_string()


Expert Solution
Viewing page 2 out of 4 pages
Viewing questions 11-20 out of questions