Sematec PHP Quiz

13 Questions | Total Attempts: 118

SettingsSettingsSettings
Please wait...
Sematec PHP Quiz

These 13 questions test the most important parts of the lesson. If you get a lower score of 70, you need to study this lesson.


Questions and Answers
  • 1. 
    PHP server scripts are surrounded by which  delimiters ?
    • A. 

    • B. 

    • C. 

      ...

    • D. 

      ...

  • 2. 
    All variables are started by which symbol?
    • A. 

      #

    • B. 

      %

    • C. 

      &

    • D. 

      $

  • 3. 
      Php script can run by command line (CLI)
    • A. 

      True

    • B. 

      False

  • 4. 
    Which symbol ends a php line ?
    • A. 

      :

    • B. 

      ;

    • C. 

      \

    • D. 

      /

  • 5. 
    SESSION variables  stored on ...?
    • A. 

      Server

    • B. 

      Browser buffer

    • C. 

      In network

    • D. 

      Will not be saved

  • 6. 
    How to get POST variabls in form destination code?
    • A. 

      $_FORM

    • B. 

      $_GET

    • C. 

      $_POST

    • D. 

      $FORM.POST

  • 7. 
    Form variables are displayed in brower history when using POST in form method?
    • A. 

      True

    • B. 

      False

  • 8. 
    What is output of code:  <php?  $name = “Sematec” ;     echo ‘$name’ ;  ?>
    • A. 

      Error in output

    • B. 

      Null

    • C. 

      $name

    • D. 

      Sematec

  • 9. 
    Php scripts can run inside   .html files ?
    • A. 

      True

    • B. 

      False

  • 10. 
    Which way is correct to create a function in php?
    • A. 

      Create function getName ()

    • B. 

      Fun getName()

    • C. 

      Function getName()

    • D. 

      Func getName()

  • 11. 
    How to add comment in PHP ?
    • A. 

    • B. 

      *\...\*

    • C. 

      ...

    • D. 

      /*...*/

  • 12. 
    Which variable definiation is wrong?
    • A. 

      $myVar

    • B. 

      $my_Var

    • C. 

      $my-Var

  • 13. 
    Which operator is used to check for compare type and value for 2 variable?
    • A. 

      ==

    • B. 

      ===

    • C. 

      =

    • D. 

      !=