PHP Quiz

1.   What does PHP stand for?

2.   PHP server scripts are surrounded by delimiters, which?

3.   How do you write "Hello World" in PHP

4.   All variables in PHP start with which symbol?

5.   What is the correct way to end a PHP statement?

6.   The PHP syntax is most similar to:

7.   How do you get information from a form that is submitted using the "get" method?

8.   When using the POST method, variables are displayed in the URL:

9.   In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:

10.   Include files must have the file extension ".inc"

11.   What is the correct way to include the file "" ?

12.   What is the correct way to create a function in PHP?

13.   What is the correct way to open the file "time.txt" as readable?

14.   PHP allows you to send emails directly from a script

15.   What is the correct way to connect to a MySQL database?

16.   What is the correct way to add 1 to the $count variable?

17.   What is a correct way to add a comment in PHP?

18.   PHP can be run on Microsoft Windows IIS(Internet Information Server):

19.   In PHP, the die() and exit() functions do the exact same thing.

20.   Which one of these variables has an illegal name?