Which of the following OOPS design patterns is used to encapsulate a data source so that accessing the data source components becomes hidden within the class that implements the pattern?
Answer : B
You want to get the information of total number of documents stored in the index. You also want to include the deleted documents. Which of the following methods will you use to accomplish the task?
Answer : C
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?
Answer : D
You run the following PHP script:
<?php include("xml.inc");
if (!$dom = domxml_open_mem($xmlstr)) {
echo "Error while parsing the XML document \n";
exit;
$a = **********
print_r($a);
?>
Which of the following functions will you use instead of * if you want to print the root element of the XML file?
Answer : B
You have been given the following PHP script:
1. <?php
2. $xmlstring = <<<XML
3. <?xml version="1.0" encoding="ISO -8859-1"?>
4. <email>
5. <to>[email protected]</to>
6. <from>[email protected]</from>
7. <heading>Technical issue in Linux OS</heading>
8. <body>There is a technical issue in my Linux system. Please Fix it. </body>
9. </email>
10. XML;
11. $xml = new SimpleXMLElement($xmlstring);
12. foreach($xml->children() as $child)
13. {
14. <Insert code here.>
15. }
16. ?>
Which of the following code snippets will you insert at line number 14 to get the following output?
Answer : C
Maria writes a query that uses outer join between two tables. Which of the following operators are not allowed in the query? Each correct answer represents a complete solution. Choose two.
Answer : A,B
Which of the following provides the quota limit in Zend_Mail?
Answer : A
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?
Answer : A
Which of the following code segments can be used to check the form validity?
Answer : C
Which of the following code snippets will you use to create a transport while considering the following PHP code segment?
<?php
require_once 'Zend/Mail.php';
require_once 'Zend/Mail/Transport/Smtp.php';
??????????????????????????????????
for ($i = 0; $i > 5; $i++) {
$mail = new Zend_Mail();
$mail->addTo('[email protected]', 'Test');
$mail->setFrom(' [email protected]', 'Test');
$mail->setSubject('Multiple Mails');
$mail->setBodyText('Messages');
$mail->send($transport);
Answer : B
Which of the following is used for separation of hierarchies in Zend_config_Ini file?
Answer : A
Which of the following methods dynamically loads the Adapter class file on demand using
Zend_Loader::loadClass()?
Answer : D
Which of the following keywords will you use to set the default timezone? Each correct answer represents a complete solution. Choose all that apply.
Answer : A,D
Which of the following methods is used to attach files to an e-mail and returns a
Zend_Mime_Part object?
Answer : C