14 quizzes found.

Which of the following tags are an acceptable way to begin a PHP Code block?

  1. <SCRIPT LANGUAGE="php">
  2. <!
  3. <%
  4. <?php
  5. <?

Choose 4 answers

Which of the following are valid PHP variables?

  1. @$foo
  2. &$variable
  3. ${0x0}
  4. $variable
  5. $0x0

Choose 4 answers

PHP variables cannot start with a number

What is the output of the following?

<?phpfunction byRef(&$apples){ $apples++;}$oranges = 5;$apples = 5;byRef($oranges);echo "I have $apples apples and $oranges oranges";?>
  1. I have 6 apples and 6 oranges
  2. I have 6 apples and 5 oranges
  3. I have 5 apples and 6 oranges
  4. I have 5 apples and 5 oranges

Choose 1 answers

What is the output of the following?

<?phpfunction a($number){ return (b($number) * $number);}function b(&$number){ ++$number;}echo a(5);?>
  1. 0
  2. 36
  3. 6
  4. 30
  5. 5

Choose 1 answers

Choose the selection that best matches the following statements:

PHP is a _____ scripting language based on the ____ engine. It is primarily used todevelop dynamic _____ content, although it can be used to generate ____ documents(among others) as well.
  1. Dynamic, PHP, Database, HTML
  2. Embedded, Zend, HTML, XML
  3. Perl-based, PHP, Web, Static
  4. Embedded, Zend, Docbook, MySQL
  5. Zend-based, PHP, Image, HTML

Choose 1 answers