Learn More Functions Of PHP Language Quiz

10 Questions | Total Attempts: 164

SettingsSettingsSettings
Please wait...
PHP Quizzes & Trivia

.


Questions and Answers
  • 1. 
    To start a PHP tag, how would you do that? 
    • A. 

      < php

    • B. 

      < PHP

    • C. 

      < ?PHP

    • D. 

      < ??PHP

    • E. 

      < ?php

  • 2. 
    How would you end a php tag?
    • A. 

      />

    • B. 

      /php?

    • C. 

      ?>

    • D. 

      ?php/>

  • 3. 
    What is echo and what do you need to use with echo?
    • A. 

      Echo is a string and you need to use quotes, " ", and a semi-colon , ;

    • B. 

      Echo is a function that outputs a string and uses quotes, " ", and a semi-colon ;

    • C. 

      Echo is variable that makes strings and uses quotes, " ", and a semi-colon ;

    • D. 

      Echo is a line using quotes, " ", and a semi-colon ;

  • 4. 
    When commenting on code so that you know what the code is made for what do you use for PHP?
    • A. 

      < ! -- comment here -- >

    • B. 

      /** comment here */

    • C. 

      // comment here

    • D. 

      /* comment here */

  • 5. 
    PHP variables begin with $
    • A. 

      True

    • B. 

      False

  • 6. 
    What are the super global variables?
    • A. 

      A. $_SERVER , $POST , Get

    • B. 

      $_SERVER , $_POST , $_GET

    • C. 

      $server , $post, $get

    • D. 

      $SERVER ,$POST, $GET

  • 7. 
    You use a quote inside a quote
    • A. 

      True

    • B. 

      False

  • 8. 
    Referring to question 7 How would you do a quote inside a quote? Check all that apply
    • A. 

      " hello ' this ' world "

    • B. 

      ' Bon " Jovi " rules '

    • C. 

      ' Experience ' life ' to the Fullest '

    • D. 

      "Be " Your " Self "

  • 9. 
    What is the escape character for carriage return?
    • A. 

      \n

    • B. 

      \t

    • C. 

      \r

    • D. 

      \$

    • E. 

      \\"

  • 10. 
    You use arrays in PHP
    • A. 

      True

    • B. 

      False