Free ZF-100-500 Exam Braindumps
Zend Framework Certification Questions 26–30 (page: 7)

Updated On: 9-Feb-2026

CORRECT TEXT
Fill in the blank with the appropriate method name. The__________ method is used to retrieve headers when the storage has been opened.

  1. getHeader()
  2. GetHeader()

Answer(s): A



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

  1. Zend_Loader

Answer(s): A



Which of the following methods of Zend_XmlRpc_Client can you use to instantiate a server proxy call?

  1. call()
  2. getLastResponse()
  3. getProxy()
  4. XMLResponse

Answer(s): C



You have given the following XML data in the tasks.XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<tasklist>
<note>
<tasks>Validate data</tasks>
<details>String Validation</details>
</note>
<note>
<tasks>Secure data</tasks>
<details>Encryption</details>
</note>
</tasklist>
Now, you run the following PHP script:
<?php
$objDOM = new DOMDocument();
$objDOM->load("tasks.xml");
$note = $objDOM->getElementsByTagName("note");
foreach( $note as $value )
{
$tasks = $value->getElementsByTagName("tasks");
$task = $tasks->item(0)->nodeValue;
$details = $value->getElementsByTagName("details");
$detail = $details->item(0)->nodeValue;
echo "$task :: $detail <br>";
}
?>
What should be displayed when this script is executed?

  1. The contents of the whole XML document
  2. The XML of every tasks and details nodes
  3. The contents of every tasks and details nodes
  4. The XML of whole XML document

Answer(s): C



You run the following PHP script:
<?php
$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.

  1. It can be used as a countermeasure against a SQL injection attack.
  2. It escapes all special characters from strings $_POST["name"] and $_POST["password"]except ' and ".
  3. It escapes all special characters from strings $_POST["name"] and $_POST["password"].
  4. It can be used to mitigate a cross site scripting attack.

Answer(s): A,C



Viewing page 7 of 27
Viewing questions 31 - 35 out of 200 questions


Post your Comments and Discuss Zend ZF-100-500 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!