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

Zend 200-550 - Zend Certified PHP Engineer

Page: 2 / 7
Total 223 questions

What is the return value of the following code: substr_compare("foobar", "bar", 3);

A.

-1

B.

1

C.

TRUE

D.

0

E.

FALSE

Which function can NOT help prevent cross-site scripting? (Choose 2)

A.

addslashes()

B.

htmlentities()

C.

htmlspecialchars()

D.

strip_tags()

E.

quotemeta()

You want to parse a URL into its single parts. Which function do you choose?

A.

parse_url()

B.

url_parse()

C.

get_url_parts()

D.

geturlparts()

The constructs for(), foreach(), and each() can all be used to iterate an object if the object...

A.

implements ArrayAccess

B.

implements Iterator

C.

implements Iterator and ArrayAccess

D.

None of the above

What will be the result of the following operation?

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

echo $a[2];

A.

4

B.

3

C.

2

D.

false

E.

Parse error

Which of the following statements is NOT true?

A.

Class constants are public

B.

Class constants are being inherited

C.

Class constants can omit initialization (default to NULL)

D.

Class constants can be initialized by const

Which of the following functions are used to escape data within the context of HTML? (Choose 2)

A.

htmlentities()

B.

addslashes()

C.

stripslashes()

D.

strip_tags()

E.

htmlspecialchars()

When a class is defined as final it:

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.

Cannot be instantiated.

What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?

How can you determine whether a PHP script has already sent cookies to the client?

A.

Use $_COOKIE

B.

Use the getcookie() function

C.

Use the headers_sent() function

D.

Use JavaScript to send a second HTTP request