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

All ZF-100-500 Test Inside Zend Questions

Page: 3 / 5
Total 130 questions

ZF-100-500 Questions and Answers

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 . "
";

Page: 3 / 5
Total 130 questions