Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Zend 100-500 - Zend Framework Certification

Page: 4 / 6
Total 202 questions

Which of the following methods in Zend_Controller_Action can be used for resetting the state when multiple controllers use the same helper in the chained actions?

A.

preDispatch()

B.

setActionController()

C.

postDispatch()

D.

init()

You have been given the following PHP script:

1.

2. $xmlstring = <<

3.

4.

5. jenny@PassGuide.com

6. john@PassGuide.com

7. Technical issue in Linux OS

8. There is a technical issue in my Linux system. Please Fix it.

9.

10. XML;

11. $xml = new SimpleXMLElement($xmlstring);

12. foreach($xml->children() as $child)

13. {

14.

15. }

16. ?>

Which of the following code snippets will you insert at line number 14 to get the following output?

A.

echo $child->getNamespaces() . ": " . $child . "
";

B.

echo $child->getDocNamespaces() . ": " . $child . "
";

C.

echo $child->getName() . ": " . $child . "
";

D.

echo $child->asXML() . ": " . $child . "
";

Which of the following steps will you use to create a multi-lingual Website?

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

A.

Creating the source file from the code

B.

Creating the View and integrate Zend_Translate into the code

C.

Translating the source file to the desired language

D.

Putting the Zend_Translate into session

E.

Deciding which adapter to use

Which of the following classes will you use to store objects and values in the application space?

A.

zend_Db

B.

Zend_Registry

C.

Zend_Config

D.

Zend_Acl

Which of the following methods can be used to verify the authentication and ACLs prior to an action?

A.

preDispatch()

B.

getHelper()

C.

aunthicate_ACL()

D.

authenticate()

Consider the following XML file:

PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

SimpleXML Example

Please go http://www.PassGuide.com ">http://www.PassGuide.com


Which of the following statements will display the HREF attribute on the anchor tag if the SimpleXML object is $sxml?

A.

$sxml->body->h1->a->href

B.

$sxml->body->h1->a

C.

$sxml->body->h1->a['href']

D.

$sxml->h1->a->href

Which of the following keywords is necessary for all the switch statements?

A.

Case

B.

Default

C.

Final

D.

View

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

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.

You have a table created as follows:

create table foo (c1 int, c2 char(30), c3 int, c4 char(10))

If column c1 is unique, which of the following indexes would optimize the statement given below?

Select distinct (c1), c3 from foo where c1=10

A.

create index foox on foo (c1)

B.

create unique index foox on foo (c1,c3)

C.

create unique index foox on foo (c1) include (c3)

D.

create index foox on foo (c1,c3)

Consider the following script:

</p><p>This is a test script.</p><p>

echo 'This is some sample text';

?>

Which of the following tags is used in the php script?

A.

ASP tag

B.

Short tag

C.

Script tag

D.

Standard tag