Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

Zend-Technologies Zend PHP 5 Certification (200-500) Free Practice Test

Question 1
Which of the following will set a 10 seconds read timeout for a stream?

Correct Answer: D
Question 2
What is the best way to run PHP 4 and PHP 5 side-by-side on the same Apache server?

Correct Answer: B
Question 3
What function should be used to escape command line arguments that are passed to commands executed from PHP?

Correct Answer: A
Question 4
What is the output of the following code?
try {
class MyException extends Exception {};
try {
throw new MyException;
}
catch (Exception $e) {
echo "1:";
throw $e;
}c
atch (MyException $e) {
echo "2:";
throw $e;
}}
catch (Exception $e) {
echo get_class($e);
}

Correct Answer: C
Question 5
Transactions are used to:

Correct Answer: E
Question 6
What function returns the filename component of the file's path:

Correct Answer: C
Question 7
What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';

Correct Answer: D
Question 8
Is the following code piece E_STRICT compliant?
final class Testing {
var $test = 0;
public function tester() {
return "Tested!";
}}

Correct Answer: A
Question 9
Which parts of the text are matched in the following regular expression?
1 <?php
2 $text = <<<EOT
3 The big bang bonged under the bung.
4 EOT;
5
6 preg_match_all('@b.n?g@', $text, $matches);
7 ?>

Correct Answer: C
Question 10
What is the output of the following code?
< code>
class test {
public $value = 0;
function test() {
$this->value = 1;
} function __construct() {
$ this->value = 2;
}}
$object = new test();
echo $object->value;

Correct Answer: E
Question 11
Which requirements need NOT be met so that file uploads work?

Correct Answer: B
Question 12
What method can be used to find a tag with the name "foo" via the DOM extension?

Correct Answer: A
Question 13
What tags can always be used to begin a PHP script (Choose 2)?

Correct Answer: A,C