Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Zend 200-710 - Zend Certified Engineer

Page: 1 / 3
Total 75 questions

What is the output of the following code?

A.

1

B.

2

C.

6

D.

7

What is the output of the following code?

A.

A parser error, try cannot be followed by multiple catch

B.

1:Exception

C.

1:MyExeption

D.

2:MyException

E.

MyException

How should class MyObject be defined for the following code to work properly? Assume $array is an array and MyObject is a user-defined class.

A.

MyObject should extend class Closure

B.

MyObject should implement interface Callable

C.

MyObject should implement method__call

D.

MyObject should implement method__invoke

Which methods can be used to overload object properties? (Choose two.)

A.

set(), get()

B.

__set(), __get()

C.

__put(), __receive(), __exist()

D.

set(), get(), isset()

E.

_isset(), __unset()

Consider the following table data and PHP code. What is the outcome?

Table data (table name “users” with primary key “id”):

PHP code (assume the PDO connection is correctly established):

A.

The INSERT will succeed and the user will see the “Success!” message.

B.

The INSERT will fail because of a primary key violation, and the user will see the “Success!” message.

C.

The INSERT will fail because of a primary key violation, and the user will see a PDO warning message.

D.

The INSERT will fail because of a primary key violation, and the user will see the “Failure!” message.

What is the length of a string returned by: md5(rand(). TRUE);

A.

Depends on the value returned by rand() function

B.

32

C.

24

D.

16

E.

64

After performing the following operations:

What will be the value of $a?

A.

array(‘c’, ’b’, ’a’)

B.

array(2, 1, 0)

C.

array(‘a’, ’b’, ’c’)

D.

None of the above

Which PHP function sets a cookie and URL encodes its value when sending it to the browser?

Which class of HTTP status codes is used for server error conditions?

A.

2XX

B.

3XX

C.

4XX

D.

5XX

Assuming UTF-8 encoding, what is the value of $count?

A.

4

B.

5

C.

7

D.

0