Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
20 Cards in this Set
- Front
- Back
What does PHP stand for?
A. Personal Hypertext Processor B. PHP: Hypertext Preprocessor C. Personal Home Page D. Private Home Page |
B. PHP: Hypertext Preprocessor
|
|
PHP server scripts are surrounded by delimiters, which?
A. <?php…?> B. <&>...</&> C. <?php>...</?> D. <script>...</script> |
A. <?php…?>
|
|
How do you write "Hello World" in PHP
A. "Hello World"; B. echo "Hello World"; C. Document.Write("Hello World"); |
B. echo "Hello World";
|
|
All variables in PHP start with which symbol?
A. ! B. & C. $ |
C. $
|
|
What is the correct way to end a PHP statement?
A. </php> B. New line C. ; D. . |
C. ;
|
|
The PHP syntax is most similar to:
A. Perl and C B. VBScript C. JavaScript |
A. Perl and C
|
|
How do you get information from a form that is submitted using the "get" method?
A. $_GET[]; B. Request.QueryString; C. Request.Form; |
A. $_GET[];
|
|
When using the POST method, variables are displayed in the URL:
A. True B. False |
B. False
|
|
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
A. True B. False |
A. True
|
|
Include files must have the file extension ".inc"
A. True B. False |
B. False
|
|
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" %> |
A. <?php require("time.inc"); ?>
|
|
What is the correct way to create a function in PHP?
A. new_function myFunction() B. create myFunction() C. function myFunction() |
C. function myFunction()
|
|
What is the correct way to open the file "time.txt" as readable?
A. fopen("time.txt","r"); B. open("time.txt","read"); C. open("time.txt"); D. fopen("time.txt","r+"); |
A. fopen("time.txt","r");
|
|
PHP allows you to send emails directly from a script
A. True B. False |
A. True
|
|
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"); |
D. mysql_connect("localhost");
|
|
What is the correct way to add 1 to the $count variable?
A. $count++; B. count++; C. $count =+1 D. ++count |
A. $count++;
|
|
What is a correct way to add a comment in PHP?
A. <comment>…</comment> B. /*…*/ C. *\..\* D. <!--…--> |
B. /*…*/
|
|
PHP can be run on Microsoft Windows IIS(Internet Information Server):
A. True B. False |
A. True
|
|
In PHP, the die() and exit() functions do the exact same thing.
A. True B. False |
A. True
|
|
Which one of these variables has an illegal name?
A. $myVar B. $my-Var C. $my_Va |
B. $my-Var
|