QUESTION 1
Correct
Mark 1.00 out of 1.00
QUESTION text
If you attempt to use a local variable outside the function in which it is declared, you receive an error message.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 2
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function will remove both leading and trailing spaces from a string.
Select one:
a. rtrm()
b. strtrim()
c. ltrim()
d. trim() Correct
Feedback
The correct answer is: trim()
QUESTION 3
Correct
Mark 1.00 out of 1.00
QUESTION text
The escape character sequence ____ inserts a new line.
Select one:
a. \n Correct
b. \CR
c. \nl
d. \l
Feedback
The correct answer is: \n
QUESTION 4
Correct
Mark 1.00 out of 1.00
QUESTION text
In a regular expression, a(n) ____ specifies that the pattern must appear at that position in the string.
Select one:
a. position
b. spotter
c. pointer
d. anchor Correct
Feedback
The correct answer is: anchor
QUESTION 5
Incorrect
Mark 0.00 out of 1.00
QUESTION text
____ quantifiers allow you to more precisely specify the number of times a character must repeat sequentially.
Select one:
a. Double quotation marks
b. Parentheses Incorrect
c. Curly bracket
d. Curly brace
Feedback
The correct answer is: Curly brace
QUESTION 6
Correct
Mark 1.00 out of 1.00
QUESTION text
The metacharacter, ____, specifies an anchor at the end of the line.
Select one:
a. (^)
b. ($) Correct
c. (\)
d. (&)
Feedback
The correct answer is: ($)
QUESTION 7
Correct
Mark 1.00 out of 1.00
QUESTION text
When you use a variable in a PHP program, you must be aware of the variable's ____.
Select one:
a. placement
b. statement
c. scope Correct
d. function
Feedback
The correct answer is: scope
QUESTION 8
Correct
Mark 1.00 out of 1.00
QUESTION text
A ____ statement is used to iterate or loop through the elements in an array.
Select one:
a. for
b. if...else
c. foreach Correct
d. while
Feedback
The correct answer is: foreach
QUESTION 9
Correct
Mark 1.00 out of 1.00
QUESTION text
Function arguments are the statements that do the actual work of the function and must be contained within the function braces.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 10
Correct
Mark 1.00 out of 1.00
QUESTION text
A function definition contains the lines of code that make up a function.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 11
Correct
Mark 1.00 out of 1.00
QUESTION text
If a command block is missing either the opening or closing brace, an error occurs.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 12
Correct
Mark 1.00 out of 1.00
QUESTION text
A command block is a group of statements within a set of opening and closing ____.
Select one:
a. parentheses
b. braces Correct
c. quotation marks
d. brackets
Feedback
The correct answer is: braces
QUESTION 13
Correct
Mark 1.00 out of 1.00
QUESTION text
With many programming languages, global variables are automatically available to all parts of your program, including ____.
Select one:
a. definitions
b. statements
c. declarations
d. functions Correct
Feedback
The correct answer is: functions
QUESTION 14
Incorrect
Mark 0.00 out of 1.00
QUESTION text
Global variables are automatically available to all parts of your program, including functions.
Select one:
True Incorrect
False
Feedback
The correct answer is 'False'.
QUESTION 15
Correct
Mark 1.00 out of 1.00
QUESTION text
A ____ is a variable that increments or decrements with each iteration of a loop statement
Select one:
a. counter Correct
b. incrementer/decrementer
c. repetitor
d. iterator
Feedback
The correct answer is: counter
QUESTION 1
Correct
Mark 1.00 out of 1.00
QUESTION text
When one decision-making statement is contained within another decision-making statement it is referred to as a ____ decision-making structure.
Select one:
a. contained
b. layered
c. enclosed
d. nested Correct
Feedback
The correct answer is: nested
QUESTION 2
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function randomly scrambles the order of characters in a string.
Select one:
a. str_scramble()
b. str_shuffle() Correct
c. str_jumble()
d. str_random()
Feedback
The correct answer is: str_shuffle()
QUESTION 3
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ metacharacter is used to specify a range of values in a character class.
Select one:
a. (-) Correct
b. (‘)
c. (@)
d. (+)
Feedback
The correct answer is: (-)
QUESTION 4
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function converts any occurrence of (&), ("), ('), (<), and (>) to their equivalent HTML character entity.
Select one:
a. specialhtml()
b. htmlspecialchars() Correct
c. convertchars()
d. converttohtml()
Feedback
The correct answer is: htmlspecialchars()
QUESTION 5
Correct
Mark 1.00 out of 1.00
QUESTION text
The concatenation operator in PHP is a ____.
Select one:
a. plus sign (+)
b. QUESTION mark (?)
c. period (.) Correct
d. minus sign (-)
Feedback
The correct answer is: period (.)
QUESTION 6
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function uses a strong encryption algorithm called Message-Digest Algorithm to create a one-way hash of an entered string.
Select one:
a. str-ireplace()
b. md5() Correct
c. mda()
d. strhash()
Feedback
The correct answer is: md5()
QUESTION 7
Correct
Mark 1.00 out of 1.00
QUESTION text
Which of the following terms is not associated with the switch statement?
Select one:
a. executable statements
b. switch title Correct
c. break keyword
d. case label
Feedback
The correct answer is: switch title
QUESTION 8
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ statement halts the processing of the web page and displays an error if an include file cannot be found.
Select one:
a. insert
b. include
c. require Correct
d. Insert-contents
Feedback
The correct answer is: require
QUESTION 9
Correct
Mark 1.00 out of 1.00
QUESTION text
Functions are placed within parentheses that follow a parameter name.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 10
Correct
Mark 1.00 out of 1.00
QUESTION text
A return statement is a statement that returns a value to the statement that called the function.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 11
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ file is typically saved with a prefix of inc_.
Select one:
a. nested
b. insert
c. increment
d. include Correct
Feedback
The correct answer is: include
QUESTION 12
Correct
Mark 1.00 out of 1.00
QUESTION text
What will be returned if you use a local variable outside the function in which it is declared?
Select one:
a. value
b. error message Correct
c. function
d. nothing
Feedback
The correct answer is: error message
QUESTION 13
Correct
Mark 1.00 out of 1.00
QUESTION text
The parameters within the parentheses of a function declaration are what kind of variables?
Select one:
a. global
b. unknown
c. local Correct
d. declared
Feedback
The correct answer is: local
QUESTION 14
Incorrect
Mark 0.00 out of 1.00
QUESTION text
A function must return a value.
Select one:
True Incorrect
False
Feedback
The correct answer is 'False'.
QUESTION 15
Correct
Mark 1.00 out of 1.00
QUESTION text
When you declare a global variable with the global keyword, you do not need to assign the variable a(n) ____.
Select one:
a. function
b. definition
c. value Correct
d. name
Feedback
The correct answer is: value
QUESTION 1
Correct
Mark 1.00 out of 1.00
QUESTION text
____ are lines you place in your code that do not get executed but provide helpful information such as the name of the script, your name and the date your created the program.
Select one:
a. Instructions
b. Pointers
c. Comments Correct
Feedback
The correct answer is: Comments
QUESTION 2
Correct
Mark 1.00 out of 1.00
QUESTION text
A(n) ____ is an element's numeric position within an array.
Select one:
a. indicator
b. index Correct
c. location
Feedback
The correct answer is: index
QUESTION 3
Incorrect
Mark 0.00 out of 1.00
QUESTION text
The ____ operator executes one of two expressions based on the results of a conditional expression.
Select one:
a. expressional
b. comparison Incorrect
c. conditional
Feedback
The correct answer is: conditional
QUESTION 4
Correct
Mark 1.00 out of 1.00
QUESTION text
____ are positive and negative numbers and 0 with no decimal places.
Select one:
a. Integers Correct
b. Numbers
c. Digits
Feedback
The correct answer is: Integers
QUESTION 5
Correct
Mark 1.00 out of 1.00
QUESTION text
A(n) ____ operator requires a single operand either before or after the operator.
Select one:
a. single
b. unary Correct
c. binary
Feedback
The correct answer is: unary
QUESTION 6
Correct
Mark 1.00 out of 1.00
QUESTION text
You use the ____ function to find the total number of elements in an array.
Select one:
a. sum()
b. count() Correct
c. counta()
Feedback
The correct answer is: count()
QUESTION 7
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ operation uses the === (triple equal sign) to compare two operands for equality and data type.
Select one:
a. strict equal Correct
b. comparison
c. equal
Feedback
The correct answer is: strict equal
QUESTION 8
Correct
Mark 1.00 out of 1.00
QUESTION text
____ a variable is the processing of assigning a first value to a variable.
Select one:
a. Initializing Correct
b. Declaring
c. Finalizing
Feedback
The correct answer is: Initializing
QUESTION 9
Correct
Mark 1.00 out of 1.00
QUESTION text
One way to ensure that a variable is of the correct data type is through type ____.
Select one:
a. identifying
b. naming
c. casting Correct
Feedback
The correct answer is: casting
QUESTION 10
Correct
Mark 1.00 out of 1.00
QUESTION text
A(n) ____ operator is used in PHP to perform mathematical calculations.
Select one:
a. calculation
b. arithmetic Correct
c. math
Feedback
The correct answer is: arithmetic
QUESTION 11
Correct
Mark 1.00 out of 1.00
QUESTION text
If a command block is missing either the opening or closing brace, an error occurs.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 12
Correct
Mark 1.00 out of 1.00
QUESTION text
The include statement and the require statement perform the same function and can be used interchangeably.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 13
Correct
Mark 1.00 out of 1.00
QUESTION text
A ____ is a variable that increments or decrements with each iteration of a loop statement
Select one:
a. iterator
b. counter Correct
c. repetitor
d. incrementer/decrementer
Feedback
The correct answer is: counter
QUESTION 14
Correct
Mark 1.00 out of 1.00
QUESTION text
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.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 15
Correct
Mark 1.00 out of 1.00
QUESTION text
The switch statement controls program flow by executing a specific set of statements, depending on the value of an expression.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 1
Not answered
Marked out of 1.00
QUESTION text
Data types that can be assigned only a single value are called ____ types.
Select one:
a. primitive
b. individual
c. mono
Feedback
The correct answer is: primitive
QUESTION 2
Not answered
Marked out of 1.00
QUESTION text
The ____ symbol is used to suppress any errors that might be generated by an expression to which it is prepended.
Select one:
a. #
b. @
c. =>
Feedback
The correct answer is: @
QUESTION 3
Not answered
Marked out of 1.00
QUESTION text
The ____ function tests whether a variable contains a numeric data type.
Select one:
a. is_numeric()
b. is_digit()
c. is_number()
Feedback
The correct answer is: is_numeric()
QUESTION 4
Not answered
Marked out of 1.00
QUESTION text
The print_r(), var_export(), and var_dump()functions are used with ____ to display the index and value of each element.
Select one:
a. functions
b. variables
c. arrays
Feedback
The correct answer is: arrays
QUESTION 5
Not answered
Marked out of 1.00
QUESTION text
A(n) ____ is a literal value or variable that can be evaluated by the PHP scripting engine to produce a result.
Select one:
a. expression
b. clause
c. condition
Feedback
The correct answer is: expression
QUESTION 6
Not answered
Marked out of 1.00
QUESTION text
The ____ function is used to create a constant.
Select one:
a. describe()
b. create()
c. define()
Feedback
The correct answer is: define()
QUESTION 7
Not answered
Marked out of 1.00
QUESTION text
The PHP Group recommends you use the standard ____ script delimiters to write PHP code declaration blocks.
Select one:
a. <? statements ?>
b. <?php statements ?>
c. <script language = "php">statements</script>
Feedback
The correct answer is: <?php statements ?>
QUESTION 8
Not answered
Marked out of 1.00
QUESTION text
The ____ operator uses the % symbol to find the remainder of integer division.
Select one:
a. division
b. arithmetic
c. modulus
Feedback
The correct answer is: modulus
QUESTION 9
Not answered
Marked out of 1.00
QUESTION text
____ are symbols, such as the (+) symbol that are used in expressions to manipulate operands.
Select one:
a. Expressions
b. Literals
c. Operators
Feedback
The correct answer is: Operators
QUESTION 10
Not answered
Marked out of 1.00
QUESTION text
Assignment operators are used to assign a ____ to a variable.
Select one:
a. name
b. value
c. data type
Feedback
The correct answer is: value
QUESTION 11
Not answered
Marked out of 1.00
QUESTION text
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.
Select one:
True
False
Feedback
The correct answer is 'True'.
QUESTION 12
Not answered
Marked out of 1.00
QUESTION text
With many programming languages, global variables are automatically available to all parts of your program, including ____.
Select one:
a. statements
b. declarations
c. functions
d. definitions
Feedback
The correct answer is: functions
QUESTION 13
Not answered
Marked out of 1.00
QUESTION text
Include statements support only absolute path notation.
Select one:
True
False
Feedback
The correct answer is 'False'.
QUESTION 14
Not answered
Marked out of 1.00
QUESTION text
A(n) ____ statement is a control structure that repeatedly executes a statement or series of statements while a specific condition is TRUE or until a specific condition becomes TRUE.
Select one:
a. circular
b. replicate
c. loop
d. repeat
Feedback
The correct answer is: loop
QUESTION 15
Not answered
Marked out of 1.00
QUESTION text
Functions are placed within parentheses that follow a parameter name.
Select one:
True
False
Feedback
The correct answer is 'False'.
QUESTION 1
Not answered
Marked out of 1.00
QUESTION text
To assign the first element of an associative array with a number other than zero (0), use the array operator Answer
Incorrect .
Feedback
The correct answer is: =>
QUESTION 2
Correct
Mark 1.00 out of 1.00
QUESTION text
The array_push() function adds one or more elements to the end of an array.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 3
Correct
Mark 1.00 out of 1.00
QUESTION text
The Answer
array_search()
Correct function determines whether a given value exists in an array and returns the index or key of the first matching element if it exists or FALSE if it does not.
Feedback
The correct answer is: array_search()
QUESTION 4
Correct
Mark 1.00 out of 1.00
QUESTION text
The start_index argument of the array_slice() function indicates the Answer
start
Correct position within the array to begin extracting elements.
Feedback
The correct answer is: start
QUESTION 5
Incorrect
Mark 0.00 out of 1.00
QUESTION text
The ____ function returns a Boolean value of true if a given value exists in the array.
Select one:
a. array_search()
b. array_boole()
c. array() Incorrect
d. in_array()
Feedback
The correct answer is: in_array()
QUESTION 6
Correct
Mark 1.00 out of 1.00
QUESTION text
When using associative keys in Web forms, you do not use Answer
quotes
Correct around the associative array key name.
Feedback
The correct answer is: quotes
QUESTION 7
Correct
Mark 1.00 out of 1.00
QUESTION text
The array_shift() function adds one or more elements to the beginning of an array.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 8
Incorrect
Mark 0.00 out of 1.00
QUESTION text
One problem with the unset() function is that is does not renumber the remaining elements in the array.
Select one:
True
False Incorrect
Feedback
The correct answer is 'True'.
QUESTION 9
Correct
Mark 1.00 out of 1.00
QUESTION text
Merge two or more arrays with the ____ function.
Select one:
a. array_merge() Correct
b. array_plus()
c. array_paste()
d. array_values()
Feedback
The correct answer is: array_merge()
QUESTION 10
Correct
Mark 1.00 out of 1.00
QUESTION text
You use the array_unshift() function to remove the first element from the beginning of an array.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 11
Correct
Mark 1.00 out of 1.00
QUESTION text
You pass to the array_shift() function the name of the array whose first element you want to Answer
remove
Correct .
Feedback
The correct answer is: remove
QUESTION 12
Correct
Mark 1.00 out of 1.00
QUESTION text
The array_shift() function removes the ____ element from the beginning of an array.
Select one:
a. last
b. first Correct
c. second
d. middle
Feedback
The correct answer is: first
QUESTION 13
Correct
Mark 1.00 out of 1.00
QUESTION text
The array_name argument in the array_splice() function indicates the name of the array you want to eliminate.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 14
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function lets you add or remove elements anywhere else in the array.
Select one:
a. array_add()
b. array_split()
c. array_splice() Correct
d. array_values()
Feedback
The correct answer is: array_splice()
QUESTION 15
Correct
Mark 1.00 out of 1.00
QUESTION text
If you use an iteration function to move the internal array pointer either before the first element or after the last element in an array, the only way to move the array pointer back to a valid element is to use the unset() function.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 1
Correct
Mark 1.00 out of 1.00
QUESTION text
To renumber an indexed array's elements, you need to run the ____ function.
Select one:
a. unset()
b. array_values() Correct
c. array()
d. array_num()
Feedback
The correct answer is: array_values()
QUESTION 2
Correct
Mark 1.00 out of 1.00
QUESTION text
If you create an associative array and then add a new element without specifying a key, PHP will not assume that the array is indexed.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 3
Correct
Mark 1.00 out of 1.00
QUESTION text
Instead of appending one array to another you can merge two or more arrays with the array_merge() function.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 4
Correct
Mark 1.00 out of 1.00
QUESTION text
To perform a reverse sort on an associative array by key and maintain the existing keys, use the _____ function.
Select one:
a. ksort()
b. krsort() Correct
c. uk_sort()
d. sort()
Feedback
The correct answer is: krsort()
QUESTION 5
Incorrect
Mark 0.00 out of 1.00
QUESTION text
The symbol ____ appends one array to another.
Select one:
a. * Incorrect
b. ==
c. +
d. &&
Feedback
The correct answer is: +
QUESTION 6
Correct
Mark 1.00 out of 1.00
QUESTION text
PHP stores form data in an indexed array but cannot store form data in an associative array.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 7
Correct
Mark 1.00 out of 1.00
QUESTION text
A multidimensional array in PHP is essentially ____.
Select one:
a. a two-dimensional array
b. nonexistent
c. an array of arrays Correct
d. an associative array
Feedback
The correct answer is: an array of arrays
QUESTION 8
Correct
Mark 1.00 out of 1.00
QUESTION text
The array_push() function ____ one or more elements to the end of the array.
Select one:
a. adds Correct
b. deletes
c. moves
d. pushes
Feedback
The correct answer is: adds
QUESTION 9
Correct
Mark 1.00 out of 1.00
QUESTION text
If you use an iteration function to move the internal array pointer either before the first element or after the last element in an array, the only way to move the array pointer back to a valid element is to use the unset() function.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 10
Correct
Mark 1.00 out of 1.00
QUESTION text
Merge two or more arrays with the ____ function.
Select one:
a. array_merge() Correct
b. array_plus()
c. array_paste()
d. array_values()
Feedback
The correct answer is: array_merge()
QUESTION 11
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function determines whether a given value exists in an array.
Select one:
a. array_search() Correct
b. in_array()
c. find_array()
d. array_values()
Feedback
The correct answer is: array_search()
QUESTION 12
Correct
Mark 1.00 out of 1.00
QUESTION text
The array_unshift() function adds ____ element(s) to the beginning of the array.
Select one:
a. one or more Correct
b. two or more
c. no new
d. only one
Feedback
The correct answer is: one or more
QUESTION 13
Correct
Mark 1.00 out of 1.00
QUESTION text
To sort an associative array by key, use the ____ function.
Select one:
a. natsort()
b. ksort() Correct
c. rsort()
d. asort()
Feedback
The correct answer is: ksort()
QUESTION 14
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function removes duplicate elements from an array.
Select one:
a. array_dup()
b. array_values()
c. array_unique() Correct
d. array()
Feedback
The correct answer is: array_unique()
QUESTION 15
Correct
Mark 1.00 out of 1.00
QUESTION text
The ____ function lets you add or remove elements anywhere else in the array.
Select one:
a. array_add()
b. array_split()
c. array_splice() Correct
d. array_values()
Feedback
The correct answer is: array_splice()
QUESTION 16
Incorrect
Mark 0.00 out of 1.00
QUESTION text
One problem with the unset() function is that is does not renumber the remaining elements in the array.
Select one:
True
False Incorrect
Feedback
The correct answer is 'True'.
QUESTION 17
Correct
Mark 1.00 out of 1.00
QUESTION text
The array_pop() function ____ from the end of the array.
Select one:
a. moves an element
b. copies the last element
c. deletes the first element
d. removes the last element Correct
Feedback
The correct answer is: removes the last element
QUESTION 18
Correct
Mark 1.00 out of 1.00
QUESTION text
Multidimensional arrays are not limited to ____.
Select one:
a. two dimensions Correct
b. associative arrays
c. indexed elements
d. recursive arrays
Feedback
The correct answer is: two dimensions
QUESTION 19
Correct
Mark 1.00 out of 1.00
QUESTION text
You can create ____ that consist of multiple indexes or keys.
Select one:
a. indexed arrays
b. two-dimensional arrays
c. multidimensional arrays Correct
d. key arrays
Feedback
The correct answer is: multidimensional arrays
QUESTION 20
Correct
Mark 1.00 out of 1.00
QUESTION text
You use the ____ function to return a portion of an array and assign it to another array.
Select one:
a. array_slice() Correct
b. array_set()
c. array_assign()
d. array_key()
Feedback
The correct answer is: array_slice()
QUESTION text
A(n) ____ operator requires a single operand either before or after the operator.
Select one:
a. single
b. binary
c. unary Correct
Feedback
The correct answer is: unary
QUESTION 2
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
Assignment operators are used to assign a ____ to a variable.
Select one:
a. name
b. value Correct
c. data type
Feedback
The correct answer is: value
QUESTION 3
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
In a ____ programming language the data type for a variable will not change after it has been declared.
Select one:
a. constantly typed
b. loosely typed
c. strongly typed Correct
Feedback
The correct answer is: strongly typed
QUESTION 4
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
One way to ensure that a variable is of the correct data type is through type ____.
Select one:
a. casting Correct
b. naming
c. identifying
Feedback
The correct answer is: casting
QUESTION 5
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The print_r(), var_export(), and var_dump()functions are used with ____ to display the index and value of each element.
Select one:
a. variables
b. arrays Correct
c. functions
Feedback
The correct answer is: arrays
QUESTION 6
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ function is used to create a constant.
Select one:
a. create()
b. define() Correct
c. describe()
Feedback
The correct answer is: define()
QUESTION 7
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ operation uses the === (triple equal sign) to compare two operands for equality and data type.
Select one:
a. strict equal Correct
b. comparison
c. equal
Feedback
The correct answer is: strict equal
QUESTION 8
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ operator executes one of two expressions based on the results of a conditional expression.
Select one:
a. conditional
b. comparison Incorrect
c. expressional
Feedback
The correct answer is: conditional
QUESTION 9
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ symbol is used to suppress any errors that might be generated by an expression to which it is prepended.
Select one:
a. #
b. =>
c. @ Correct
Feedback
The correct answer is: @
QUESTION 10
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
You use the ____ function to find the total number of elements in an array.
Select one:
a. sum()
b. count() Correct
c. counta()
Feedback
The correct answer is: count()
QUESTION 11
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
Autoglobals are associative arrays whose elements are referred to with a(n) ____ key instead of an index number.
Select one:
a. alphabetic
b. alphanumeric Correct
c. numeric
d. symbolic
Feedback
The correct answer is: alphanumeric
QUESTION 12
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
When the form data is submitted using the get method, the form data is appended to the URL specified in the form's method attribute.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 13
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
You cannot use buttons to target content to a dynamic section of a Web page template.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 14
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
The issent() function can be used to determine if the $Submit variable has been set (if the Submit button has been pressed).
Select one:
True Incorrect
False
Feedback
The correct answer is 'False'.
QUESTION 15
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
When using text hyperlinks to navigate within a Web page template, the values that specify which dynamic content to show must be appended to the filename in the "href" attribute of the anchor tag.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 16
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ function can be used to ensure that a number has the appropriate number of decimal places.
Select one:
a. round() Correct
b. round_dec()
c. set_decimal()
d. decimal_round()
Feedback
The correct answer is: round()
QUESTION 17
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The PHP feature that automatically adds a backslash to any single quote, double quote, or NULL character contained in form data that a user submits to a PHP script is ____.
Select one:
a. special quotes
b. base quotes
c. special quotes
d. magic quotes Correct
Feedback
The correct answer is: magic quotes
QUESTION 18
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
When you click a form's submit button, each field on the form is sent to the Web server as a ____ pair.
Select one:
a. true/false Incorrect
b. variable/value
c. yes/no
d. name/value
Feedback
The correct answer is: name/value
QUESTION 19
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The additional_headers argument needs to be formatted to conform to the syntax of headers in the ____ documentation.
Select one:
a. Email Message Format
b. Internet Message Format Correct
c. Internet Email Format
d. Internet Mail Format
Feedback
The correct answer is: Internet Message Format
QUESTION 20
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
When the post method is used to submit a form, the name portion of the name/value pair becomes the value assigned to the array element.
Select one:
True Incorrect
False
Feedback
The correct answer is 'False'.
QUESTION 21
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
____ a variable is the processing of assigning a first value to a variable.
Select one:
a. Initializing Correct
b. Declaring
c. Finalizing
Feedback
The correct answer is: Initializing
QUESTION 22
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
____ are lines you place in your code that do not get executed but provide helpful information such as the name of the script, your name and the date your created the program.
Select one:
a. Instructions
b. Pointers
c. Comments Correct
Feedback
The correct answer is: Comments
QUESTION 23
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
____ are positive and negative numbers and 0 with no decimal places.
Select one:
a. Numbers
b. Digits
c. Integers Correct
Feedback
The correct answer is: Integers
QUESTION 24
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
____ are symbols, such as the (+) symbol that are used in expressions to manipulate operands.
Select one:
a. Operators Correct
b. Expressions
c. Literals
Feedback
The correct answer is: Operators
QUESTION 25
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
____ assignment operators perform mathematical calculations on variables and literal values in an expression and then assign a new value to the left operand.
Select one:
a. Binary
b. Compound Correct
c. Complex
Feedback
The correct answer is: Compound
QUESTION 26
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
A command block is a group of statements within a set of opening and closing ____.
Select one:
a. brackets
b. parentheses
c. quotation marks
d. braces Correct
Feedback
The correct answer is: braces
QUESTION 27
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
A variable's scope can be either global or ____.
Select one:
a. local Correct
b. declared
c. universal
d. undeclared
Feedback
The correct answer is: local
QUESTION 28
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
A ____ is a variable that increments or decrements with each iteration of a loop statement
Select one:
a. iterator
b. incrementer/decrementer
c. counter Correct
d. repetitor
Feedback
The correct answer is: counter
QUESTION 29
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
A(n) ____ statement is a control structure that repeatedly executes a statement or series of statements while a specific condition is TRUE or until a specific condition becomes TRUE.
Select one:
a. repeat
b. loop Correct
c. replicate
d. circular
Feedback
The correct answer is: loop
QUESTION 30
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
If you do not include code that changes the value used the by the condition expression, your program will be caught in a ____ loop.
Select one:
a. constant
b. infinite Correct
c. continuous
d. continuing
Feedback
The correct answer is: infinite
QUESTION 31
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ file is typically saved with a prefix of inc_.
Select one:
a. insert
b. include Correct
c. nested
d. increment
Feedback
The correct answer is: include
QUESTION 32
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
What will be returned if you use a local variable outside the function in which it is declared?
Select one:
a. function
b. nothing
c. value
d. error message Correct
Feedback
The correct answer is: error message
QUESTION 33
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
When one decision-making statement is contained within another decision-making statement it is referred to as a ____ decision-making structure.
Select one:
a. enclosed
b. layered
c. nested Correct
d. contained
Feedback
The correct answer is: nested
QUESTION 34
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
When you declare a global variable with the global keyword, you do not need to assign the variable a(n) ____.
Select one:
a. name
b. definition
c. value Correct
d. function
Feedback
The correct answer is: value
QUESTION 35
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
When you use a variable in a PHP program, you must be aware of the variable's ____.
Select one:
a. scope Correct
b. statement
c. placement
d. function
Feedback
The correct answer is: scope
QUESTION 36
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
Function arguments are the statements that do the actual work of the function and must be contained within the function braces.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 37
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
Functions are placed within parentheses that follow a parameter name.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 38
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
Global variables are automatically available to all parts of your program, including functions.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
QUESTION 39
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
If a command block is missing either the opening or closing brace, an error occurs.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 40
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
If you attempt to use a local variable outside the function in which it is declared, you receive an error message.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 41
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ function converts any occurrence of (&), ("), ('), (<), and (>) to their equivalent HTML character entity.
Select one:
a. converttohtml()
b. htmlspecialchars() Correct
c. specialhtml()
d. convertchars()
Feedback
The correct answer is: htmlspecialchars()
QUESTION 42
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The concatenation operator in PHP is a ____.
Select one:
a. plus sign (+)
b. period (.) Correct
c. minus sign (-)
d. QUESTION mark (?)
Feedback
The correct answer is: period (.)
QUESTION 43
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The metacharacter, ____, specifies an anchor at the end of the line.
Select one:
a. (\)
b. (&)
c. ($) Correct
d. (^)
Feedback
The correct answer is: ($)
QUESTION 44
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
____ are special characters that define the pattern matching rules in a regular expression.
Select one:
a. Expressionchars
b. Specialchars
c. Metacharacters Correct
d. Patterncharacters
Feedback
The correct answer is: Metacharacters
QUESTION 45
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ function uses a strong encryption algorithm called Message-Digest Algorithm to create a one-way hash of an entered string.
Select one:
a. strhash()
b. str-ireplace()
c. mda()
d. md5() Correct
Feedback
The correct answer is: md5()
QUESTION 46
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ metacharacter is used to allow a string to contain an alternate set of substrings.
Select one:
a. (|) Correct
b. (!)
c. (\)
d. (/)
Feedback
The correct answer is: (|)
QUESTION 47
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The ____ quantifier specifies that zero or more of the preceding characters can match.
Select one:
a. (?)
b. (#)
c. (&)
d. (*) Correct
Feedback
The correct answer is: (*)
QUESTION 48
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
The escape sequence \\ inserts a(n) ____.
Select one:
a. backslash
b. comment Incorrect
c. directory
d. web ink
Feedback
The correct answer is: backslash
QUESTION 49
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The escape character sequence ____ inserts a new line.
Select one:
a. \CR
b. \n Correct
c. \l
d. \nl
Feedback
The correct answer is: \n
QUESTION 50
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
A structure in which variables are placed within curly braces inside of a string is called a ____.
Select one:
a. simple string syntax
b. complex string syntax Correct
c. function
d. method
Feedback
The correct answer is: complex string syntax
QUESTION 51
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
What function is used to delete files?
Select one:
a. delete_file()
b. del_file()
c. unlink() Correct
d. delete()
Feedback
The correct answer is: unlink()
QUESTION 52
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
The fileperms() function allows the user to read the permissions associated with a particular file.
Select one:
True Correct
False
Feedback
The correct answer is 'True'.
QUESTION 53
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
What function returns a line that ends with a specified delimiter and moves the file pointer to the next line?
Select one:
a. fgetss(handle, length[, allowed_tags]) Incorrect
b. fgets(handle[, length])
c. stream_get_line($handle, length, delimiter)
d. fgetcsv(handle, length[, delimiter, string_enclosure])
Feedback
The correct answer is: stream_get_line($handle, length, delimiter)
QUESTION 54
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
Using a value of ____ for the mode argument of the fopen() function opens the specified file for reading and writing and places the file pointer at the end of the file.
Select one:
a. r+
b. r
c. w
d. a+ Correct
Feedback
The correct answer is: a+
QUESTION 55
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
Because the fopen() function must be used with the ____ function, you can specify what type of operations can be performed on the file and where and how the data will be written.
Select one:
a. fwrite()
b. file_put_contents() Incorrect
c. file_get_contents()
d. readfile()
Feedback
The correct answer is: fwrite()
QUESTION 56
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
The operational constant of the flock() function that opens the file with an exclusive lock for writing is the ____.
Select one:
a. LOCK_NB Incorrect
b. LOCK_EX
c. LOCK_SH
d. LOCK_UN
Feedback
The correct answer is: LOCK_EX
QUESTION 57
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
What function is used to copy the names of the files in a directory to an array?
Select one:
a. scandir() Correct
b. list_dir()
c. readdir()
d. copydir()
Feedback
The correct answer is: scandir()
QUESTION 58
Incorrect
Mark 0.00 out of 1.00
Flag QUESTION
QUESTION text
You can specify the maximum size of an uploaded file using MAX_FILE SIZE as a hidden input field below the file input field.
Select one:
True Incorrect
False
Feedback
The correct answer is 'False'.
QUESTION 59
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
When you are finished working with a file stream, you use the ____ function to ensure that the file does not keep taking up space in your computer's memory.
Select one:
a. fclose() Correct
b. file_close()
c. exit_file()
d. close_stream()
Feedback
The correct answer is: fclose()
QUESTION 60
Correct
Mark 1.00 out of 1.00
Flag QUESTION
QUESTION text
You use the createDir() function to create a new directory.
Select one:
True
False Correct
Feedback
The correct answer is 'False'.
Top of Form
Question 1
Question text
A(n) ____ operator requires a single operand either before or after the operator.
Select one:
a. single
b. unary
c. binary
Feedback
The correct answer is: unary
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Assignment operators are used to assign a ____ to a variable.
Select one:
a. data type
b. name
c. value
Feedback
The correct answer is: value
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In a ____ programming language the data type for a variable will not change after it has been declared.
Select one:
a. strongly typed
b. loosely typed
c. constantly typed
Feedback
The correct answer is: strongly typed
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
One way to ensure that a variable is of the correct data type is through type ____.
Select one:
a. casting
b. identifying
c. naming
Feedback
The correct answer is: casting
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The print_r(), var_export(), and var_dump()functions are used with ____ to display the index and value of each element.
Select one:
a. arrays
b. variables
c. functions
Feedback
The correct answer is: arrays
Question 6
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function is used to create a constant.
Select one:
a. describe()
b. define()
c. create()
Feedback
The correct answer is: define()
Question 7
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ operation uses the === (triple equal sign) to compare two operands for equality and data type.
Select one:
a. comparison
b. strict equal
c. equal
Feedback
The correct answer is: strict equal
Question 8
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ operator executes one of two expressions based on the results of a conditional expression.
Select one:
a. expressional
b. comparison
c. conditional
Feedback
The correct answer is: conditional
Question 9
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ symbol is used to suppress any errors that might be generated by an expression to which it is prepended.
Select one:
a. @
b. =>
c. #
Feedback
The correct answer is: @
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
You use the ____ function to find the total number of elements in an array.
Select one:
a. count()
b. counta()
c. sum()
Feedback
The correct answer is: count()
Question 11
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following is NOT a required argument of the mail() function?
Select one:
a. recipient(s)
b. subject
c. message
d. from
Feedback
The correct answer is: from
Question 12
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Regular expression functions are some of the best tools for verifying string data meets the strict formatting required for email addresses.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 13
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A Web page ____ is a single Web page that is divided into sections
Select one:
a. form
b. fill-in form
c. guide
d. template
Feedback
The correct answer is: template
Question 14
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When the post method is used to submit a form, the name portion of the name/value pair becomes the value assigned to the array element.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 15
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function can be used to determine if a variable contains values.
Select one:
a. is_null()
b. empty()
c. null
d. blank()
Feedback
The correct answer is: empty()
Question 16
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Autoglobals or superglobals are predefined ____.
Select one:
a. functions
b. variables
c. arrays
d. constants
Feedback
The correct answer is: arrays
Question 17
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
With complex escaping from XHTML, you close one PHP block, insert some XHTML elements, and then open another PHP block to continue the script.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 18
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When you click a form's submit button, each field on the form is sent to the Web server as a ____ pair.
Select one:
a. name/value
b. yes/no
c. true/false
d. variable/value
Feedback
The correct answer is: name/value
Question 19
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
When using the variable name as an index for the $GLOBALS array, you omit the leading dollar sign from the name.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 20
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
The two simplest forms of the ____ are the plain e-mail address and the recipient's name followed by the e-mail address in angle brackets.
Select one:
a. Message Format
b. Address Form
c. Internet Message Format
d. Address Specifier
Feedback
The correct answer is: Address Specifier
Question 21
Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ a variable is the processing of assigning a first value to a variable.
Select one:
a. Declaring
b. Finalizing
c. Initializing
Feedback
The correct answer is: Initializing
Question 22
Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ are lines you place in your code that do not get executed but provide helpful information such as the name of the script, your name and the date your created the program.
Select one:
a. Instructions
b. Pointers
c. Comments
Feedback
The correct answer is: Comments
Question 23
Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ are positive and negative numbers and 0 with no decimal places.
Select one:
a. Digits
b. Numbers
c. Integers
Feedback
The correct answer is: Integers
Question 24
Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ are symbols, such as the (+) symbol that are used in expressions to manipulate operands.
Select one:
a. Operators
b. Expressions
c. Literals
Feedback
The correct answer is: Operators
Question 25
Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ assignment operators perform mathematical calculations on variables and literal values in an expression and then assign a new value to the left operand.
Select one:
a. Complex
b. Binary
c. Compound
Feedback
The correct answer is: Compound
Question 26
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A command block is a group of statements within a set of opening and closing ____.
Select one:
a. parentheses
b. brackets
c. braces
d. quotation marks
Feedback
The correct answer is: braces
Question 27
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A variable's scope can be either global or ____.
Select one:
a. undeclared
b. declared
c. local
d. universal
Feedback
The correct answer is: local
Question 28
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A ____ is a variable that increments or decrements with each iteration of a loop statement
Select one:
a. iterator
b. incrementer/decrementer
c. counter
d. repetitor
Feedback
The correct answer is: counter
Question 29
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A(n) ____ statement is a control structure that repeatedly executes a statement or series of statements while a specific condition is TRUE or until a specific condition becomes TRUE.
Select one:
a. repeat
b. loop
c. circular
d. replicate
Feedback
The correct answer is: loop
Question 30
Correct
Mark 1.00 out of 1.00
Flag question
Question text
If you do not include code that changes the value used the by the condition expression, your program will be caught in a ____ loop.
Select one:
a. infinite
b. continuing
c. continuous
d. constant
Feedback
The correct answer is: infinite
Question 31
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ file is typically saved with a prefix of inc_.
Select one:
a. insert
b. nested
c. increment
d. include
Feedback
The correct answer is: include
Question 32
Correct
Mark 1.00 out of 1.00
Flag question
Question text
What will be returned if you use a local variable outside the function in which it is declared?
Select one:
a. error message
b. function
c. nothing
d. value
Feedback
The correct answer is: error message
Question 33
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When one decision-making statement is contained within another decision-making statement it is referred to as a ____ decision-making structure.
Select one:
a. nested
b. enclosed
c. layered
d. contained
Feedback
The correct answer is: nested
Question 34
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When you declare a global variable with the global keyword, you do not need to assign the variable a(n) ____.
Select one:
a. name
b. value
c. definition
d. function
Feedback
The correct answer is: value
Question 35
Correct
Mark 1.00 out of 1.00
Flag question
Question text
When you use a variable in a PHP program, you must be aware of the variable's ____.
Select one:
a. scope
b. placement
c. function
d. statement
Feedback
The correct answer is: scope
Question 36
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Function arguments are the statements that do the actual work of the function and must be contained within the function braces.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 37
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Functions are placed within parentheses that follow a parameter name.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 38
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Global variables are automatically available to all parts of your program, including functions.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 39
Correct
Mark 1.00 out of 1.00
Flag question
Question text
If a command block is missing either the opening or closing brace, an error occurs.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 40
Correct
Mark 1.00 out of 1.00
Flag question
Question text
If you attempt to use a local variable outside the function in which it is declared, you receive an error message.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 41
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function randomly scrambles the order of characters in a string.
Select one:
a. str_random()
b. str_jumble()
c. str_shuffle()
d. str_scramble()
Feedback
The correct answer is: str_shuffle()
Question 42
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In a regular expression, a(n) ____ specifies that the pattern must appear at that position in the string.
Select one:
a. anchor
b. position
c. spotter
d. pointer
Feedback
The correct answer is: anchor
Question 43
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The strlen() function returns the total ____ in a string.
Select one:
a. number of characters
b. number of occurrences
c. number of words
d. number of numerals
Feedback
The correct answer is: number of characters
Question 44
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ metacharacter is used to allow a string to contain an alternate set of substrings.
Select one:
a. (!)
b. (\)
c. (|)
d. (/)
Feedback
The correct answer is: (|)
Question 45
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function splits a string into an indexed array.
Select one:
a. implode()
b. strtok()
c. repair()
d. explode()
Feedback
The correct answer is: explode()
Question 46
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
____ quantifiers allow you to more precisely specify the number of times a character must repeat sequentially.
Select one:
a. Curly brace
b. Parentheses
c. Double quotation marks
d. Curly bracket
Feedback
The correct answer is: Curly brace
Question 47
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A structure in which variables are placed within curly braces inside of a string is called a ____.
Select one:
a. complex string syntax
b. function
c. method
d. simple string syntax
Feedback
The correct answer is: complex string syntax
Question 48
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The escape sequence to insert a carriage return is ____.
Select one:
a. \cr
b. \r
c. \\
d. \t
Feedback
The correct answer is: \r
Question 49
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The similar_text() function returns the number of ____ to strings have in common.
Select one:
a. characters
b. words
c. numbers
d. sounds
Feedback
The correct answer is: characters
Question 50
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function converts all of the letters in a string to capital letters.
Select one:
a. stringtolower()
b. strtolower()
c. stringtoupper()
d. strtoupper()
Feedback
The correct answer is: strtoupper()
Question 51
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The three levels of access for files and directories are User, Group, and Other.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 52
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function should be used before deleting files and directories to determine if the file or directory name exists.
Select one:
a. dir_file_exists()
b. file_exists()
c. dir_exists()
d. file_dir_exists()
Feedback
The correct answer is: file_exists()
Question 53
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The fileperms() function allows the user to read the permissions associated with a particular file.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 54
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Because the fopen() function must be used with the ____ function, you can specify what type of operations can be performed on the file and where and how the data will be written.
Select one:
a. fwrite()
b. file_put_contents()
c. file_get_contents()
d. readfile()
Feedback
The correct answer is: fwrite()
Question 55
Correct
Mark 1.00 out of 1.00
Flag question
Question text
You would use the file_put_contents() function to quickly replace the contents of a file or append data to the end of an existing file.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 56
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The file_write_contents() function writes a text string as a file.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 57
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Using a value of ____ for the mode argument of the fopen() function opens the specified file for reading and writing and places the file pointer at the end of the file.
Select one:
a. r
b. w
c. a+
d. r+
Feedback
The correct answer is: a+
Question 58
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The scandir() function returns an indexed array containing the names of files and directories in a specified directory.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 59
Correct
Mark 1.00 out of 1.00
Flag question
Question text
PHP recognizes two types of files: binary and text.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 60
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
The chdir() function changes to the name of the specified directory.
Select one:
True
False
Feedback
The correct answer is 'True'.
Bottom of Form
Skip Quiz navigation
Quiz navigation
Question 1
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The symbol ____ appends one array to another.
Select one:
a. *
b. ==
c. +
d. &&
Feedback
The correct answer is: +
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The array_pop() function ____ from the end of the array.
Select one:
a. moves an element
b. copies the last element
c. deletes the first element
d. removes the last element
Feedback
The correct answer is: removes the last element
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
You use the ____ function to return a portion of an array and assign it to another array.
Select one:
a. array_slice()
b. array_set()
c. array_assign()
d. array_key()
Feedback
The correct answer is: array_slice()
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function returns an array of elements that exist in one array but not in any other arrays to which it is compared.
Select one:
a. array_compare()
b. array_diff()
c. array_search()
d. array_match()
Feedback
The correct answer is: array_diff()
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The array_shift() function removes the ____ element from the beginning of an array.
Select one:
a. last
b. first
c. second
d. middle
Feedback
The correct answer is: first
Question 6
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
If you use an iteration function to move the internal array pointer either before the first element or after the last element in an array, the only way to move the array pointer back to a valid element is to use the unset() function.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 7
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function removes duplicate elements from an array.
Select one:
a. array_dup()
b. array_values()
c. array_unique()
d. array()
Feedback
The correct answer is: array_unique()
Question 8
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Multidimensional arrays are not limited to ____.
Select one:
a. two dimensions
b. associative arrays
c. indexed elements
d. recursive arrays
Feedback
The correct answer is: two dimensions
Question 9
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function determines whether a given value exists in an array.
Select one:
a. array_search()
b. in_array()
c. find_array()
d. array_values()
Feedback
The correct answer is: array_search()
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function lets you add or remove elements anywhere else in the array.
Select one:
a. array_add()
b. array_split()
c. array_splice()
d. array_values()
Feedback
The correct answer is: array_splice()
Question 11
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The array_unshift() function adds ____ element(s) to the beginning of the array.
Select one:
a. one or more
b. two or more
c. no new
d. only one
Feedback
The correct answer is: one or more
Question 12
Correct
Mark 1.00 out of 1.00
Flag question
Question text
To sort an associative array by key, use the ____ function.
Select one:
a. natsort()
b. ksort()
c. rsort()
d. asort()
Feedback
The correct answer is: ksort()
Question 13
Correct
Mark 1.00 out of 1.00
Flag question
Question text
To perform a reverse sort on an associative array by key and maintain the existing keys, use the _____ function.
Select one:
a. ksort()
b. krsort()
c. uk_sort()
d. sort()
Feedback
The correct answer is: krsort()
Question 14
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ argument of the array_splice() function indicates the name of the array you want to modify.
Select one:
a. array_name
b. array_value
c. array_function
d. array_mod
Feedback
The correct answer is: array_name
Question 15
Correct
Mark 1.00 out of 1.00
Flag question
Question text
If you create an associative array and then add a new element without specifying a key, PHP will not assume that the array is indexed.
Select one:
True
False
Feedback
The correct answer is 'False'.
Question 16
Correct
Mark 1.00 out of 1.00
Flag question
Question text
One problem with the unset() function is that is does not renumber the remaining elements in the array.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 17
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The data values for input elements that use array notation for the value of the name attribute are stored in a ____ array within the $_POST autoglobal array.
Select one:
a. sub
b. nested
c. indexed
d. key
Feedback
The correct answer is: nested
Question 18
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Merge two or more arrays with the ____ function.
Select one:
a. array_merge()
b. array_plus()
c. array_paste()
d. array_values()
Feedback
The correct answer is: array_merge()
Question 19
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ is a special type of variable that refers to the currently selected element in an array.
Select one:
a. external array pointer
b. external element pointer
c. internal array pointer
d. internal element pointer
Feedback
The correct answer is: internal array pointer
Question 20
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ function determines whether a given index or key exists.
Select one:
a. array_values()
b. array_key_exists()
c. array_key()
d. array_set()
Feedback
The correct answer is: array_key_exists()
A(n) ____ is an element's numeric position within an array.
Select one:
a. location
b. index
c. indicator
Feedback
The correct answer is: indexQuestion 2Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Logical operators are used for comparing two ____ operands for equality.
Select one:
a. string
b. Boolean
c. numeric
Feedback
The correct answer is: BooleanQuestion 3Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ assignment operators perform mathematical calculations on variables and literal values in an expression and then assign a new value to the left operand.
Select one:
a. Compound
b. Binary
c. Complex
Feedback
The correct answer is: CompoundQuestion 4Correct
Mark 1.00 out of 1.00
Flag question
Question text
A(n) ____ operator is used in PHP to perform mathematical calculations.
Select one:
a. math
b. arithmetic
c. calculation
Feedback
The correct answer is: arithmeticQuestion 5Correct
Mark 1.00 out of 1.00
Flag question
Question text
Exponential ____ is a shortened format for writing very large numbers with any decimal places.
Select one:
a. numbering
b. registering
c. notation
Feedback
The correct answer is: notationQuestion 6Correct
Mark 1.00 out of 1.00
Flag question
Question text
A(n) ____ operator requires a single operand either before or after the operator.
Select one:
a. unary
b. binary
c. single
Feedback
The correct answer is: unaryQuestion 7Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ a variable is the processing of assigning a first value to a variable.
Select one:
a. Initializing
b. Declaring
c. Finalizing
Feedback
The correct answer is: InitializingQuestion 8Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ type is the specific category of information that a variable contains.
Select one:
a. variable
b. content
c. data
Feedback
The correct answer is: dataQuestion 9Correct
Mark 1.00 out of 1.00
Flag question
Question text
Assignment operators are used to assign a ____ to a variable.
Select one:
a. data type
b. value
c. name
Feedback
The correct answer is: valueQuestion 10Correct
Mark 1.00 out of 1.00
Flag question
Question text
____ are lines you place in your code that do not get executed but provide helpful information such as the name of the script, your name and the date your created the program.
Select one:
a. Pointers
b. Instructions
c. Comments
Feedback
The correct answer is: CommentsQuestion 11Correct
Mark 1.00 out of 1.00
Flag question
Question text
With many programming languages, global variables are automatically available to all parts of your program, including ____.
Select one:
a. definitions
b. functions
c. statements
d. declarations
Feedback
The correct answer is: functionsQuestion 12Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following terms is not associated with the switch statement?
Select one:
a. case label
b. break keyword
c. executable statements
d. switch title
Feedback
The correct answer is: switch titleQuestion 13Correct
Mark 1.00 out of 1.00
Flag question
Question text
The statements in a do...while statement always execute repeatedly before the conditional expression evaluates the count variable.
Select one:
True
False
Feedback
The correct answer is 'False'.Question 14Correct
Mark 1.00 out of 1.00
Flag question
Question text
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.
Select one:
True
False
Feedback
The correct answer is 'True'.Question 15Correct
Mark 1.00 out of 1.00
Flag question
Question text
A ____ statement is used to iterate or loop through the elements in an array.
Select one:
a. foreach
b. for
c. while
d. if...else
Feedback
The correct answer is: foreach
Which of the following terms is not associated with the switch statement?
Select one:
a. break keyword
b. switch title
c. case label
d. executable statements
Feedback
The correct answer is: switch titleQuestion 2Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ____ quantifier specifies that zero or more of the preceding characters can match.
Select one:
a. (*)
b. (?)
c. (#)
d. (&)
Feedback
The correct answer is: (*)Question 3Correct
Mark 1.00 out of 1.00
Flag question
Question text
The most commonly used string counting function is the ____ function, which returns the total number of characters in a string.
Select one:
a. total()
b. strpos()
c. str_count()
d. strlen()
Feedback
The correct answer is: strlen()Question 4Correct
Mark 1.00 out of 1.00
Flag question
Question text
The escape sequence to insert a carriage return is ____.
Select one:
a. \t
b. \cr
c. \\
d. \r
Feedback
The correct answer is: \rQuestion 5Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
The ____ metacharacter is used to allow a string to contain an alternate set of substrings.
Select one:
a. (!)
b. (|)
c. (/)
d. (\) D is incorrect