Question #2 (14). The echo() and print() satements are functions. True or False? p. 132 - they're language constructs
Questions #3 (16). How many PHP script sections can you include within a document?
Question #4 (17). Which of the following versions of the print() statement can you use in script? (Choose all that apply)
TEST:
Welcome to Hawaii!Welcome to Hawaii!Welcome to Hawaii!Welcome to Hawaii!Question #5 (18). You create line comments in PHP code by adding _________________ to a line you want to use as a comment> (Choose all that apply.)
Question #6 (149-1). Which of the following is a valid variable name?
Question #7 (149-2). You are not required to initialize a variable when you first declare it. True or False? p. 89; p. 132
Question #8 (149-3). Which is the correct syntax for declaring a variable and assignming it a string?
Question #9 (150-7). How many decimal places does an integer store?
Question #10 (150-8). Which of the following is NOT a floating-point number
Question #11 (150-9). which of the following values can be assigned to a Boolean variable? (Choose all that apply.)
Answer: "when printing a Boolean in PHP, true is represented as 1, and false is represented as an empty string..." p. 93
p. 92 - Boolean has 1 of 2 special values: true or false;
Question #12 (151-14). What value is assigned to be the $ReturnValue variable in the statement:
$ReturnValue = 100 != 200;?
TEST (why does this work?):
1Question #13 (151-15). Which arithmetic operators can be used as both prefix and postfix operators?
Question #14 (151-16). The And (&&) operator returns true if _____________.
Question #15 (151-17). What value is assigned to the $ReturnValue variable in the statement
$ReturnValue = !$x; assuming that $x has a value of true?
TEST (why is this so?):
1Question #16 (151-19). The order of priority in which operations in an expression are evaluated is known as _____________.
Question #17 (152-20). What is the value of the expression 4 * (2 + 3)?
Question #18 (196-4). A variable that is declared outside a function is called a(n) ___________.
Question #19 (196-5). A local variable must be declared ____________.
Answer: p. 89 - assigned value of variable is present only within function of script where it resides
Question #20 (196-6).Which of the following autoglobals can you use to access submitted form values? - p. 89, superglobals
Question #21 (196-7). which of the following is the correct syntax for an if statement?
TEST:
Your variable is equal to 10.Question #22 (197-8). An if statement can include multiple statements provided that they _______________.
Question #23 (197-10). Whic is the correct syntax for an else clause?
TEST:
Printed from an else clause.Question #24 (197-11). The switch statement controls program flow by executing a specific set of statements, depending on _______.
Question #25 (197-12). Decision-making structures cannot be nested. True or False?
Question #26 (197-13). When the value returned by a switch statement expression does not match case label, the statements with the _____________ label execute.
Question #27 (197-14). You can exit a switch statement using a(n) ___________ statement.
Question #28 (198-15). Each repetition of a looping statement is called a(n) ______________.
Question #29 (198-16). which of the following is the correct syntax for a while statement?
Question #30 (198-17). Counter variables _______________. (Choose all that apply.)
Question #31 (198-19). Which of the following is the correct syntax for a for statement?
TEST: didn't work....
Question #32 (199-20). When is a for statement initialization expression executed?
Question #33 (199-21). The foreach statement can only be used with arrays. True or False?
**************************************************************
**************************************************************