214 quizzes found.

What are the primary benefits of object oriented programming?

  1. Maintainability
  2. Execution Speed
  3. Encapsulation
  4. Code Reuse

Choose 3 answers

What consistutes a View in the MVC pattern for PHP 5, in the following list?

  1. Iterators
  2. PDO
  3. Classes
  4. PHP
  5. Smarty

Choose 2 answers

Which of the following extensions are no longer part of PHP 5 and have been moved to PECL?

  1. tidy
  2. mysql
  3. w32api
  4. curl
  5. dio

Choose 2 answers

Which of the following functions were added to PHP 5 for dealing with arrays?

  1. array_intersect_key()
  2. array_unshift()
  3. array_diff_key()
  4. array_merge()
  5. array_slice()

Choose 2 answers

Consider the following script; This code has changed behavior in PHP 5. Identify the output of this script as it would have been in PHP 4, as well as the new behavior in PHP 5.

<?phpfunction func(&$arraykey) { return $arraykey; // function returns by value!}$array = array('a', 'b', 'c');foreach (array_keys($array) as $key) { $y = &func($array[$key]); $z[] =& $y;}var_dump($z);?>
  1. array('a', 'a', 'b')
  2. array('a', 'b', 'c')
  3. array('c', 'b', 'a')
  4. array('c', 'c', 'c')
  5. array('b', 'b', 'b')

Choose 2 answers