Term
What does PHP stand for?
A. Personal Hypertext Processor
B. PHP: Hypertext Preprocessor
C. Personal Home Page
D. Private Home Page |
|
Definition
|
|
Term
|
Definition
|
|
Term
How do you write "Hello World" in PHP
A. "Hello World";
B. echo "Hello World";
C. Document.Write("Hello World"); |
|
Definition
|
|
Term
All variables in PHP start with which symbol?
A. !
B. &
C. $ |
|
Definition
|
|
Term
What is the correct way to end a PHP statement?
A. </php>
B. New line
C. ;
D. . |
|
Definition
|
|
Term
The PHP syntax is most similar to:
A. Perl and C
B. VBScript
C. JavaScript |
|
Definition
|
|
Term
How do you get information from a form that is submitted using the "get" method?
A. $_GET[];
B. Request.QueryString;
C. Request.Form; |
|
Definition
|
|
Term
When using the POST method, variables are displayed in the URL:
A. True
B. False |
|
Definition
|
|
Term
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
A. True
B. False |
|
Definition
|
|
Term
Include files must have the file extension ".inc"
A. True
B. False |
|
Definition
|
|
Term
What is the correct way to include the file "time.inc" ?
A. <?php require("time.inc"); ?>
B. <?php include_file("time.inc"); ?>
C. <!--include file="time.inc"-->
D. <% include file="time.inc" %> |
|
Definition
|
|
Term
What is the correct way to create a function in PHP?
A. new_function myFunction()
B. create myFunction()
C. function myFunction() |
|
Definition
|
|
Term
|
Definition
|
|
Term
PHP allows you to send emails directly from a script
A. True
B. False |
|
Definition
|
|
Term
What is the correct way to connect to a MySQL database?
A. connect_mysql("localhost");
B. dbopen("localhost");
C. mysql_open("localhost");
D. mysql_connect("localhost"); |
|
Definition
|
|
Term
What is the correct way to add 1 to the $count variable?
A. $count++;
B. count++;
C. $count =+1
D. ++count |
|
Definition
|
|
Term
What is a correct way to add a comment in PHP?
A. <comment>…</comment>
B. /*…*/
C. *\..\*
D. <!--…--> |
|
Definition
|
|
Term
PHP can be run on Microsoft Windows IIS(Internet Information Server):
A. True
B. False |
|
Definition
|
|
Term
In PHP, the die() and exit() functions do the exact same thing.
A. True
B. False |
|
Definition
|
|
Term
Which one of these variables has an illegal name?
A. $myVar
B. $my-Var
C. $my_Va |
|
Definition
|
|