Labour Day Special - 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: c4sdisc65

200-550 PDF

$38.5

$109.99

3 Months Free Update

  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions

200-550 PDF + Testing Engine

$61.6

$175.99

3 Months Free Update

  • Exam Name: Zend Certified PHP Engineer
  • Last Update: May 7, 2024
  • Questions and Answers: 223
  • Free Real Questions Demo
  • Recommended by Industry Experts
  • Best Economical Package
  • Immediate Access

200-550 Engine

$46.2

$131.99

3 Months Free Update

  • Best Testing Engine
  • One Click installation
  • Recommended by Teachers
  • Easy to use
  • 3 Modes of Learning
  • State of Art Technology
  • 100% Real Questions included

200-550 Practice Exam Questions with Answers Zend Certified PHP Engineer Certification

Question # 6

Which of the following statements about exceptions is correct? (Choose 2)

A.

you can only throw classes derived from Exception

B.

a try block can have multiple catch blocks

C.

a try block must not be followed by a catch block

D.

try blocks cannot contain nested try blocks

Full Access
Question # 7

Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?

A.

TRUE

B.

FALSE

C.

ENT_QUOTES

D.

ENT_NOQUOTES

E.

ENT_COMPAT

Full Access
Question # 8

What is the output of this code?

$world = 'world';

echo <<<'TEXT'

hello $world

TEXT;

A.

hello world

B.

hello $world

C.

PHP Parser error

Full Access
Question # 9

The following form is loaded in a browser and submitted, with the checkbox activated:

In the server-side PHP code to deal with the form data, what is the value of $_POST['accept'] ?

A.

accept

B.

ok

C.

true

D.

on

Full Access
Question # 10

What is the output of the following code?

function increment ($val)

{

$_GET['m'] = (int) $_GET['m'] + 1;

}

$_GET['m'] = 1;

echo $_GET['m'];

Full Access
Question # 11

What is the output of the following code?

function fibonacci (&$x1 = 0, &$x2 = 1)

{

$result = $x1 + $x2;

$x1 = $x2;

$x2 = $result;

return $result;

}

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

echo fibonacci() . ',';

}

A.

An error

B.

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

C.

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

D.

Nothing

Full Access
Question # 12

Which of the following statements are FALSE?

A.

SimpleXML allows removal of attributes.

B.

SimpleXML allows addition of new attributes.

C.

SimpleXML allows removal of nodes.

D.

SimpleXML allows addition of new nodes.

E.

None of the above

Full Access
Question # 13

Which interfaces could class C implement in order to allow each statement in the following code to work? (Choose 2)

$obj = new C();

foreach ($obj as $x => $y) {

echo $x, $y;

}

A.

Iterator

B.

ArrayAccess

C.

IteratorAggregate

D.

ArrayObject

Full Access
Question # 14

Your application uses PHP to accept and process file uploads. It fails to upload a file that is 5 MB in size, although upload_max_filesize is set to "10M". Which of the following configurations could be responsible for this outcome? (Choose 2)

A.

The PHP configuration option post_max_size is set to a value that is too small

B.

The web server is using an incorrect encoding as part of the HTTP response sent to the client

C.

The browser uses an incorrect encoding as part of the HTTP request sent to the server

D.

The hidden form field MAX_FILE_SIZE was set to a value that is too small

E.

PHP cannot process file uploads larger than 4 MB

Full Access
Question # 15

Which of the following code snippets DO NOT write the exact content of the file "source.txt" to "target.txt"? (Choose 2)

A.

file_put_contents("target.txt", fopen("source.txt", "r"));

B.

file_put_contents("target.txt", readfile("source.txt"));

C.

file_put_contents("target.txt", join(file("source.txt"), "\n"));

D.

file_put_contents("target.txt", file_get_contents("source.txt"));

E.

$handle = fopen("target.txt", "w+"); fwrite($handle, file_get_contents("source.txt")); fclose($handle);

Full Access
Question # 16

What is the output of the following code?

$a = 'a'; $b = 'b';

echo isset($c) ? $a.$b.$c : ($c = 'c').'d';

A.

abc

B.

cd

C.

0d

Full Access
Question # 17

Consider the following XML code:

PHP 5.5 in 42 Hours

