PHP Quiz 9
When one decision-making statement is contained within another decision-making statement it is referred to as a ____ decision-making structure. enclosed contained nested layered
nested
Exponential ____ is a shortened format for writing very large numbers with any decimal places. numbering notation registering
notation
A text string can be contained in either double or single quotation marks. True False
True
A unary operator requires an operand before or after the operator. True False
True
All Web pages containing PHP code must have an extension of .php. True False
True
In PHP, you must declare a global variable with the global keyword inside a function definition for the variable to be available within the scope of that function. True False
True
One of the primary differences between the while statement and the for statement is that in addition to a conditional expression, the for statement can also include code that initializes a counter and changes its value with each iteration. True False
True
The do...while statement executes a statement or statements once, then repeats the execution as long as a given conditional expression evaluates to TRUE. True False
True
The for statement performs essentially the same function as the while statement. True False
True
The switch statement controls program flow by executing a specific set of statements, depending on the value of an expression. True False
True
To ensure that the while statement will eventually end, you must include code within the body of the while statement that changes the value of the conditional expression. True False
True
A(n) ____ operator is used in PHP to perform mathematical calculations. math arithmetic calculation
arithmetic
The ____ operator executes one of two expressions based on the results of a conditional expression. conditional expressional comparison
conditional
A(n) ____ is a literal value or variable that can be evaluated by the PHP scripting engine to produce a result. expression condition clause
expression
A function executes automatically. True False
false
A(n) ____ is an element's numeric position within an array. location index indicator
index
Data types that can be assigned only a single value are called ____ types. individual mono primitive
primitive
In a ____ programming language the data type for a variable will not change after it has been declared. loosely typed strongly typed constantly typed
strongly typed
A(n) ____ operator requires a single operand either before or after the operator. unary single binary
unary
Assignment operators are used to assign a ____ to a variable. name value data type
value
When you declare a global variable with the global keyword, you do not need to assign the variable a(n) ____. value definition function name
value
The parameters within the parentheses of a function declaration are what kind of variables? local global unknown declared
local
The ____ operator uses the % symbol to find the remainder of integer division. division modulus arithmetic
modulus
The for...while statement is used to iterate or loop through the elements in an array. True False
False
The formal parameters within the parentheses of a function declaration are global variables. True False
False
The primary purpose of a semicolon in PHP is to identify the end of a line. True False
False
The statements in a do...while statement always execute repeatedly before the conditional expression evaluates the count variable. True False
False
You will not receive an error if you attempt to use a foreach statement with any variable types other than arrays. True False
False
Constant names are always case sensitive. True False
False
Include statements support only absolute path notation. True False
False
Like variables, function names are case sensitive. True False
False
Logical operators are used for comparing two ____ operands for equality. numeric Boolean string
Boolean
A function must contain a parameter. True False
False
A function must return a value. True False
False
A line comment must be placed at the end of the line to which the comment refers. True False
False