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

200-530 Exam Dumps - Zend Certification Questions and Answers

Question # 4

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

Buy Now
Question # 5

Given the following two functions, what statement is correct?

function dynamicNew($name) {

return new $name;

}

function reflectionNew($name) {

$r = new ReflectionClass($name);

return $r->newInstanceArgs();

}

Options:

A.

Both functions do the same

B.

dynamicNew() results in a parse error, reflectionNew() works

Buy Now
Question # 6

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.

Buy Now
Question # 7

What is the output of the following script?

1

2 function fibonacci ($x1, $x2)

3 {

4 return $x1 + $x2;

5 }

6

7 $x1 = 0;

8 $x2 = 1;

9

10 for ($i = 0; $i < 10; $i++) {

11 echo fibonacci($x1, $x2) . ',';

12 }

13 ?>

Options:

A.

1,2,3,4,5,6,7,8,9

B.

1,2,3,4,5,6,7,8,9,10,

C.

1,2,3,5,8,13,21,34,55,89,

D.

1,1,1,1,1,1,1,1,1,1,

Buy Now
Question # 8

What is the output of the following code?

Options:

Buy Now
Question # 9

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

Buy Now
Question # 10

How many array elements will be found in the return value of:

split(".", "

Options:

A.

B.C")

B.

2

C.

3

D.

1

E.

6

F.

4

Buy Now
Question # 11

Which requirements need NOT be met so that file uploads work?

Options:

A.

The PHP directive file_uploads must be set to on

B.

The form's method attribute must be set to "post"

C.

Sate mode must be turned off so that the uploaded file an be written to the server

D.

The form's enctype attribute must be set to "multipart/form-data"

Buy Now
Question # 12

Which of the following are valid identifiers (Choose 3)

Options:

A.

function 4You() { }

B.

function _4You() { }

C.

function object() { }

D.

$1 = "Hello";

E.

$_1 = "Hello World";

Buy Now
Question # 13

What object method specifies post-serialization behavior for an object?

Options:

A.

__sleep()

B.

__wakeup()

C.

__set_state()

D.

__get()

E.

__autoload()

Buy Now
Exam Code: 200-530
Exam Name: Zend PHP 5.3 Certification
Last Update: Feb 23, 2025
Questions: 254
200-530 pdf

200-530 PDF

$25.5  $84.99
200-530 Engine

200-530 Testing Engine

$28.5  $94.99
200-530 PDF + Engine

200-530 PDF + Testing Engine

$40.5  $134.99