home   Query   contact
 
    logo  
  About
meet the crew
  Portfolio
have a look
  Courses
what we do
  Careers
step forward
  Gallery
our Album
     
         
   
PHP Quiz    Back
       
1.What does PHP stand for?

     Hypertext Pre-process
     Personal home page
     Hypertext Preprocesor
     Hypert Preprocesor

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

     <!--         -->
     <?php      ?>
     <?            ?>
     <?php      php?>  

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

     Print “Hello World”
     echo “Hello World”;
     Echo “Hello World”
     “Hello World”;

4. All variables in PHP start with which symbol?

     &
     %
     $
     =

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

     End
     :
     ;
     .

6. The PHP syntax is most similar to:

     Java Script
     C  & perl
     ASP
     Asp.net

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

     $_POST
     $_REQUEST
     $_GET
     $_SESSION

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

     True          False

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

     True         False

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

     True         False

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

     include_file("time.inc");
     include(“time.inc”);
     file_include(“time.inc”); 
     include_newfile(“time.inc”);

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

     Function_Myfunction();
     Myfunction()
     Create_function();
     Function Myfunction();

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

     open("time.txt");
     open_file(“time.txt”);
     fopen(“time.txt”,”r”);
     fopen(“time.txt”);

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

     True          False

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

     mysql_select_db();
     mysql_connect();
     connect();
     connect_db();
 
                                                                                     
 
 
   
 
 
footer