PHP Basic Knowledge Quiz

10 Questions | Total Attempts: 982

SettingsSettingsSettings
Please wait...
PHP Quizzes & Trivia

When getting into web development, the first glance at PHP and all that comes with it can be a daunting task. Once you learn the basics, however, things become easier. Let’s see how much you know thus far!


Questions and Answers
  • 1. 
    What does PHP stand for?
    • A. 

      Personal Hypertext Processor

    • B. 

      Personal Home Page

    • C. 

      PHP: Hypertext Preprocessor

    • D. 

      Private Home Page

  • 2. 
    • A. 

    • B. 

      ...

    • C. 

      ...

    • D. 

  • 3. 
    How do you write "Hello World" in PHP
    • A. 

      Echo "Hello World";

    • B. 

      Document.Write("Hello World");

    • C. 

      "Hello World";

  • 4. 
    All variables in PHP start with which symbol?
    • A. 

      !

    • B. 

      &

    • C. 

      $

    • D. 

      Var

  • 5. 
    What is the correct way to end a PHP statement?
    • A. 

      New line

    • B. 

    • C. 

      ;

    • D. 

      .

  • 6. 
    How do you make an array of values?
    • A. 

      $arr[] = new Array('value1', 'value2');

    • B. 

      $arr = new ['value1', 'value2'];

    • C. 

      $arr = array('value1', 'value2');

  • 7. 
    How do you get information from a form that is submitted using the "get" method?
    • A. 

      $_GET[];

    • B. 

      Request.QueryString;

    • C. 

      Request.Form;

  • 8. 
    When using the POST method, variables are displayed in the URL:
    • A. 

      True

    • B. 

      False

  • 9. 
    In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
    • A. 

      True

    • B. 

      False

  • 10. 
    What does this statement print out?print count("123");
    • A. 

      3

    • B. 

      FALSE

    • C. 

      NULL

    • D. 

      6

    • E. 

      1