- In writing PHP, the form which the variables are set must have be in a
document with the extension of .PHP.
True
False
- The biggest difference in labeling variables between PHP scripts and forms
is the presence if a dollar sign in front of a variable name in a PHP script.
True
False
- When setting an action for your form in PHP, the action must be set in the
close form tag.
True
False
- The PHP command for printing out information on a webpage is "print"
True
False
- The PHP command for $amount=$amount+1 will give the viewer an
illegal operation and should be avoided.
True
False
- When evaluating a mathematical statement, which of the
following is true?
A. Multiplication has precedence
over addition
B. Parentheses represent
multiplication
C. Values in parentheses will be
calculated last
D. Quotation marks means the
statement is a number.
- Which of the following statements is false?
A. PHP can pick up variables from an
HTML form
B. Constants are written with all
capital letters
C. All Calculations must start with
the * and end with a * for PHP to complete.
D. The tags are
used to start and end a PHP script.
- Which of the following is NOT used to test an expression?
A. if ()else statement
B. is_double()
C. x=y
D. isset()
- The number 6.045 is NOT considered which of the following number formats.
A. integer
B. double
C. float
D. real
- Which of the following is used as a comparison operator?
A. =
B. +
C. /
D. <