Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

200-500 Exam Dumps - Zend PHP 5 Certification

Go to page:
Question # 9

What is the output of the following code?

$first = "second";

$second = "first";

echo $$$first;

A.

first

B.

second

C.

an empty string

D.

an error

Full Access
Question # 10

Which piece of code will return the ASCII value of a character?

A.

(int)'t';

B.

ord('t');

C.

to_ascii('t');

D.

chr('t');

Full Access
Question # 11

An HTML form contains this form element:

When this form is submitted, the following PHP code gets executed:

1

2 move_uploaded_file(

3 $_FILES['myFile']['tmp_name'],

4 'uploads/' . $_FILES['myFile']['name']);

5 ?>

Which of the following actions must be taken before this code may go into production?

(Choose 2)

A.

Check with is_uploaded_file() whether the uploaded file $_FILES['myFile']['tmp_name'] is valid

B.

Sanitize the file name in $_FILES['myFile']['name'] because this value is not consistent among web browsers

C.

Check the charset encoding of the HTTP request to see whether it matches the encoding of the uploaded file

D.

Sanitize the file name in $_FILES['myFile']['name'] because this value could be forged

E.

Use $HTTP_POST_FILES instead of $_FILES to maintain upwards compatibility

Full Access
Question # 12

What is the output of the following script?

1

2 function fibonacci ($x1, $x2)

3 {

4 return $x1 + $x2;

5 }

6

7 $x1 = 0;

8 $x2 = 1;

9

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

11 echo fibonacci($x1, $x2) . ',';

12 }

13 ?>

A.

1,2,3,4,5,6,7,8,9

B.

1,2,3,4,5,6,7,8,9,10,

C.

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

D.

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

Full Access
Question # 13

What will be the result of the following operation?

array_combine(array("A","B","C"), array(1,2,3));

A.

array("A","B",C",1,2,3)

B.

array(1,2,3,"A","B",C")

C.

array("A"=>1,"B"=>2,"C"=>3)

D.

array(1=>"A",2=>"B",3=>"C")

E.

array(1,2,3)

Full Access
Question # 14

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.

Full Access
Question # 15

An object can be counted with count() and sizeof() if it

A.

implements ArrayAccess

B.

has a public __count() method

C.

was cast to an object from an array

D.

None of the above

Full Access
Question # 16

What will the following function call print?

printf('%010.6f', 22);

A.

22

B.

22.00

C.

022.000000

D.

22.000000

Full Access
Go to page: