Exam Code: 200-550 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Zend Certified PHP Engineer
Certification Provider: Zend Technologies
Free Today! Guaranteed Training- Pass 200-550 Exam.

2021 Oct 200-550 free practice questions

Q81. Which of the following is NOT a valid function declaration?

A. function x ($x1 = array())

B. function x (A $x1)

C. function x (A $x1 = null)

D. function x ($x1 = $x2)

Answer: D


Q82. You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this? (Choose 2)

A. Set enable_dl to Off in the server's php.ini configuration file.

B. Add dl to the current value of disable_functions in the server's php.ini configuration file.

C. Add dl to the current value of disable_classes in the server's php.ini configuration file.

D. Write a custom function called dl() , save it under the name prepend.inc and then set the auto_prepend_file directive to prepend.inc in php.ini.

Answer: A,B


Q83. What information can be used to reliably determine the type of an uploaded file?

A. MIME type

B. File name extension

C. Contents of the file

Answer: C


Q84. What is the name of the PHP function used to automatically load non-yet defined classes?

A. autoload()

B. autoload()

C. catch()

D. load()

E. loadClass()

Answer: B


Q85. 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

Answer: B


Far out 200-550 practice exam:

Q86. What is the output of the following code?

function ratio ($x1 = 10, $x2)

{

if (isset ($x2)) { return $x2 / $x1;

}

}

echo ratio (0);

A. 0

B. An integer overflow error

C. A warning, because $x1 is not set

D. A warning, because $x2 is not set

E. A floating-point overflow error

F. Nothing

Answer: D


Q87. Given the following code, what is correct? function f(stdClass &$x = NULL) { $x = 42; }

$z = new stdClass; f($z); var_dump($z);

A. Error: Typehints cannot be NULL

B. Error: Typehints cannot be references

C. Result is NULL

D. Result is object of type stdClass

E. Result is 42

Answer: E


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

A. TRUE

B. FALSE

Answer: B


Q89. What is the output of the following code?

class Base {

protected static function whoami() { echo "Base ";

}

public static function whoareyou() { static::whoami();

}

}

class A extends Base { public static function test() { Base::whoareyou();

self::whoareyou(); parent::whoareyou();

A. :whoareyou(); static::whoareyou();

}

public static function whoami() { echo "A ";

}

}

class B extends A {

public static function whoami() { echo "B ";

}

}

B. :test();

C. B B B B B

D. Base A Base A B

E. Base B B A B

F. Base B A A B

Answer: C


Q90. Which of the following are valid identifiers? (Choose 3)

A. function 4You() { }

B. function _4You() { }

C. function object() { }

D. $1 = "Hello";

E. $_1 = "Hello World";

Answer: B,C,E