Learn More Functions Of PHP Language Quiz

10 Questions | Attempts: 238
Share

SettingsSettingsSettings
PHP Quizzes & Trivia

Questions and Answers
  • 1. 
    How would you end a php tag?
    • A. 

      />

    • B. 

      /php?

    • C. 

      ?>

    • D. 

      ?php/>

  • 2. 
    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 ;

  • 3. 
    To start a PHP tag, how would you do that? 
    • A. 

      < php

    • B. 

      < PHP

    • C. 

      < ?PHP

    • D. 

      < ??PHP

    • E. 

      < ?php

  • 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. 
    What is the escape character for carriage return?
    • A. 

      \n

    • B. 

      \t

    • C. 

      \r

    • D. 

      \$

    • E. 

      \\"

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

      True

    • B. 

      False

  • 9. 
    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 "

  • 10. 
    You use arrays in PHP
    • A. 

      True

    • B. 

      False

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.