Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Zend 200-500 Practice Exam with Questions & Answers | Set: 6

Questions 51

Can a private static member be accessed from a public static method of the same class?

Options:
A.

Yes

B.

No

C.

Only if the class is defined as an abstract

Zend 200-500 Premium Access
Questions 52

Which of the following parts must a XML document have in order to be well-formed?

Options:
A.

An XML declaration

B.

A root element

C.

A specified encoding

D.

A reference to either a DTD or an XML schema definition

Questions 53

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

Options:
A.

implements ArrayAccess

B.

implements Iterator

C.

implements Iterator and ArrayAccess

D.

None of the above

Questions 54

Which session function can help to avoid session fixation?

Options:
A.

session_is_registered()

B.

session_register()

C.

session_unregister()

D.

session_regenerate_id()

E.

None of the above.

Questions 55

What function is ideal for outputting contents of a static file to screen?

Options:
A.

file_get_contents()

B.

readfile()

C.

fread()

D.

include()

E.

require()

F.

file()

Questions 56

How can XML parsing errors be suppressed in the SimpleXML extension?

Options:
A.

error_reporting(E_ALL^E_NOTICE);

B.

simplexml_disable_errors(TRUE);

C.

simplexml_ignore_errors(TRUE);

D.

libxml_use_internal_errors(TRUE);

E.

simplexml_load_file("file.xml", LIBXML_NOERROR);

Questions 57

Given the following array:

$a = array(28, 15, 77, 43);

Which function will remove the value 28 from $a?

Options:
A.

array_shift()

B.

array_pop()

C.

array_pull()

D.

array_unshift()

Questions 58

What is the name of the method that can be used to provide read access to virtual properties in a class?

Options:
A.

__call()

B.

__get()

C.

__set()

D.

__wakeup()

E.

__fetch()

Questions 59

In the following code, which class can be instantiated?

1

2 abstract class Graphics {

3 abstract function draw($im, $col);

4 }

5

6 abstract class Point1 extends Graphics {

7 public $x, $y;

8 function __construct($x, $y) {

9 $this->x = $x;

10 $this->y = $y;

11 }

12 function draw($im, $col) {

13 ImageSetPixel($im, $this->x, $this->y, $col);

14 }

15 }

16

17 class Point2 extends Point1 { }

18

19 abstract class Point3 extends Point2 { }

20 ?>

Options:
A.

Graphics

B.

Point1

C.

Point2

D.

Point3

E.

None, the code is invalid

Questions 60

How can a PHP extension be loaded? (Choose 2)

Options:
A.

ini_set("extension", "extension.so");

B.

dl("extension.so");

C.

extension_load("extension.so");

D.

extension=extension.so inside php.ini

Exam Code: 200-500
Certification Provider: Zend
Exam Name: Zend PHP 5 Certification
Last Update: Jun 14, 2025
Questions: 219

Zend Related Exams

Zend Free Exams

Zend Free Exams
Enhance your Zend exam prep with free resources and practice tests from Examstrack. Achieve Zend certification success by exploring Examstrack.