Independence Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

Zend ZF-100-500 ZF-100-500 Exam Practice Test

Demo: 19 questions
Total 130 questions

ZF-100-500 Questions and Answers

Question 1

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 = new Zend_XmlRpc_Server();

D.

$server = create_new_Zend_XmlRpc_Server()

Question 2

Which of the following methods will you use to retain the identity across requests according to the PHP session configuration?

Options:

A.

isValid()

B.

getIdentity()

C.

Zend_Auth::authenticate()

D.

getCode()

Question 3

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

Options:

A.

Order By

B.

WHERE

C.

FROM

D.

LIMIT

Question 4

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

Options:

A.

dispatch()

B.

objectsetControllerDirectory()

C.

getInstance()

D.

controller()

Question 5

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

Options:

A.

Case

B.

Default

C.

Final

D.

View

Question 6

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 href="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?

Options:

A.

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

B.

$sxml->body->h1->a

C.

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

D.

$sxml->h1->a->href

Question 7

Which of the following is allowed in the function declaration only?

Options:

A.

Pass-by-reference

B.

Function calling

C.

Function declaration

D.

Call-by-reference

Question 8

Write the appropriate word to complete the sentence below. ___________is used for logging of multiple backends, formatting messages which are sent to the log, and filtering those messages, which should not be logged.

Options:

Question 9

Fill in the blank with the appropriate method name. The__________ method is used to send an email in the HTML format.

Options:

A.

setBodyHTML()

Question 10

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 11

You run the following PHP script:

if (!$dom = domxml_open_mem($xmlstr)) {

echo "Error while parsing the XML document \n";

exit;

}

$a = **********

print_r($a);

?>

Which of the following functions will you use instead of * if you want to print the root element of the XML file?

Options:

A.

$node->parent_node();

B.

$dom->document_element();

C.

$dom->root_node();

D.

$dom->root_element();

Question 12

Which component is used to offer an API to manipulate dates and times?

Options:

A.

Zend_Date

B.

Zend_Time

C.

Zend_Timezone

D.

Zend_Timestamp

Question 13

Which of the following methods are run by the Zend_Controller_Front::run($path) method at a time? Each correct answer represents a complete solution. Choose all that apply.

Options:

A.

setControllerDirectory()

B.

getInstance()

C.

dispatch()

D.

setInstance()

Question 14

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 o f the following SELECT statements will Martin use to create the report?

Options:

A.

SELECT Product_No, Prod_Category

FROM Products;

B.

SELECT DISTINCT Product_No, Prod_Category

FROM Products;

C.

SELECT Product_No, Prod_Category

FROM Products

GROUP BY Product_No;

D.

SELECT Product_No, Prod_Category

FROM Products

GROUP BY Product_No ORDER BY Product_No;

Question 15

Which of the following methods is used to attach files to an e-mail and returns a Zend_Mime_Part object?

Options:

A.

setBodyHTML()

B.

Zend_Mime_attach()

C.

createAttachment()

D.

Zend_Mail_Storage_Mbox()

Question 16

Which of the following statements correctly explains the behavior of Zend_Controller_Front?

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

Options:

A.

It registers a plug-in broker with itself.

B.

It uses the Singleton pattern.

C.

It processes all requests received by the server.

D.

The Zend_Controller_Front never loads any plugin by default.

Question 17

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?

Options:

A.

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

B.

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

C.

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

D.

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

Question 18

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

Options:

A.

preDispatch()

B.

getHelper()

C.

aunthicate_ACL()

D.

authenticate()

Question 19

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 inZend_Controller_Front.

B.

It is used to register a plugin broker, which allows calling a user code when certainevents occurin controller process.

C.

It is used to implement the Singleton pattern.

D.

It is used to handle the request and output.

Demo: 19 questions
Total 130 questions