Which of the following is used to render a specific template within its own variable scope?
Which of the following provides the quota limit in Zend_Mail?
Which of the following code snippets will you use to instantiate Zend_XmlRpc_Server?
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?
Which of the following functions in SimpleXML can be used to return an iterator containing a list of all subnodes of the current node?
Fill in the blank with the appropriate class name. The______ class is used to load files
dynamically.
Which of the following methods is used to change the session con figuration options?
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.
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?
Which of the following joins will you use to display data that do not have an exact match in the column?
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.
You have been given the following PHP script:
1.
2. $xmlstring = << 3. 4. 5. 6. 7. 8.
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?
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?
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?
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.
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
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?
Which of the following resource objects is used to support Zend_Acl?
Which of the following will NOT display the value of $debug_variable? Each correct answer represents a complete solution. Choose all that apply.