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

Exact2Pass Menu

Zend PHP 5 Certification

Last Update 9 hours ago Total Questions : 219

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

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

Question # 21

What is the output of the following script?

1 < ?php

2 class a

3 {

4 public $val;

5 }

6

7 function renderVal (a $a)

8 {

9 if ($a) {

10 echo $a- > val;

11 }

12 }

13

14 renderVal (null);

15 ? >

A.

A syntax error in the function declaration line

B.

An error, because null is not an instance of ' a '

C.

Nothing, because a null value is being passed to renderVal()

D.

NULL

Question # 22

How many elements does the $matches array contain after the following function call is performed?

preg_match( ' /^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=200[0-9] )/ ' , ' 21st March

2006 ' , $matches);

A.

1

B.

2

C.

3

D.

4

Question # 23

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

Question # 24

You analyze the code of a collegue and see, it uses the function strcasecmp. You try it out to see what it does and use the following function call:

strcasecmp( ' hello my dear! ' , ' Hello my DEAR! ' );

The function call returns " 0 " . What does that mean?

A.

String 1 is less than string 2.

B.

The strings are considered equal.

C.

String 2 is less than string 1.

D.

The strings have equal length.

Question # 25

Which of the listed changes would you make to the following PHP 4 code in order to make it most compliant with PHP 5? (Choose 2)

< ?php

class Car {

var $model;

function Car($model) {

$this- > model = $model;

} function toString() {

return " I drive a $this- > model. " ;

}}

$c = new Car( ' Dodge ' );

echo $c- > toString();

? >

A.

Change var to public or private

B.

Change function Car to function_construct

C.

Change " I drive a $this- > model. " to " I drive a {$this- > model}. "

D.

Change function toString()to static function toString()

Question # 26

When a class is defined as final it:

A.

Can no longer be extended by other classes.

B.

Means methods in the class are not over-loadable.

C.

Cannot be defined as such, final is only applicable to object methods.

D.

Is no longer iteratable.

Question # 27

Which of the following data types cannot be directly manipulated by the client?

A.

Cookie Data

B.

Session Data

C.

Remote IP Address

D.

User Agent

Question # 28

What function is used to retrieve all available information about a symbolic link?

A.

symlink()

B.

stat()

C.

fstat()

D.

lstat()

E.

readlink()

Question # 29

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

< form method= " post " >

< input type= " checkbox " name= " accept " >

< form >

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

Question # 30

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 ? >

A.

bang bong bung

B.

bang bonged bung

C.

big bang bong bung

D.

big bang bung

Go to page: