200-500 Zend PHP 5 Certification

Loading demo links...

Showing 4–6 of 15 questions

Question 4 (Volume B)

Which of the following statements about exceptions are correct? (Choose 2)

Select all that apply, then click Submit answer.

  • you can only throw classes derived from Exception

  • a try block can have multiple catch blocks

  • a try block must not be followed by a catch block

  • try blocks cannot contain nested try blocks


Question 5 (Volume B)

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

Select all that apply, then click Submit answer.

  • Use the get_magic_quotes() function.

  • Using the get_magic_quotes_runtime() function.

  • Use the get_magic_quotes_gpc() function.

  • Using ini_get('magic_quotes_gpc').

  • Using ini_get('magic_quotes').


Question 6 (Volume D)

Which function can help prevent cross-site scripting? (Choose 2)

Select all that apply, then click Submit answer.

  • addslashes()

  • htmlentities()

  • htmlspecialchars()

  • strip_tags()

  • quotemeta()