Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Zend Certified PHP Engineer

Last Update 7 hours ago Total Questions : 223

The Zend Certified PHP Engineer content is now fully updated, with all current exam questions added 7 hours ago. Deciding to include 200-550 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our 200-550 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these 200-550 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Zend Certified PHP Engineer practice test comfortably within the allotted time.

Question # 31

How many elements does the array $matches from the following code contain?

$str = "The cat sat on the roof of their house.";

$matches = preg_split("/(the)/i", $str, -1, PREG_SPLIT_DELIM_CAPTURE);

A.

2

B.

3

C.

4

D.

7

E.

9

Question # 32

Which of the following statements is correct?

A.

Interfaces can extend only one interface

B.

Interfaces can extend more than one interface

C.

Interfaces can inherit a method from different interfaces

D.

Interfaces can redeclare inherited methods

Question # 33

When using password_hash() with the PASSWORD_DEFAULT algorithm constant, which of the following is true? (Choose 2)

A.

The algorithm that is used for hashing passwords can change when PHP is upgraded.

B.

The salt option should always be set to a longer value to account for future algorithm requirements.

C.

The string length of the returned hash can change over time.

D.

The hash algorithm that's used will always be compatible with crypt() .

Question # 34

What is the output of the following code?

function increment ( & $val)

{

return $val + 1;

}

$a = 1;

echo increment ($a);

echo increment ($a);

Question # 35

Consider the following code. What can be said about the call to file_get_contents?

$getdata = "foo=bar";

$opts = array('http' = >

array(

'method' = > 'POST',

'header' = > 'Content-type: application/x-www-form-urlencoded',

'content' = > $getdata

)

);

$context = stream_context_create($opts);

$result = file_get_contents('http://example.com/submit.php', false, $context);

A.

A GET request will be performed on http://example.com/submit.php

B.

A POST request will be performed on http://example.com/submit.php

C.

An error will be displayed

Question # 36

Which of the following statements about anonymous functions in PHP are NOT true? (Choose 2)

A.

Anonymous functions can be bound to objects

B.

Anonymous functions created within object context are always bound to that object

C.

Assigning closure to a property of an object binds it to that object

D.

Methods bind() and bindTo() of the Closure object provide means to create closures with different binding and scope

E.

Binding defines the value of $this and the scope for a closure

Question # 37

When a browser requests an image identified by an img tag, it never sends a Cookie header.

A.

TRUE

B.

FALSE

Question # 38

Late static binding is used in PHP to:

A.

Load dynamic libraries and extensions at runtime

B.

Use caller class information provided in static method call

C.

Resolve undefined class names by automatically including needed files

D.

Find proper method to call according to the call arguments

Question # 39

Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose 2)

A.

md5()

B.

hash_pbkdf2()

C.

password_hash()

D.

crypt()

E.

openssl_digest()

Question # 40

What is the output of this code?

$world = 'world';

echo < < < 'TEXT'

hello $world

TEXT;

A.

hello world

B.

hello $world

C.

PHP Parser error

Go to page: