Sematec PHP Quiz

13 Questions | Attempts: 185
Share
SettingsSettings
Please wait...
  • 1/13 Questions

    Which symbol ends a php line ?

    • :
    • ;
    • \
    • /
Please wait...
About This 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.

Sematec PHP Quiz - Quiz

Quiz Preview

  • 2. 

    Which way is correct to create a function in php?

    • Create function getName ()

    • Fun getName()

    • Function getName()

    • Func getName()

    Correct Answer
    A. Function getName()
  • 3. 

    How to add comment in pHP ?

    • *\...\*

    • ...

    • /*...*/

    Correct Answer
    A. /*...*/
  • 4. 

    How to get POST variabls in form destination code?

    • $_FORM

    • $_GET

    • $_POST

    • $FORM.POST

    Correct Answer
    A. $_POST
  • 5. 

    All variables are started by which symbol?

    • #

    • %

    • &

    • $

    Correct Answer
    A. $
  • 6. 

    Which variable definiation is wrong?

    • $myVar

    • $my_Var

    • $my-Var

    Correct Answer
    A. $my-Var
  • 7. 

      Php script can run by command line (CLI)

    • True

    • False

    Correct Answer
    A. True
  • 8. 

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

    • True

    • False

    Correct Answer
    A. False
  • 9. 

    SESSION variables  stored on ...?

    • Server

    • Browser buffer

    • In network

    • Will not be saved

    Correct Answer
    A. Server
  • 10. 

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

    • ==

    • ===

    • =

    • !=

    Correct Answer
    A. ===
  • 11. 

    Php scripts can run inside   .html files ?

    • True

    • False

    Correct Answer
    A. False
  • 12. 

    pHP server scripts are surrounded by which  delimiters ?

    • ...

    • ...

    Correct Answer
    A.
  • 13. 

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

    • Error in output

    • Null

    • $name

    • Sematec

    Correct Answer
    A. $name

Quiz Review Timeline (Updated): Jan 2, 2018 +

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.