New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Zend 200-500 Practice Exam with Questions & Answers | Set: 7

Questions 61

What is the output of the following script?

1

2 class a

3 {

4 public $val = 10;

5 }

6

7 function renderVal (a $a)

8 {

9 return $a->$val;

10 }

11

12 renderVal (new a);

13 ?>

Options:
A.

Nothing

B.

NULL

C.

A fatal error

D.

$val

E.

10

Zend 200-500 Premium Access
Questions 62

Is the following code piece E_STRICT compliant?

final class Testing {

var $test = 0;

public function tester() {

return "Tested!";

}}

Options:
A.

Yes

B.

No

Questions 63

Identify the security vulnerability in the following example:

1

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

Questions 64

What is the result of the following code:

class T

{ const A

=

42 + 1;

}

echo T::A;

Options:
A.

42

B.

43

C.

Parse error

Questions 65

What is the output of the following code?

try {

class MyException extends Exception {};

try {

throw new MyException;

}

catch (Exception $e) {

echo "1:";

throw $e;

}c

atch (MyException $e) {

echo "2:";

throw $e;

}}

catch (Exception $e) {

echo get_class($e);

}

Options:
A.

A parser error, try cannot be followd by multiple catch

B.

1:

C.

2:

D.

1:Exception

E.

1:MyException

F.

2:MyException

G.

MyException

Exam Code: 200-500
Certification Provider: Zend
Exam Name: Zend PHP 5 Certification
Last Update: Mar 28, 2025
Questions: 219

Zend Related Exams

Zend Free Exams

Zend Free Exams
Enhance your Zend exam prep with free resources and practice tests from Examstrack. Achieve Zend certification success by exploring Examstrack.