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

Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions
Questions # 1:

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.


Questions # 2:

You have given the following XML data in the tasks.XML file:

Validate data

String Validation

Secure data

Encryption

Now, you run the following PHP script:

<?php

$objDOM = new DOMDocument();

$objDOM->load("tasks.xml");

$note = $objDOM->getElementsByTagName("note");

foreach( $note as $value )

{

$tasks = $value->getElementsByTagName("tasks");

$task = $tasks->item(0)->nodeValue;

$details = $value->getElementsByTagName("details");

$detail = $details->item(0)->nodeValue;

echo "$task :: $detail
";

}

?>

What should be displayed when this script is executed?

Options:

A.

The contents of the whole XML document


B.

The XML of every tasks and details nodes


C.

The contents of every tasks and details nodes


D.

The XML of whole XML document


Questions # 3:

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');


Questions # 4:

Which of the following code segments can be used to check the form validity?

Options:

A.

if (Zend_Form::isValid($_Post)) {

// success!

} else {

// failure!

}


B.

if (Zend_Form->isValid($form)) {

// success!

} else {

// failure!

}


C.

if ($form->isValid($_POST)) {

// success!

} else {

// failure!

}


D.

if (Zend_Form::isValid($form)) {

// success!

} else {

// failure!

}


Questions # 5:

Which of the following types of content is expected by Zend_Rest_Client when using a REST service?

Options:

A.

JSON


B.

HTML


C.

Simple text


D.

XML


Questions # 6:

Which of the following code snippets will you use to instantiate Zend_XmlRpc_Server?

Options:

A.

$server = Zend_Xml::Zend_XmlRpc_Server()


B.

$server = new Zend_Xml();


C.

$server = create_new_Zend_XmlRpc_Server()


D.

$server = new Zend_XmlRpc_Server();


Questions # 7:

Which of the following statements describes the use of a GROUP BY clause?

Options:

A.

A GROUP BY clause automatically sorts the grouped result in ascending order, if DESC keyword is not defined.


B.

A GROUP BY clause returns a single row of information for each group of rows, in addition to all the rows.


C.

A GROUP BY clause returns a single row of information for each group of rows.


D.

A GROUP BY clause automatically sorts the grouped result in descending order.


Questions # 8:

Which of the following methods is triggered when a dispatched action is done even if a preDispatch() plugin has skipped the action and is mainly useful for cleanup?

Options:

A.

getRequest()


B.

postDispatch()


C.

init()


D.

getResponse()


Questions # 9:

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?

Options:

A.

Registry


B.

ActiveRecord


C.

Model-view-controller


D.

Factory


Questions # 10:

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.

ActiveRecord


B.

Factory pattern


C.

Singleton


D.

Model-view-controller


Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions