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

Viewing page 4 out of 6 pages
Viewing questions 31-40 out of questions
Questions # 31:

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

Options:

A.

When you want to set a user-defined function to handle errors.


B.

When you want to generate a user-level error/warning/notice message.


C.

When the try/catch block is unable to catch an exception.


D.

When you want to restore a previously defined exception handler function.


Expert Solution
Questions # 32:

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 # 33:

Fill in the blank with the appropriate class name.

The______ class is used to load files dynamically.

Options:

A.

Zend_Loader


Expert Solution
Questions # 34:

Which of the following retrieves the request URI, path, $_GET & $_POST parameters, etc. and tracks whether an action has been dispatched via Zend_Controller_Dispatcher?

Options:

A.

Zend_Controller_Get_Request


B.

Zend_Controller_Router


C.

Zend_Controller_Response_Abstract


D.

Zend_Controller_Request_Abstract


Expert Solution
Questions # 35:

Martin works as a Database Administrator for MTech Inc. He designs a database that has a table named Products. He wants to create a report listing different product categories. He does not want to display any duplicate row in the report. Which of the following SELECT statements will Martin use to create the report?

Options:

A.

SELECT DISTINCT Product_No, Prod_Category

FROM Products;


B.

SELECT Product_No, Prod_Category

FROM Products;


C.

SELECT Product_No, Prod_Category

FROM Products

GROUP BY Product_No ORDER BY Product_No;


D.

SELECT Product_No, Prod_Category

FROM Products

GROUP BY Product_No;


Expert Solution
Questions # 36:

Which of the following are the limitations for the cross site request forgery (CSRF) attack?

Each correct answer represents a complete solution. Choose all that apply.

Options:

A.

The target site should authenticate in GET and POST parameters, not only cookies.


B.

The attacker must determine the right values for all the form inputs.


C.

The attacker must target a site that doesn't check the referrer header.


D.

The target site should have limited lifetime authentication cookies.


Expert Solution
Questions # 37:

Consider the following code segment:

1. <?php

2. require_once 'Zend/Mail.php';

3. ?????????????????????????

4. $mail->setBodyText('This is the test email.');

5. $mail->setFrom('somebody@example.com', 'Sender');

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


B.

$mail => initialize_Zend_Mail();


C.

$mail = new Zend_Mail();


D.

$mail => Zend_Mail();


Expert Solution
Questions # 38:

Which of the following keywords will you use to set the default timezone?

Each correct answer represents a complete solution. Choose all that apply.

Options:

A.

date.timezone setting in php.ini


B.

set_default_timezone


C.

date_default_timezone_set()


D.

set_timezone


Expert Solution
Questions # 39:

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 # 40:

Which of the following clauses is used to specify a column or an array of columns by which to sort?

Options:

A.

WHERE


B.

FROM


C.

Order By


D.

LIMIT


Expert Solution
Viewing page 4 out of 6 pages
Viewing questions 31-40 out of questions