PHP Introduction

12 Questions | Attempts: 123
Share

SettingsSettingsSettings
PHP Quizzes & Trivia

A quiz to test the students understanding of PHP syntax and the use of variables


Questions and Answers
  • 1. 

    Which tags can PHP scripts start and end with?

    • A.

      <?php ... ?>

    • B.

      <? ... ?>

    • C.

      < php ... php>

    • D.

      < php> ... </php>

    • E.

      < ... >

    Correct Answer(s)
    A. <?php ... ?>
    B. <? ... ?>
  • 2. 

    What does PHP stand for?

    • A.

      PHP: Hypertext Preprocessor

    • B.

      Personal Home Pages

    • C.

      Personal Hypertext Preprocessor

    • D.

      PHP: Home Pages

    Correct Answer
    A. PHP: Hypertext Preprocessor
  • 3. 

    PHP is a ...

    • A.

      Client-Side Scripting Language

    • B.

      Server-Side Scripting Language

    Correct Answer
    B. Server-Side Scripting Language
  • 4. 

    PHP scripts are executed

    • A.

      On the server

    • B.

      On the users computer

    • C.

      On the browser

    • D.

      In a wide open space

    Correct Answer
    A. On the server
  • 5. 

    What database does PHP support?

    • A.

      MySQL

    • B.

      Informix

    • C.

      Oracle

    • D.

      Sybase

    • E.

      All of the above and more

    Correct Answer
    E. All of the above and more
  • 6. 

    PHP files can contain HTML tags

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 7. 

    Each code line of PHP should end with what?

    • A.

      :

    • B.

      ;

    • C.

      .

    • D.

      ,

    Correct Answer
    B. ;
  • 8. 

    All variables must start with a $ symbol

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 9. 

    PHP variables are strongly typed

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 10. 

    A PHP variable name must start with a letter or an underscore

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 11. 

    What symbol allows you to concatenate two strings together?

    • A.

      $

    • B.

      &

    • C.

      +

    • D.

      .

    Correct Answer
    D. .
  • 12. 

    What string function returns the number of characters in the string?

    • A.

      Strlen()

    • B.

      Strpos()

    • C.

      Chr()

    • D.

      Count_chars()

    Correct Answer
    A. Strlen()

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 09, 2013
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 07, 2009
    Quiz Created by
    Healthyaddiction
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.