Halloween Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Zend ZF-100-500 ZF-100-500 Exam Practice Test

Page: 1 / 13
Total 130 questions

ZF-100-500 Questions and Answers

Question 1

Which of the following is an example of a database connection that needs to be created once at the beginning of a script and then used throughout its code?

Options:

A.

Model-view-controller

B.

Factory pattern

C.

ActiveRecord

D.

Singleton

Question 2

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.

Options:

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.ManagerName

FROM Employees e LEFT OUTER JOIN Employees m

ON e.EmpID = m.ManagerID;

Question 3

Which component is used to offer an API to manipulate dates and times?

Options:

A.

Zend_Date

B.

Zend_Time

C.

Zend_Timezone

D.

Zend_Timestamp

Question 4

Which of the following is used for separation of hierarchies in Zend_config_Ini file?

Options:

A.

.

B.

>

C.

,

D.

->

Question 5

You have given the following XML data in the tasks.XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>

Validate data

String Validation

Secure data

Encryption

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
";

}

?>

What should be displayed when this script is executed?

Options:

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

Question 6

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.

Options:

A.

strip_tags()

B.

escapeshellarg()

C.

htmlentities()

D.

escapeshellcmd()

Question 7

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.

Options:

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.

Question 8

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?

Options:

A.

Non-equijoin

B.

Outer join

C.

Equijoin

D.

Self join

Question 9

Which of the following will NOT display the value of $debug_variable? Each correct answer represents a complete solution. Choose all that apply.

Options:

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);

Question 10

Fill in the blank with the appropriate method name. The________ method is used to check whether a date is valid or not.

Options:

Question 11

Which of the following are the valid methods of the Zend_Date class? Each correct answer represents a complete solution. Choose all that apply.

Options:

A.

set()

B.

add()

C.

check()

D.

get()

E.

sub()

Question 12

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?

Options:

A.

Zend_Db::FETCH_BOTH

B.

Zend_Db::FETCH_ASSOC

C.

Zend_Db::FETCH_OBJ

D.

Zend_Db::FETCH_COLUMN

Question 13

Which of the following code snippets will you use to destroy a log if the variable $logger contains the log record?

Options:

A.

B.

C.

D.

null;

Question 14

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.

Options:

Question 15

Which of the following methods of Zend_Auth returns TRUE if and only if the result represents a successful authentication attempt?

Options:

A.

getIdentity()

B.

getCode()

C.

isValid()

D.

getMessages()

Question 16

Which of the following methods will you use to retain the identity across requests according to the PHP session configuration?

Options:

A.

isValid()

B.

getIdentity()

C.

Zend_Auth::authenticate()

D.

getCode()

Question 17

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

WHERE e.EmployeeID = m.EmployeeID;

Which of the following types of joins is used in the statement?

Options:

A.

Outer join

B.

Equijoin

C.

Cross join

D.

Self join

Question 18

Fill in the blank with the appropriate method name. The__________ method is used to send an email in the HTML format.

Options:

A.

setBodyHTML()

Question 19

Which of the following are the features of Zend_Controller_Front? Each correct answer represents a complete solution. Choose all that apply.

Options:

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.

Page: 1 / 13
Total 130 questions