Which of the following code snippets will you use to instantiate Zend_XmlRpc_Server?
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()
Which of the following code snippets will you use to create an index in Zend_Search_Lucene?
1.
2.
?????????????
3.
?????????????
4.
$Search_Doc ->addField(Zend_Search_Lucene_Field::Text('url', $docUrl));
5.
$Search_Doc ->addField(
6.
Zend_Search_Lucene_Field::UnStored(
7.
'contents',
8.
$docContent
9.
)
10.
);
11.
$index->addDocument($Search_Doc);
A. $Search_Index = Zend_Search_Lucene::create_Index('/data/my -index'); $Search_Doc = new Zend_Search_Lucene_Document();
B. $Search_Index = Zend_Search_Lucene::open_Index('/data/my -index'); $Search_Doc = new Zend_Search_Lucene_Document();
C. $Search_Index = Zend_Search_Lucene::create('/data/my -index'); $Search_Doc = new Zend_Search_Lucene_Document();
D. $Search_Index = Zend_Search_Lucene::open('/data/my -index'); $Search_Doc = new Zend_Sear ch_Lucene_Document();
Which of the following code snippets will you use to destroy a log if the variable $logger contains the log record?
A. B. C. D.
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?
A. Registry
B. ActiveRecord
C. Model-view-controller
D. Factory
Which of the following code snippets will you use to create a transport while considering the following PHP code segment?
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);
}
A. $transport = new transport();
B. $transport = new Zend_Mail_Transport_Smtp('localho st');
C. $transport = new Zend_Mail_Transport('localhost');
D. $transport -> new Zend_Mail_Transport;
Which of the following inherits from Zend_Log_Writer_Abstract and is responsible for saving data to storage?
A. Filter
B. Writer
C. Formatter
D. Log
Which of the following statements correctly explain the working of Zend_Sera ch_Lucene?
Each correct answer represents a complete solution. Choose all that apply.
A. It supports ranked searching, phrase queries, wildcard queries, and proximity queries.
B. It is a text search engine.
C. It requires the Zend_Db class to connect to a database server.
D. It can also be used to search by any specific field, such as, title, author, etc.
Celina works as a Database Administrator for Tech Mart Inc. The company uses an Oracle database. The database contains a table named Employees. Following is the structure of the table:
EmpID NUMBER (5) PRIMARY KEY EmpName VARCHAR2 (35) NOT NULLSalary NUMBER (9, 2) NOT NULL Commission NUMBER (4, 2) ManagerNameVARCHAR2 (25) ManagerID NUMBER (5) Celina wants to display the names of
employees and their managers, using a self join.
Which of the following SQL statements will she use to accomplish this? Each correct answer represents a complete solution. Choose two.
A. SELECT e.EmpName, m.ManagerName FROM Employees e, Employeesm WHERE e.EmpID = m.ManagerID;
B. SELECT e.EmpName, m.ManagerName FROM Employees e INNER JOIN Employeesm ON e.EmpID = m.ManagerID;
C. SELECT e.EmpName, m.ManagerName FROM Employees e LEFT OUTER JOIN Employees m ON e.EmpID = m.ManagerID;
D. SELECT e.EmpName, m.ManagerName FROM Employees e SELF JOIN Employeesm ON e.EmpID = m.ManagerID;
Which method is used to load a PHP file that may contain any PHP code?
A. Zend_Loader::load()
B. Zend_Loader::load()::includeFile()
C. Zend_Loader::load()::includeOnce()
D. Zend_Loader::loadFile()
Which of the following is used to provide a tree structure onto which multiple resources can be added?
A. Zend_Acl_Assert_Interface
B. Zend_Acl_Assert
C. Zend_Acl_Role
D. Zend_Acl