Jump To Content
laurellion

laurellion’s Tests


PHP Intermediate

A test by Lawrence Badanai.

Test Questions
  1. Question
    What colour cables should you use to connect a server running PHP to your network?
    Answers
    Correct Answer Text
  2. Question
    The regular expression [a-z]{2,3}$ will only match
    Answers
    Correct Answer Text
  3. Question
    By default, variables that you set in your PHP code are retained
    Answers
    Correct Answer Text
  4. Question
    Which of these could be used to maintain a variable from one form to the next?
    Answers
    Correct Answer Text
  5. Question
    Which of these statements is true?
    Answers
    Correct Answer Text
  6. Question
    If you want to change every occurrence of "Mary" to "Maria" in a variable, you would:
    Answers
    Correct Answer Text
  7. Question
    The function used to delete a file is
    Answers
    Correct Answer Text
  8. Question
    To read a file into an array, which function might you use?
    Answers
    Correct Answer Text
  9. Question
    How would you add 1 to the variable $count?
    Answers
    Correct Answer Text
  10. Question
    Which function(s) would you use to read a line of space separated fields, where double quotes and backslashes have been used to protect embedded spaces?
    Answers
    Correct Answer Text
  11. Question
    PHP can be used to generate server side graphics on a web site
    Answers
    Correct Answer Text
  12. Question
    You can set a cookie (if the user is accepting them)
    Answers
    Correct Answer Text
  13. Question
    Are there regular expressions in PHP?
    Answers
    Correct Answer Text
  14. Question
    If you want to break out of a while loop, what statement would you use?
    Answers
    Correct Answer Text

Test Statistics

  • Rating Likes 4 Negative 0

Your Actions