New Year Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

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

Demo: 19 questions
Total 130 questions

ZF-100-500 Questions and Answers

Question 1

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 2

Which of the following is the temp late layer, where all the HTML rendering takes place, and where everything to be displayed to a user is assembled?

Options:

A.

Controller

B.

Model

C.

Architecture

D.

View

Question 3

You have to select persons whose age is between twenty -five and forty from a database named HumanResource. Which of the following criteria will you use in the query to accomplish thetask?

Options:

A.

BETWEEN 25 AND 40

B.

BETWEEN 25 TO 40

C.

BETWEEN 25 - 40

D.

BETWEEN 25 & 40

Question 4

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.

Options:

Question 5

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.

Model-view-controller

B.

Factory pattern

C.

ActiveRecord

D.

Singleton

Question 6

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 7

Consider the PHP program (which includes a file specified by request):

$color = 'blue';

if (isset( $_GET['COLOR'] ) )

$color = $_GET['COLOR'];

require( $color . '.php' );

?>

A malicious user injects the following command:

/vulnerable.php?COLOR=C:\\notes.txt%00

Where vulnerable.php is a remotely hosted file containing an exploit. What does the malicious user want to do?

Options:

A.

Perform a cross-site scripting attack.

B.

Execute the malicious code that exists in the file vulnerable.php.

C.

Remove the .php suffix, allowing access to files other than .php.

D.

Inject a remotely hosted file containing an exploit.

Question 8

Which of the following is known as Request Object?

Options:

A.

Zend_Controller_Response_Abstract

B.

Zend_Controller_Request_Abstract

C.

Zend_Controller_Request_Http

D.

Zend_Controller_Router

Question 9

Which of the following are the configuration files that are used in Zend_Config?

Options:

A.

Zend_Config_Server

B.

Zend_Config_Xml

C.

Zend_Config_Db

D.

Zend_Config_Ini

Question 10

Which of the following is an abstract class that is used to provide the basic interface and functionality required by the helper broker?

Options:

A.

Zend_Db

B.

Zend_Auth

C.

Zend_Acl

D.

Zend_Controller_Action_Helper_Abstract

Question 11

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

Question 12

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.

$form->setAction('/uc/zend.php')

->setMethod('post');

B.

echo "

";

C.

$form->('/uc/zend.php')

->('post');

D.

$form->Zend::setAction('/uc/zend.php')

->Zend::setMethod('post');

Question 13

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

Question 14

Fill in the blank with the appropriate PHP function. The_________ function is used to return the sum of the values of every entry within an array.

Options:

Question 15

You are using a database named SalesDB to keep all sales records. The SalesDB database contains a table named Orders. You are required to create a new t able named OldOrders and transfer all the data from the Orders table to the new table. Which of the following statements will you use to accomplish the task?

Options:

A.

IMPORT INTO

B.

INSERT INTO

C.

ADD INTO

D.

SELECT INTO

Question 16

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

Options:

A.

JSON

B.

HTML

C.

Simple text

D.

XML

Question 17

Which of the following is used to provide a tree structure onto which multiple resources can be added?

Options:

A.

Zend_Acl_Assert_Interface

B.

Zend_Acl_Assert

C.

Zend_Acl_Role

D.

Zend_Acl

Question 18

Which of the following joins retrieves all rows from one table and only the matching rows from the joined table?

Options:

A.

Self join

B.

Outer join

C.

Equijoin

D.

Non-equijoin

Question 19

Fill in the blank with the appropriate PHP function. The___________ function is used to return the sum of the values of every entry within an array.

Options:

Demo: 19 questions
Total 130 questions