ZF-100-500
-
Upload
manoj-kumar -
Category
Documents
-
view
220 -
download
0
Transcript of ZF-100-500
-
7/27/2019 ZF-100-500
1/52
Zend ZF-100-500
Zend Framework CertificationVersion 4.0Version:
-
7/27/2019 ZF-100-500
2/52
QUESTION NO: 1 CORRECT TEXT
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.
Answer: session_regenerate_id()
QUESTION NO: 2
Which one of the following is used to manage the data within a memory -limited environment?
A. Zend_Memory
B. Zend_CacheC. Zend_Cache_Backend
D. Zend_Memory_Backend
Answer: A
Explanation:
QUESTION NO: 3
Which of the following actions may fail if you have exceeded your quota limit?
A. addTo()
B. send()
C. addBcc()
D. appendMessage()
Answer: D
Explanation:
QUESTION NO: 4
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();
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 2
-
7/27/2019 ZF-100-500
3/52
C. $server = new Zend_XmlRpc_Server();
D. $server = create_new_Zend_XmlRpc_Server()
Answer: C
Explanation:
QUESTION NO: 5 CORRECT TEXT
Write the appropriate word to complete the sentence below. ___________is used for logging of
multiple backends, formatting messages which are sent to the log, and filtering those messages,
which should not be logged.
Answer: Zend_Log
QUESTION NO: 6
Which of the following is used to create a new Memory Manager?
A. Zend_Memory::factory()
B. Zend_Memory->NewMemoryManager()
C. Zend_Memory->factory()
D. Zend_Memory::NewMemoryManager()
Answer: A
Explanation:
QUESTION NO: 7
You want a formatted date for an RSS feed. Which of the following code syntaxes will you use to
accomplish the task?
A. Zend_Date::RSSFEED
B. Zend_Date::RSS
C. $RSS= new Zend_RSS_Date()
D. Zend_Date->RSS
Answer: B
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 3
-
7/27/2019 ZF-100-500
4/52
Explanation:
QUESTION NO: 8
Fill in the blank with the appropriate method name. The__________ method is used to send anemail in the HTML format.
A. setBodyHTML()
Answer: A
Explanation:
QUESTION NO: 9
Which of the following methods will you use to retain the identity across requests according to the
PHP session configuration?
A. isValid()
B. getIdentity()
C. Zend_Auth::authenticate()D. getCode()
Answer: C
Explanation:
QUESTION NO: 10
Which of the following code snippets will you use to create an index in Zend_Search_Lucene?
1.
-
7/27/2019 ZF-100-500
5/52
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();
Answer: C
Explanation:
QUESTION NO: 11
Which of the following methods in Zend_Controller_Action can be used for resetting the state
when multiple controllers use the same helper in the chained actions?
A. preDispatch()
B. setActionController()
C. postDispatch()
D. init()
Answer: D
Explanation:
QUESTION NO: 12
You want to retrieve all the data from any given table. You also want to ensure that no duplicatevalues are displayed. Which of the following SQL statements will you use to accomplish the task?
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 5
-
7/27/2019 ZF-100-500
6/52
A. SELECT...TOP
B. SELECT...WHERE
C. SELECT...DISTINCT
D. SELECT...ALL
Answer: C
Explanation:
QUESTION NO: 13
Consider the following code segment:
1.
Which of the following code snippets will you use at line number 3 to initiate Zend_Mail?
A. $mail = new Zend_Mail();B. $mail => initialize_Zend_Mail();
C. $mail -> Zend_Mail();
D. $mail => Zend_Mail();
Answer: A
Explanation:
QUESTION NO: 14
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 6
-
7/27/2019 ZF-100-500
7/52
Which of the following functions sets up start and end element handlers?
A. xml_parse_into_struct()
B. xml_parser_create_ns()
C. xml_set_object()
D. xml_set_element_handler()
Answer: D
Explanation:
QUESTION NO: 15
Which of the following functions can be used as a countermeasure to a Shell Injection attack?
Each correct answer represents a complete solution. Choose all that apply.
A. mysql_real_escape_string()
B. escapeshellcmd()
C. regenerateid()
D. escapeshellarg()
Answer: B,D
Explanation:
QUESTION NO: 16
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
A. create unique index foox on foo (c1) include (c3)
B. create index foox on foo (c1)
C. create index foox on foo (c1,c3)
D. create unique index foox on foo (c1,c3)
Answer: A
Explanation:
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 7
-
7/27/2019 ZF-100-500
8/52
QUESTION NO: 17
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?
A.
-
7/27/2019 ZF-100-500
9/52
A.
B.
C.
D.
Answer: C
Explanation:
QUESTION NO: 20
Which of the following are the configuration files that are used in Zend_Config?
A. Zend_Config_Server
B. Zend_Config_Xml
C. Zend_Config_Db
D. Zend_Config_Ini
Answer: B,D
Explanation:
QUESTION NO: 21
Which of the following methods are used by Zend_Controller_Action_Helper_Abstract? Each
correct answer represents a complete solution. Choose all that apply.
A. init()
B. preDispatch()
C. setActionController()
D. getResponseId()
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 9
-
7/27/2019 ZF-100-500
10/52
Answer: A,B,C
Explanation:
QUESTION NO: 22
Which of the following are the valid methods of the Zend_Date class? Each correct answer
represents a complete solution. Choose all that apply.
A. set()
B. add()
C. check()
D. get()
E. sub()
Answer: A,B,D,E
Explanation:
QUESTION NO: 23
Which of the following is an example of a database connection that needs to be created once atthe beginning of a script and then used throughout its code?
A. Model-view-controller
B. Factory pattern
C. ActiveRecord
D. Singleton
Answer: D
Explanation:
QUESTION NO: 24
Which of the following clauses is used to specify a column or an array of columns by which to
sort?
A. Order By
B. WHERE
C. FROM
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 10
-
7/27/2019 ZF-100-500
11/52
D. LIMIT
Answer: A
Explanation:
QUESTION NO: 25
John works as a professional Ethical Hacker. He has been assigned a project to test the security
of www.we-are-secure.com. On the We-are-secure login page, he enters ='o r''=' as a username
and successfully logs in to the user page of the Web site. The We-are-secure login page is
vulnerable to a __________.
A. Land attack
B. Replay attack
C. Dictionary attack
D. SQL injection attack
Answer: D
Explanation:
QUESTION NO: 26 CORRECT TEXT
Fill in the blank with the appropriate method name. The__________ method is used to retrieve
headers when the storage has been opened.
Answer: getHeader()
QUESTION NO: 27 CORRECT TEXT
Fill in the blank with the appropriate class name. The______ class is used to load files
dynamically.
Answer: Zend_Loader
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 11
-
7/27/2019 ZF-100-500
12/52
QUESTION NO: 28
Which of the following methods of Zend_XmlRpc_Client can you use to instantiate a server proxy
call?
A. call()
B. getLastResponse()C. getProxy()
D. XMLResponse
Answer: C
Explanation:
QUESTION NO: 29
You have given the following XML data in the tasks.XML file:
Validate data
String Validation
Secure data
Encryption
Now, you run the following PHP script:
-
7/27/2019 ZF-100-500
13/52
$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
";}
?>
What should be displayed when this script is executed?
A. The contents of the whole XML document
B. The XML of every tasks and details nodes
C. The contents of every tasks and details nodes
D. The XML of whole XML document
Answer: C
Explanation:
QUESTION NO: 30
You run the following PHP script:
What is the use of the mysql_real_ escape_string() function in the above script. Each correctanswer represents a complete solution. Choose all that apply.
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 13
-
7/27/2019 ZF-100-500
14/52
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.
Answer: A,CExplanation:
QUESTION NO: 31
Which of the following can be used as a countermeasure against the SQL injection attack?
Each correct answer represents a complete solution. Choose two.
A. session_regenerate_id()
B. Prepared statement
C. mysql_escape_string()
D. mysql_real_escape_string()
Answer: B,D
Explanation:
QUESTION NO: 32
Which of the following statements correctly explains the behavior of Zend_Controller_Front?
Each correct answer represents a complete solution. Choose all that apply.
A. It registers a plug-in broker with itself.B. It uses the Singleton pattern.
C. It processes all requests received by the server.
D. The Zend_Controller_Front never loads any plugin by default.
Answer: A,B,C
Explanation:
QUESTION NO: 33
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 14
-
7/27/2019 ZF-100-500
15/52
Which of the following functions in SimpleXML can be used to return an iterator containing a list of
all subnodes of the current node?
A. asXML()
B. attributes()
C. getName()
D. children()
Answer: D
Explanation:
QUESTION NO: 34 CORRECT TEXT
Fill in the blank with the appropriate method name. ________is a method to create REST server.
Answer: Zend_Rest_Server
QUESTION NO: 35
Which of the following functions is the best choice to retrieve the fingerprint of a string?
A. md5()
B. fingerprint()
C. crypt()
D. hash()
Answer: A
Explanation:
QUESTION NO: 36
Which of the following steps will you use to create a multi -lingual Website? Each correct answer
represents a complete solution. Choose all that apply.
A. Creating the View and integrate Zen d_Translate into the code
B. Deciding which adapter to use
C. Translating the source file to the desired language
D. Putting the Zend_Translate into session
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 15
-
7/27/2019 ZF-100-500
16/52
E. Creating the source file from the code
Answer: A,B,C,E
Explanation:
QUESTION NO: 37
Which of the following retrieves the request URI, path, $_GET & $_POST parameters, etc. and
tracks whether an action has been dispatched via Zend_Controller_Dispatcher?
A. Zend_Controller_Get_Request
B. Zend_Controller_Router
C. Zend_Controller_Request_Abstract
D. Zend_Controller_Response_Abstract
Answer: C
Explanation:
QUESTION NO: 38
You are using a database named HumanResource. You have to delete some tables from the
database using SQL statements. Which of the following statements will you use to accomplish the
task?
A. DELETE TABLE FROM DATABASE
B. DELETE TABLE
C. DROP TABLE
D. DROP TABLE FROM DATABASE
Answer: C
Explanation:
QUESTION NO: 39
Which of the following joins retrieves all rows from one table and only the matching rows from the
joined table?
A. Self join
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 16
-
7/27/2019 ZF-100-500
17/52
B. Outer join
C. Equijoin
D. Non-equijoin
Answer: B
Explanation:
QUESTION NO: 40
Which of the following statements describes the use of a GROUP BY clause?
A. A GROUP BY clause returns a single row of information for each group of rows.
B. A GROUP BY clause automatically sorts the grouped result in ascending order, if
DESCkeyword is not defined.
C. A GROUP BY clause returns a single row of information for each group of rows, inaddition to all
the rows.
D. A GROUP BY clause automatically sorts the grouped result in descending order.
Answer: A
Explanation:
QUESTION NO: 41
You want to record the raw log data received in an array exposed as a public property. Which of
the following will you use to accomplish the task?
A. Zend_Log_Writer_Mock
B. Zend_Log_Formatter_Xml
C. Zend_Log_Writer_StreamD. Zend_Log_Formatter_Simple
Answer: A
Explanation:
QUESTION NO: 42
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.
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 17
-
7/27/2019 ZF-100-500
18/52
A. dispatch()
B. objectsetControllerDirectory()
C. getInstance()
D. controller()
Answer: A,B,C
Explanation:
QUESTION NO: 43
Which of the following will NOT display the value of $debug_variable? Each correct answer
represents a complete solution. Choose all that apply.
A. echo Zend_Debug::dump($debug_variable, 'debug_variable', false);
B. print(Zend_Debug::dump($debug_variable, 'd ebug_variable', true));
C. ob_start(); Zend_Debug::dump($debug_variable, 'debug_variable', false); ob_end_flush();
D. Zend_Debug::dump($debug_var iable, 'debug_variable', true);
Answer: A,B,D
Explanation:
QUESTION NO: 44 CORRECT TEXT
Fill in the blank with the appropriate term. __________is used to implement a classic Two-Step
View pattern that allows a user to wrap the application content within another view.
Answer: Zend_Layout
QUESTION NO: 45
A table named employees is given below:
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 18
-
7/27/2019 ZF-100-500
19/52
Which of the following statements would return the employees names , in ascending order, basedon their last name and first name? Each correct answer represents a complete solution. Choose
all that apply.
A. select fname, lname from employees order by lname;
B. select fname, lname from employees order by lname desc;
C. select fname, lname from employees group by lname;
D. select fname, lname from employees order by lname asc;
Answer: A,DExplanation:
QUESTION NO: 46
Which of the following code snippets will you use to destroy a log if the variable $logger contains
the log record?
A.
-
7/27/2019 ZF-100-500
20/52
QUESTION NO: 47
Which of the following methods will you use to get the actual set language in
Zend_Translateclass?
A. setLocale()
B. getList()C. getLocale()
D. isAvailable()
Answer: C
Explanation:
QUESTION NO: 48
Which of the following joins will you use to display data that do not have an exact match in the
column?
A. Self join
B. Outer join
C. Equijoin
D. Non-equijoin
Answer: D
Explanation:
QUESTION NO: 49
Which of the following is the method that is used to check whether the version required for
running the application exists or not?
A. $var = Zend_Version->compareVersion($version)
B. Zend_compareVersion($version)
C. Zend_Version::VERSION
D. Zend_Version::compareVersion($version)
Answer: D
Explanation:
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 20
-
7/27/2019 ZF-100-500
21/52
QUESTION NO: 50
Which of the following classes will you use to store objects and values in the application space?
A. zend_Db
B. Zend_Acl
C. Zend_RegistryD. Zend_Config
Answer: C
Explanation:
QUESTION NO: 51
Consider the following XML file:
SimpleXML Example
Please go http: //www.PassGuide.com
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 21
-
7/27/2019 ZF-100-500
22/52
Which of the following statements will display the HREF attribute on the anchor tag if the
SimpleXML object is $sxml?
A. $sxml->body->h1->a->href
B. $sxml->body->h1->a
C. $sxml->body->h1->a['href']
D. $sxml->h1->a->href
Answer: C
Explanation:
QUESTION NO: 52
Which of the following steps will you take to apply Zend_View? Each correct answer represents a
part of the solution. Choose all that apply.
A. Transfer control of the display to the View Script.
B. Render the View.
C. Assign the variables to the View via a Controller Script.
D. Create an instance of the View.
Answer: B,C,D
Explanation:
QUESTION NO: 53 CORRECT TEXT
Fill in the blank with the appropriate method name. _________is used to make call of the remote
methods in the same manner as native methods.
Answer: Zend_Rest_Client
QUESTION NO: 54
Which of the following modes is the default Fetch mode for Adapter classes and returns data in
an associative array on which the keys are the column names?
A. Zend_Db::FETCH_BOTH
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 22
-
7/27/2019 ZF-100-500
23/52
B. Zend_Db::FETCH_ASSOC
C. Zend_Db::FETCH_OBJ
D. Zend_Db::FETCH_COLUMN
Answer: B
Explanation:
QUESTION NO: 55
Which of the following is an abstract class that is used to provide the basic interface and
functionality required by the helper broker?
A. Zend_Db
B. Zend_Auth
C. Zend_Acl
D. Zend_Controller_Action_Helper_Abstract
Answer: D
Explanation:
QUESTION NO: 56
Which of the following methods of Zend_Auth returns TRUE if and only if the result represents a
successful authentication attempt?
A. getIdentity()
B. getCode()
C. isValid()
D. getMessages()
Answer: C
Explanation:
QUESTION NO: 57 CORRECT TEXT
Fill in the blank with the appropriate method name. The________ method is used to checkwhether a date is valid or not.
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 23
-
7/27/2019 ZF-100-500
24/52
Answer: isDate()
QUESTION NO: 58
You have created a table based on the following data:
EmpID NUMBER (5) PRIMARY KEYEmpName VARCHAR2 (35) NOT NULL Salary NUMBER (9,
2) NOT NULL CommissionNUMBER (4, 2) ManagerName VARCHAR2 (25) ManagerID NUMBER
(5) Now, you wantto display the names of employees and their managers, using a self join.
Which of the following SQL statements can you 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 SELF JOIN Employeesm
ON e.EmpID = m.ManagerID;
C. SELECT e.EmpName, m.ManagerNam e
FROM Employees e INNER JOIN Employeesm
ON e.EmpID = m.ManagerID;
D. SELECT e.EmpName, m.ManagerNameFROM Employees e LEFT OUTER JOIN Employees m
ON e.EmpID = m.ManagerID;
Answer: A,C
Explanation:
QUESTION NO: 59
Which of the following are the features of Zend_Layout? Each correct answer represents a
complete solution. Choose all that apply.
A. It is the configuration of layout name, inflection, and path.
B. It can be used with ZF MVC components.
C. It is used to disable layouts and change scripts.
D. It has a separate scope for layout-related variables and content.
Answer: A,C,D
Explanation:
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 24
-
7/27/2019 ZF-100-500
25/52
QUESTION NO: 60
You work as a Database Administrator for Dolliver Inc. The company uses an Oracle database.
The database contains two tables, named Employees and Departments. You want to retrieve allmatched and unmatched rows from both the tables. Which of the following types of joins will you
use to accomplish this?
A. FULL OUTER JOIN
B. LEFT OUTER JOIN
C. RIGHT OUTER JOIN
D. CROSS JOIN
Answer: A
Explanation:
QUESTION NO: 61
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
Answer: B
Explanation:
QUESTION NO: 62
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?
A. $search_index::count_document();
B. $search_index::count();
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 25
-
7/27/2019 ZF-100-500
26/52
C. $search_index->count();
D. $search_index->docCount();
Answer: C
Explanation:
QUESTION NO: 63
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?
A. ArrayAccess
B. Recursive Iterator
C. FilterIterator
D. SeekableIterator
Answer: D
Explanation:
QUESTION NO: 64
You run the following PHP script:
Which of the following functions will you use instead of * if you want to print the root element of theXML file?
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 26
-
7/27/2019 ZF-100-500
27/52
A. $node->parent_node();
B. $dom->document_element();
C. $dom->root_node();
D. $dom->root_element();
Answer: B
Explanation:
QUESTION NO: 65
You have been given the following PHP script:
1.
4.
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?
A. echo $child->getNamespaces() . ": " . $child . "
";Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 27
-
7/27/2019 ZF-100-500
28/52
B. echo $child->getDocNamespaces() . ": " . $child . "
";C. echo $child->getName() . ": " . $child . "
";D. echo $child->asXML() . ": " . $child . "
";Answer: C
Explanation:
QUESTION NO: 66
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.
A. OR
B. IN
C. =
D. AND
Answer: A,B
Explanation:
QUESTION NO: 67
Which of the following provides the quota limit in Zend_Mail?
A. Maildir
B. IMAP
C. Mbox
D. POP3
Answer: A
Explanation:
QUESTION NO: 68
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?
A. BETWEEN 25 AND 40
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 28
-
7/27/2019 ZF-100-500
29/52
B. BETWEEN 25 TO 40
C. BETWEEN 25 - 40
D. BETWEEN 25 & 40
Answer: A
Explanation:
QUESTION NO: 69
Which of the following code segments can be used to check the form validity?
A. if (Zend_Form::isValid($_Post)) {
// success!
} else {
// failure!
}
B. if (Zend_Form->isValid($form)) {
// success!
} else {
// failure!
}
C. if ($form->isValid($_POST)) {
// success!} else {
// failure!
}
D. if (Zend_Form::isValid($form)) {
// success!
} else {
// failure!
}
Answer: C
Explanation:
QUESTION NO: 70
Which of the following code snippets will you use to create a transport while considering the
following PHP code segment?
-
7/27/2019 ZF-100-500
30/52
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;
Answer: BExplanation:
QUESTION NO: 71
Which of the following is used for separation of hierarchies in Zend_config_Ini file?
A. .
B. >
C. ,
D. ->
Answer: A
Explanation:
QUESTION NO: 72
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 30
-
7/27/2019 ZF-100-500
31/52
Which of the following methods dynamically loads the Adapter class file on demand using
Zend_Loader::loadClass()?
A. Zend_Db_Adapter_Pdo_Mysql()
B. Zend_load_Adaptor()
C. fetchAll()
D. Zend_Db::factory()
Answer: D
Explanation:
QUESTION NO: 73
Which of the following keywords will you use to set the default timezone? Each correct answer
represents a complete solution. Choose all that apply.
A. date.timezone setting in php.ini
B. set_default_timezone
C. set_timezone
D. date_default_timezone_set()
Answer: A,D
Explanation:
QUESTION NO: 74
Which of the following methods is used to attach files to an e-mail and returns a Zend_Mime_Part
object?
A. setBodyHTML()
B. Zend_Mime_attach()
C. createAttachment()
D. Zend_Mail_Storage_Mbox()
Answer: C
Explanation:
QUESTION NO: 75
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 31
-
7/27/2019 ZF-100-500
32/52
Which of the following error constants gives all errors and warnings, except the E_STRICTerror
level?
A. E_RECOVERABLE_ERROR
B. E_ALL
C. E_ERROR
D. E_WARNING
Answer: B
Explanation:
QUESTION NO: 76
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
Answer: B
Explanation:
QUESTION NO: 77
Which of the following methods is triggered when a dispatched action is done even if
apreDispatch() plugin has skipped the action and is mainly useful for cleanup?
A. getRequest()
B. postDispatch()
C. init()
D. getResponse()
Answer: B
Explanation:
QUESTION NO: 78
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 32
-
7/27/2019 ZF-100-500
33/52
Consider the PHP program (which includes a file specified by request):
red
blue
A malicious user injects the following command:
/vulnerable.php?COLOR=C:\\notes.txt%00
Where vulnerable.php is a remotely hosted file containing an exploit. What does the malicious
user want to do?
A. Perform a cross-site scripting attack.B. Execute the malicious code that exists in the file vulnerable.php.
C. Remove the .php suffix, allowing access to files other than .php.
D. Inject a remotely hosted file containing an exploit.
Answer: C
Explanation:
QUESTION NO: 79
What will be the output of the following PHP script?
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 33
-
7/27/2019 ZF-100-500
34/52
A. It will display the root element of the XML file.
B. It will display the XML code of the XML file.C. It will throw an error.
D. It will display the contents of the XML file.
Answer: A
Explanation:
QUESTION NO: 80
Which of the following methods are run by the Zend_Controller_Front::run($path) method at a
time? Each correct answer represents a complete solution. Choose all that apply.
A. setControllerDirectory()
B. getInstance()
C. dispatch()
D. setInstance()
Answer: A,B,C
Explanation:
QUESTION NO: 81
Which of the following methods can be used to verify the authentication and ACLs prior to an
action?
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 34
-
7/27/2019 ZF-100-500
35/52
A. preDispatch()
B. getHelper()
C. aunthicate_ACL()
D. authenticate()
Answer: A
Explanation:
QUESTION NO: 82
Which of the following methods sends log data to a PHP stream?
A. Zend_Log_Writer_Stream
B. Zend_Log_Writer_Filestream
C. Zend_Log_Writer_Abstract
D. Zend_Log_Writer_Db
Answer: A
Explanation:
QUESTION NO: 83
Martin works as a Database Administrator for MTech Inc. He designs a database that has a table
named Products. He wants to create a report listing different product categories. He does not want
to display any duplicate row in the report. Which o f the following SELECT statements will Martin
use to create the report?
A. SELECT Product_No, Prod_Category
FROM Products;B. SELECT DISTINCT Product_No, Prod_Category
FROM Products;
C. SELECT Product_No, Prod_Category
FROM Products
GROUP BY Product_No;
D. SELECT Product_No, Prod_Category
FROM Products
GROUP BY Product_No ORDER BY Product_No;
Answer: B
Explanation:
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 35
-
7/27/2019 ZF-100-500
36/52
QUESTION NO: 84
Angela works as a Database Administrator for AznoTech Inc. She writes the following query:
SELECT Dept_Name, Emp_Name
FROM Departments d1, Employees e1
WHERE d1.Dept_No = e1.Dept_No
ORDER BY Dept_Name, Emp_Name;
Which of the following joins is used in this query?
A. Non-equijoin
B. Outer join
C. Equijoin
D. Self join
Answer: C
Explanation:
QUESTION NO: 85
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.
Answer: A,B,D
Explanation:
QUESTION NO: 86
Which of the following are the features of Zend_Controller_Front? Each correct answer represents
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 36
-
7/27/2019 ZF-100-500
37/52
a complete solution. Choose all that apply.
A. By default, the ErrorHandler plugin and ViewRenderer action helper plugin are loaded
inZend_Controller_Front.
B. It is used to register a plugin broker, which allows calling a user code when certainevents
occurin controller process.
C. It is used to implement the Singleton pattern.D. It is used to handle the request and output.
Answer: A,B,C
Explanation:
QUESTION NO: 87
You are using a database named SalesDB to keep all sales records. The SalesDB database
contains a table named Orders. You are required to create a new t able named OldOrders and
transfer all the data from the Orders table to the new table. Which of the following statements will
you use to accomplish the task?
A. IMPORT INTO
B. INSERT INTO
C. ADD INTO
D. SELECT INTO
Answer: D
Explanation:
QUESTION NO: 88
Which of the following methods will you use to create movable objects?
A. Zend_Memory_Manager::createLocked([$data])
B. Zend_Memory_Manager::create([$data])
C. getMemoryLimit()
D. setMemoryLimit($newLimit)
Answer: B
Explanation:
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 37
-
7/27/2019 ZF-100-500
38/52
QUESTION NO: 89
Ross creates a database for a school. He creates two tables named Students and Courses.
Which of the following SELECT statements will he use to define an outer join?
A. SELECT Stud.Student_ID, Cou.Course_ID FROM Students Stud, Courses Cou WHERE
Stud.Course_ID (+) = Cou.Course_ID;B. SELECT Stud.Student_ID, Cou.Course_ ID FROM Students Stud, Courses Cou WHERE
Stud.Fees BETWEEN Cou.Min_Fees and Cou.Max_Fees;
C. SELECT Stud.Student_ID, Cou.Course_ID FROM Students Stud, Courses Cou WHERE
Stud.Course_ID = Cou.Course_ID;
D. SELECT Stud.Student_ID, Cou.Course_ID FROM Students Stud, Courses Cou WHERE
Stud.Student_ID = Cou.Course_ID;
Answer: A
Explanation:
QUESTION NO: 90
Which of the following types of content is expected by Zend_Rest_Client when using a
RESTservice?
A. JSON
B. HTML
C. Simple text
D. XML
Answer: D
Explanation:
QUESTION NO: 91 CORRECT TEXT
Fill in the blank with the appropriate method name. The__________ method is used to convert an
existing money value to a localized currency formatted output.
Answer: toCurrency()
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 38
-
7/27/2019 ZF-100-500
39/52
QUESTION NO: 92 CORRECT TEXT
Fill in the blank with the appropriate PHP function. The___________ function is used to return the
sum of the values of every entry within an array.
Answer: array_sum()
QUESTION NO: 93
Which of the following functions can you use to mitigate a command injection attack? Each correct
answer represents a complete solution. Choose all that apply.
A. strip_tags()B. escapeshellarg()
C. htmlentities()
D. escapeshellcmd()
Answer: B,D
Explanation:
QUESTION NO: 94 CORRECT TEXT
Fill in the blank with the appropriate term. _______________is used to process all requests that
are received by the server and then dispatch them to the appropriate action controllers.
Answer: Zend_Controller_Front
QUESTION NO: 95
Which of the following functions will be called if there is an HTTP "404 Not Found" error?
A. Zend_XmlRpc_Client_FaultException
B. Zend_XmlRpc_Client_Fault_404_Exception
C. Zend_XmlRpc_Client_HttpException
D. Zend_XmlRpc_Client_404Exception
Answer: C
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 39
-
7/27/2019 ZF-100-500
40/52
Explanation:
QUESTION NO: 96 CORRECT TEXT
Fill in the blank with the appropriate class name. _______ is a class that is used to createmultilingual applications.
Answer: Zend_Translate
QUESTION NO: 97
Which of the following code snippets will create a memory manager object?
A. $memoryManager = Zend_Memory:=>factory('None');
B. $memoryManager = Zend_Memoryfactory::None;
C. $memoryManager = Zend_Memory::factory.None;
D. $memoryManager = Zend_Memory::factory('None');
Answer: D
Explanation:
QUESTION NO: 98
Symonds works as a Database Administrator for Blue Well Inc. The company uses an
Oracledatabase. The database contains a table named Employees. Following is the structure of
the table:
EmployeeID NUMBER (5) PRIMARY KEY EmployeeName VARCHAR2 (35) NOT NULL Salary
NUMBER (9, 2) NOT NULL Commission NUMBER (4, 2)
DepartmentID NUMBER (5)
Symonds queries the Employees table with the following statement:
SELECT e.EmployeeName, m.Salary
FROM Employees e, Employeesm
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 40
-
7/27/2019 ZF-100-500
41/52
WHERE e.EmployeeID = m.EmployeeID;
Which of the following types of joins is used in the statement?
A. Outer join
B. EquijoinC. Cross join
D. Self join
Answer: D
Explanation:
QUESTION NO: 99 CORRECT TEXT
Fill in the blank with the appropriate PHP function. The_________ function is used to return the
sum of the values of every entry within an array.
Answer: _sum()
QUESTION NO: 100
Which of the following are the limitations for the cross site request forgery (CSRF) attack?
Each correct answer represents a complete solution. Choose all that apply.
A. The attacker must determine the right values for all the form inputs.
B. The target site should authenticate in GET and POST parameters, not only cookies.
C. The target site should have limited lifetime authentication cookies.D. The attacker must target a site that doesn't check the referrer header.
Answer: A,D
Explanation:
QUESTION NO: 101
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
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 41
-
7/27/2019 ZF-100-500
42/52
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;
Answer: A,B
Explanation:
QUESTION NO: 102
Which of the following methods can be used t o verify the authentication and ACLs prior to an
action?
A. authenticate()B. getHelper()
C. preDispatch()
D. aunthicate_ACL()
Answer: C
Explanation:
QUESTION NO: 103
Which of the following methods is used to change the session configuration options?
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 42
-
7/27/2019 ZF-100-500
43/52
A. Zend_Session::start()
B. Zend_Session::setOptions()
C. Zend_Session_Namespace()
D. Zend_config_options
Answer: B
Explanation:
QUESTION NO: 104
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?
A.
-
7/27/2019 ZF-100-500
44/52
This is a test script.
Which of the following tags is used in the php script?
A. ASP tag
B. Short tag
C. Script tag
D. Standard tag
Answer: D
Explanation:
QUESTION NO: 107
Which of the following methods is used to change the session con figuration options?
A. Zend_Session::start()B. Zend_config_options
C. Zend_Session_Namespace()
D. Zend_Session::setOptions()
Answer: D
Explanation:
QUESTION NO: 108
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 44
-
7/27/2019 ZF-100-500
45/52
Which of the following is the temp late layer, where all the HTML rendering takes place, and
where everything to be displayed to a user is assembled?
A. Controller
B. Model
C. Architecture
D. View
Answer: D
Explanation:
QUESTION NO: 109
Which of the following is used to render a specific template within its own variable scope?
A. Action View Helpers
B. Initial Helpers
C. Partial Helpers
D. View Helpers
Answer: C
Explanation:
QUESTION NO: 110
Which of the following is used to persist the content between view scripts and view instances?
A. Action View Helpers
B. Placeholder HelperC. Initial Helpers
D. Partial Helper
Answer: B
Explanation:
QUESTION NO: 111
Which of the following is known as Request Object?
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 45
-
7/27/2019 ZF-100-500
46/52
A. Zend_Controller_Response_Abstract
B. Zend_Controller_Request_Abstract
C. Zend_Controller_Request_Http
D. Zend_Controller_Router
Answer: B
Explanation:
QUESTION NO: 112
Which of the following methods is used to associate multiple filters and validators, apply them to
collections of data, and retrieve input values?
A. Zend_Validate_Interface
B. isValid()
C. setMessage()
D. Zend_Filter_Input
Answer: D
Explanation:
QUESTION NO: 113
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()
Answer: D
Explanation:
QUESTION NO: 114
Which of the following is designed for accessing and using the configuration data withinapplications?
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 46
-
7/27/2019 ZF-100-500
47/52
A. Zend_Loader
B. Zend_Session
C. Zend_Registry
D. Zend_Config
Answer: D
Explanation:
QUESTION NO: 115
Which of the following allows a user to store the configuration data in a familiar INI format?
A. Zend_Config
B. Zend_Config_data
C. Zend_Config_Ini_format
D. Zend_Config_Ini
Answer: D
Explanation:
QUESTION NO: 116
Which of the following classes allows for the reporting of queries, including information on which
queries were processed by the adapter?
A. Zend_Db_Profiler
B. Zend_Loader
C. Zend_Db
D. Zend_Db_Select
Answer: A
Explanation:
QUESTION NO: 117
Which component is used to offer an API to manipulate dates and times?
A. Zend_Date
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 47
-
7/27/2019 ZF-100-500
48/52
B. Zend_Time
C. Zend_Timezone
D. Zend_Timestamp
Answer: A
Explanation:
QUESTION NO: 118
Which function is used to take a locale string as a parameter and set a new locale?
A. setNewLocale()
B. setLocale()
C. locale_Set()
D. newLocale()
Answer: B
Explanation:
QUESTION NO: 119
Which method can be used to determine whether text within a source file has been translated in
Zend_Translate?
A. isLocatedAt()
B. isLocated()
C. isTranslated()
D. isTranslatedAt()
Answer: C
Explanation:
QUESTION NO: 120
All of the following are the basic steps in setting up a multi -lingual site, except for which one?
A. Create the source file from the code
B. Manipulate different adapters for translation
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 48
-
7/27/2019 ZF-100-500
49/52
C. Create the View and integrate Zend_Translate into the code
D. Translate the source file to the desired language
Answer: B
Explanation:
QUESTION NO: 121
Which of the following is used to encode lines starting with one dot or two dots so that the mail
does not violate the SMTP protocol?
A. Zend_Mail
B. Zend_Mail_Storage_Mbox
C. Zend_Mail_Storage_Pop3
D. Zend_Mail_Transport_Smtp
Answer: D
Explanation:
QUESTION NO: 122
Which of the following is allowed in the function declaration only?
A. Pass-by-reference
B. Function calling
C. Function declaration
D. Call-by-reference
Answer: D
Explanation:
QUESTION NO: 123
Which of the following keywords is necessary for all the switch statements?
A. CaseB. Default
C. Final
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 49
-
7/27/2019 ZF-100-500
50/52
-
7/27/2019 ZF-100-500
51/52
Answer: D
Explanation:
QUESTION NO: 127
Which property is used to operate the memory object data?
A. object
B. data
C. method
D. value
Answer: D
Explanation:
QUESTION NO: 128
Which method is used to clear or invalidate a particular cache ID?
A. delete()B. cancel()
C. remove()
D. clear()
Answer: C
Explanation:
QUESTION NO: 129
Which method is used to store the cache records into a SQLite database?
A. Zend_Cache_Backend_Sqlite
B. Zend_Cache_cache_Sqlite
C. Zend_Cache_file_ Sqlite
D. Zend_Cache_read_Sqlite
Answer: A
Explanation:
Zend ZF-100-500 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 51
-
7/27/2019 ZF-100-500
52/52
QUESTION NO: 130
Which of the following is a common feature of the Front Controller plugins and ActionHelpers?
A. Scope of layout variables
B. preDispatch() and postDispatch() hooks
C. Isolation of layout view script from other view scripts
D. Rendering of the layout
Answer: B
Explanation:
Zend ZF-100-500 Exam