Weekend Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Zend 200-500 Exam Made Easy: Step-by-Step Preparation Guide

Questions 11

When a class is defined as final it:

Options:
A.

Can no longer be extended by other classes.

B.

Means methods in the class are not over-loadable.

C.

Cannot be defined as such, final is only applicable to object methods.

D.

Is no longer iteratable.

Zend 200-500 Premium Access
Questions 12

Type hinting in PHP allows the identification of the following variable types: (Choose 2)

Options:
A.

String

B.

Integer

C.

Array

D.

Any class or interface type

Questions 13

Given the following code, what will be the value of $a?

$a = array('a', 'b');

array_push($a, array(1, 2));

Options:
A.

array('a', 'b', 1, 2)

B.

array(1, 2, 'a', 'b')

C.

array(array(1, 2), 'a', 'b')

D.

None of the above

Questions 14

Which of the listed changes would you make to the following PHP 4 code in order to make it most compliant with PHP 5? (Choose 2)

class Car {

var $model;

function Car($model) {

$this->model = $model;

} function toString() {

return "I drive a $this->model.";

}}

$c = new Car('Dodge');

echo $c->toString();

?>

Options:
A.

Change var to public or private

B.

Change function Car to function_construct

C.

Change "I drive a $this->model." to "I drive a {$this->model}."

D.

Change function toString()to static function toString()

Questions 15

Which of the following data types cannot be directly manipulated by the client?

Options:
A.

Cookie Data

B.

Session Data

C.

Remote IP Address

D.

User Agent

Questions 16

What is the return value of the following code?

strpos("me myself and I", "m", 2)

Options:
A.

2

B.

3

C.

4

D.

0

E.

1

Questions 17

What is the output of the following code?

echo 0x33, ' monkeys sit on ', 011, ' trees.';

Options:
A.

33 monkeys sit on 11 trees.

B.

51 monkeys sit on 9 trees.

C.

monkeys sit on trees.

D.

0x33 monkeys sit on 011 trees.

Questions 18

What is the output of the following code: echo "1" + 2 * "0x02";

Options:
A.

1

B.

3

C.

5

D.

20

E.

7

Questions 19

What method can be used to find a tag with the name "foo" via the DOM extension?

Options:
A.

getElementById()

B.

getElementsByTagName()

C.

getElementsByTagNameNS()

D.

getElementByName()

E.

findTag()

Questions 20

How can the line on which HTTP headers were sent inside a script be determined?

Options:
A.

Using the headers_sent() function.

B.

Using the output_start() function.

C.

Using the ob_start() function.

D.

Cannot be determined

Exam Code: 200-500
Certification Provider: Zend
Exam Name: Zend PHP 5 Certification
Last Update: Jan 15, 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.