PHP Assessment One

10 Questions | Total Attempts: 896

SettingsSettingsSettings
Please wait...
PHP Quizzes & Trivia

It’s time to put your web development skills to the test and tell us everything you know about PHP – the world-renowned server-side scripting language. Do you have all the functions down? We’ll be the judges of that!


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

      Pre Hypertext Processor

    • B. 

      Post Hypertext Processor

    • C. 

      PHP Hypertext Processor

    • D. 

      Paranoid Hypnotic Peers

  • 2. 
    Which of the following tags do NOT start comments in PHP?
    • A. 

      //

    • B. 

      /*

    • C. 

      /!

  • 3. 
    True or False: PHP is not a good choice for large scale websites?
    • A. 

      True

    • B. 

      False

  • 4. 
    Is this a legal statement in PHP? $_a=500
    • A. 

      Yes.

    • B. 

      No. You cannot start a variable with _a

    • C. 

      No. It is missing a character

    • D. 

      No. You cannot initialize a variable and give it a value in one statement.

  • 5. 
    Which of the following variable declarations is illegal?
    • A. 

      $1a;

    • B. 

      $a1;

    • C. 

      $_1;

    • D. 

      $_a;

  • 6. 
    Which of the following comparison operators is not valid?
    • A. 

      ==

    • B. 

      !!

    • C. 

      !=

    • D. 

      >=

  • 7. 
    All of the following are valid loops except...
    • A. 

      If...not

    • B. 

      If

    • C. 

      If...else

    • D. 

      While

    • E. 

      Do...while

  • 8. 
    True or False: PHP is expensive
    • A. 

      True

    • B. 

      False

  • 9. 
    Which of the following is not a valid reason for using PHP?
    • A. 

      PHP is free

    • B. 

      There are libraries and functions that can be added saving time and effort

    • C. 

      The language is based on the Open Source License

    • D. 

      PHP only runs on the Windows Server Platform

  • 10. 
    True or False: Logic Operators can join Comparison Operators?
    • A. 

      True

    • B. 

      False