Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the Zend Zend Certification 200-500 Questions and answers with CertsForce

Viewing page 7 out of 7 pages
Viewing questions 61-70 out of questions
Questions # 61:

Identify the security vulnerability in the following example:

1 <?php

2 mail('feedback@example.org',

3 'Feddback',

4 'Here is my feedback.',

5 "From: {$_COOKIE['email']}");

6 ?>

Options:

A.

Remote Code Injection


B.

Cross-Site Request Forgeries


C.

Email Injection


D.

None of the above


Expert Solution
Questions # 62:

When comparing prepared statements and regular, application-constructed SQL statements, which of the following is true?

Options:

A.

Prepared statements are faster


B.

Prepared statements are always shorter


C.

Prepared statements are more secure


D.

Prepared statements are easier to develop


E.

None of the above


Expert Solution
Questions # 63:

What will be the output of the following code?

$a = array(0, 1, 2 => array(3, 4));

$a[3] = array(4, 5);

echo count($a, 1);

Options:

A.

4


B.

5


C.

8


D.

None of the above


Expert Solution
Questions # 64:

Under which circumstances is the $_SESSION super-global available? (Choose 2)

Options:

A.

If session_start() was called.


B.

If session.auto_start INI setting is enabled.


C.

Always available in PHP 5.


D.

If a valid session id is passed via GET, POST or COOKIE.


E.

If register_globals are enabled.


Expert Solution
Questions # 65:

What is the output of the folowing code?

1 <?php

2 echo '1' . (print '2') + 3;

3 ?>

Options:

A.

123


B.

213


C.

142


D.

214


E.

Syntax error


Expert Solution
Viewing page 7 out of 7 pages
Viewing questions 61-70 out of questions