4 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

What is the difference between the include and require language constructs?

  1. Require constructs can't be used with URL filenames
  2. Include constructs cause a fatal error if the file doesn't exist
  3. There is no difference other than the name
  4. Include constructs are processed at run time; require constructs are processed at compile time
  5. Require constructs cause a fatal error if the file can't be read

Choose 1 answers

In PHP5 objects are passed by reference to a function when (Select the answer that is the most correct):

  1. Always; objects are passed by reference in PHP5
  2. When the calling code preceeds the variable name with a &
  3. Never; objects are cloned when passed to a function
  4. When the function paramater listing preceeds the variable name with a &

Choose 1 answers

What is the difference between print() and echo()?

  1. print() can be used as part of an expression, while echo() can’t
  2. echo() can be used as part of an expression, while print() can’t
  3. echo() can be used in the CLI version of PHP, while print() can’t
  4. print() can be used in the CLI version of PHP, while echo() can’t
  5. There’s no difference: both functions print out some text!

Choose 1 answers