Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Changed 200-500 Exam Questions

Page: 3 / 8
Total 219 questions

Zend PHP 5 Certification Questions and Answers

Question 9

How can you determine if magic_quotes_gpc is enabled? (Choose 2)

Options:

A.

Use the get_magic_quotes() function.

B.

Using the get_magic_quotes_runtime() function.

C.

Use the get_magic_quotes_gpc() function.

D.

Using ini_get('magic_quotes_gpc').

E.

Using ini_get('magic_quotes').

Question 10

What is the output of the following code?

1

2 for ($i = 0; $i < 1.02; $i += 0.17) {

3 $a[$i] = $i;

4 }

5 echo count($a);

6 ?>

Options:

A.

0

B.

1

C.

2

D.

6

E.

7

Question 11

Which of the following did not result in an output error in PHP 4 but does in PHP 5?

Options:

A.

Using 'var' as an access modifier.

B.

Assigning a new object instance to $this in a constructor.

C.

Passing an object by-reference.

D.

Passing an object by-value.

Question 12

Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?

Options:

A.

$_GET['ALL']

B.

$_SERVER['QUERY']

C.

$_SERVER['QUERY_STRING']

D.

$_ENV['QUERY']

E.

$QUERY_STRING

Page: 3 / 8
Total 219 questions