Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Zend ZF-100-500 Dumps Questions Answers

Page: 1 / 5
Total 130 questions

ZF-100-500 Questions and Answers

Question 1

Which of the following is used to render a specific template within its own variable scope?

Options:

A.

Action View Helpers

B.

Initial Helpers

C.

Partial Helpers

D.

View Helpers

Buy Now
Question 2

Which of the following provides the quota limit in Zend_Mail?

Options:

A.

Maildir

B.

IMAP

C.

Mbox

D.

POP3

Question 3

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 4

You want to retrieve all the data from any given table. You also want to ensure that no duplicate values are displayed. Which of the following SQL statements will you use to accomplish the task?

Options:

A.

SELECT...TOP

B.

SELECT...WHERE

C.

SELECT...DISTINCT

D.

SELECT...ALL

Question 5

Which of the following functions in SimpleXML can be used to return an iterator containing a list of all subnodes of the current node?

Options:

A.

asXML()

B.

attributes()

C.

getName()

D.

children()

Question 6

Fill in the blank with the appropriate class name. The______ class is used to load files

dynamically.

Options:

Question 7

Which of the following methods is used to change the session con figuration options?

Options:

A.

Zend_Session::start()

B.

Zend_config_options

C.

Zend_Session_Namespace()

D.

Zend_Session::setOptions()

Question 8

Fill in the blank with the appropriate PHP function. The_____________ function is used to replace the current session id with the new session id, and to keep information of the current session.

Options:

Question 9

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 10

Which of the following joins will you use to display data that do not have an exact match in the column?

Options:

A.

Self join

B.

Outer join

C.

Equijoin

D.

Non-equijoin

Question 11

You run the following PHP script:

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

Question 12

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 13

Consider the following script:

<title>

This is a test script.

echo 'This is some sample text';

?>

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

Options:

A.

ASP tag

B.

Short tag

C.

Script tag

D.

Standard tag

Question 14

Which of the following SPL Interfaces/classes extends the standard Iterator interface and enables the ability to retrieve a specific item from internal data store?

Options:

A.

ArrayAccess

B.

Recursive Iterator

C.

FilterIterator

D.

SeekableIterator

Question 15

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 16

You have a table created as follows:

create table foo (c1int, 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

Options:

A.

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

B.

create index foox on foo (c1)

C.

create index foox on foo (c1,c3)

D.

create unique index foox on foo (c1,c3)

Question 17

Consider the following code segment:

1.

2. require_once 'Zend/Mail.php';

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

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

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

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

B.

$mail => initialize_Zend_Mail();

C.

$mail -> Zend_Mail();

D.

$mail => Zend_Mail();

Question 18

Which of the following resource objects is used to support Zend_Acl?

Options:

A.

No

B.

Multiple

C.

Single

D.

Cyclic

Question 19

Which of the following will NOT display the value of $debug_variable? Each correct answer represents a complete solution. Choose all that apply.

Options:

A.

echo Zend_Debug::dump($debug_variable, 'debug_variable', false);

B.

print(Zend_Debug::dump($debug_variable, 'd ebug_variable', true));

C.

ob_start(); Zend_Debug::dump($debug_variable, 'debug_variable', false); ob_end_flush();

D.

Zend_Debug::dump($debug_var iable, 'debug_variable', true);

Page: 1 / 5
Total 130 questions