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

PDF 200-550 Study Guide

Page: 7 / 8
Question 28

What will be the result of the following operation?

$a = array_merge([1,2,3] + [4=>1,5,6]);

echo $a[2];

Options:

A.

4

B.

3

C.

2

D.

false

E.

Parse error

Question 29

Which of the following tasks can be achieved by using magic methods? (Choose 3)

Options:

A.

Initializing or uninitializing object data

B.

Creating a new stream wrapper

C.

Creating an iterable object

D.

Processing access to undefined methods or properties

E.

Overloading operators like +, *, etc.

F.

Converting objects to string representation

Question 30

Which of the following rules must every correct XML document adhere to? (Choose 2)

Options:

A.

It has to be well-formed.

B.

It has to be valid.

C.

It has to be associated to a DTD.

D.

It may only contain UTF-8 encoded characters.

Question 31

What is the output of the following code?

class test {

public $value = 0;

function test() {

$this->value = 1;

}

function __construct() {

$this->value = 2;

}

}

$object = new test();

echo $object->value;

Options:

A.

2

B.

1

C.

0

D.

3

E.

No Output, PHP will generate an error message.

Page: 7 / 8
Exam Code: 200-550
Exam Name: Zend Certified PHP Engineer
Last Update: Dec 22, 2024
Questions: 223
200-550 pdf

200-550 PDF

$25.5  $84.99
200-550 Engine

200-550 Testing Engine

$28.5  $94.99
200-550 PDF + Engine

200-550 PDF + Testing Engine

$40.5  $134.99