Sematec PHP Quiz

13 Questions | Attempts: 185
Share

SettingsSettingsSettings
Sematec PHP Quiz - 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.

      ...

    Correct Answer
    A.
  • 2. 

    All variables are started by which symbol?

    • A.

      #

    • B.

      %

    • C.

      &

    • D.

      $

    Correct Answer
    D. $
  • 3. 

      Php script can run by command line (CLI)

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 4. 

    Which symbol ends a php line ?

    • A.

      :

    • B.

      ;

    • C.

      \

    • D.

      /

    Correct Answer
    B. ;
  • 5. 

    SESSION variables  stored on ...?

    • A.

      Server

    • B.

      Browser buffer

    • C.

      In network

    • D.

      Will not be saved

    Correct Answer
    A. Server
  • 6. 

    How to get POST variabls in form destination code?

    • A.

      $_FORM

    • B.

      $_GET

    • C.

      $_POST

    • D.

      $FORM.POST

    Correct Answer
    C. $_POST
  • 7. 

    Form variables are displayed in brower history when using POST in form method?

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 8. 

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

    • A.

      Error in output

    • B.

      Null

    • C.

      $name

    • D.

      Sematec

    Correct Answer
    C. $name
  • 9. 

    Php scripts can run inside   .html files ?

    • A.

      True

    • B.

      False

    Correct Answer
    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()

    Correct Answer
    C. Function getName()
  • 11. 

    How to add comment in PHP ?

    • A.

    • B.

      *\...\*

    • C.

      ...

    • D.

      /*...*/

    Correct Answer
    D. /*...*/
  • 12. 

    Which variable definiation is wrong?

    • A.

      $myVar

    • B.

      $my_Var

    • C.

      $my-Var

    Correct Answer
    C. $my-Var
  • 13. 

    Which operator is used to check for compare type and value for 2 variable?

    • A.

      ==

    • B.

      ===

    • C.

      =

    • D.

      !=

    Correct Answer
    B. ===

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 02, 2018
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 27, 2017
    Quiz Created by
    Asgari.sematec
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.