Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Zend 100-500 - Zend Framework Certification

Page: 3 / 6
Total 202 questions

Fill in the blank with the appropriate method name.

The________ method is used to check whether a date is valid or not.

A.

isDate()

Consider the PHP program (which includes a file specified by request):

$color = 'blue';

if (isset( $_GET['COLOR'] ) )

$color = $_GET['COLOR'];

require( $color . '.php' );

?>

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.

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

D.

LIMIT

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

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

A.

.

B.

>

C.

,

D.

->

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

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

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

Which of the following is used to persist the content between view scripts and view instances?

A.

Action View Helpers

B.

Placeholder Helper

C.

Initial Helpers

D.

Partial Helper

Which of the following functions is the best choice to retrieve the fingerprint of a string?

A.

md5()

B.

fingerprint()

C.

crypt()

D.

hash()