Learning PHP 5.5 The Hard Way

Which of the following SimpleXML calls prints the name of the second book?

(Let $xml = simplexml_load_file("books.xml"); .) (Choose 2)

A.

echo $xml->books->book[2];

B.

echo $xml->books->book[1];

C.

echo $xml->book[1];

D.

echo $xml->xpath("/books/book[@id=2]");

E.

$c = $xml->children(); echo $c[1];

Full Access
Question # 18

Consider the following code. Which keyword should be used in the line marked with "KEYWORD" instead of "self" to make this code work as intended?

abstract class Base {

protected function __construct() {

}

public static function create() {

return new self(); // KEYWORD

}

abstract function action();

}

class Item extends Base {

public function action() { echo __CLASS__; }

}

$item = Item::create();

$item->action(); // outputs "Item"

Full Access
Question # 19

What function can reverse the order of values in an array so that keys are preserved?

A.

array_flip()

B.

array_reverse()

C.

rsort()

D.

krsort()

E.

array_multisort()

Full Access
Question # 20

Which of these databases is NOT supported by a PDO driver?

A.

Microsoft SQL Server

B.

SQLite

C.

Microsoft Access

D.

Berkeley DB

Full Access
Question # 21

Given the following code, how can we use both traits A and B in the same class? (select all that apply)

trait A {

public function hello() {

return "hello";

}

public function world() {

return "world";

}

}

trait B {

public function hello() {

return "Hello";

}

public function person($name) {

return ":$name";

}

}

A.

Rename the A::hello() method to a different name using A::hello as helloA;

B.

Use B::hello() instead of A 's version using B::hello insteadof A

C.

Use B::hello() instead of A 's version using use B::hello

D.

Rename the A::hello() method to a different name using A::hello renameto helloA;

E.

None of the above (both can be used directly)

Full Access
Question # 22

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

A.

set(), get()

B.

__set(), __get()

C.

__put(), __receive(), __exists()

D.

set(), get(), isset()

E.

__isset(), __unset()

Full Access
Question # 23

What is the pattern modifier for handling UTF-8 encoded preg_* functionality?

A.

e

B.

u

C.

PHP does not support UTF-8 encoded strings

D.

A pattern modifier is not needed

Full Access
Question # 24

What will the following code piece print?

echo strtr('Apples and bananas', 'ae', 'ea')

A.

Applas end benenes

B.

Epplas end benenes

C.

Apples and bananas

D.

Applas end bananas

Full Access
Question # 25

What is the method used to execute XPath queries in the SimpleXML extension?

A.

xpathQuery()

B.

xpath()

C.

simpleXMLXpath()

D.

query()

E.

evaluate()

Full Access
Question # 26

Please provide the name of the super-global variable where all the information about cookies is available.

Full Access
Question # 27

What is the output of the following code?

class Bar {

private $a = 'b';

public $c = 'd';

}

$x = (array) new Bar();

echo array_key_exists('a', $x) ? 'true' : 'false';

echo '-';

echo array_key_exists('c', $x) ? 'true' : 'false';

A.

false-false

B.

false-true

C.

true-false

D.

true-true

Full Access
Question # 28

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

Full Access
Question # 29

Your public web application needs to provide access to binary files for registered users only. How would you achieve this?

A.

Host the files on a public external file sharing service.

B.

Redirect to the file which resides in the server's document root

C.

Use PHP to send the file to the client, using the header() function to set appropriate HTTP headers

D.

PHP is used for service HTML content, not binary content

Full Access
Question # 30

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

A.

TRUE

B.

FALSE

Full Access
Question # 31

What is the output of the following code?

function increment ($val)

{

$val = $val + 1;

}

$val = 1;

increment ($val);

echo $val;

Full Access
Question # 32

Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?

A.

$_GET['ALL']

B.

$_SERVER['QUERY']

C.

$_SERVER['QUERY_STRING']

D.

$_ENV['QUERY']

E.

$QUERY_STRING

Full Access
Question # 33

Which of these statements about PDO is NOT true?

A.

PDO has built-in support for Large Objects (LOBs).

B.

Placeholders within PDO prepared statements need to be named.

C.

When something goes wrong, PDO can throw an instance of its own exception class.

D.

PDO does not emulate missing database features.

Full Access