Question: QUESTION 31 The array_pop() functions removes the element located at the end of the array. True False QUESTION 32 The array_keys() function returns an indexed
QUESTION 31
The array_pop() functions removes the element located at the end of the array.
True
False
QUESTION 32
The array_keys() function returns an indexed array of all the keys in an associative array.
True
False
QUESTION 33
What gets printed?
$x = "Betelgeuse not Beetlejuice"; echo $x[18];
| -1 | ||
| t | ||
| l | ||
| e |
QUESTION 34
"To sort an associative array by key, use the ____ function."
| natsort() | ||
| ksort() | ||
| rsort() | ||
| asort() |
QUESTION 35
In this function header _____.
function getStuff($soup = "tomato", $cheese = "Velveta") { ...
| $soup and $cheese called arguments | ||
| $soup and $cheese called default arguments | ||
| $soup and $cheese called default parameters | ||
| $soup and $cheese called global parameters
|
QUESTION 36
What does the variable $y hold?
$x = "person5@xyz.com"; $m = "@"; $y = strstr($x, $m, true);
| @xyz.com | ||
| person5@ | ||
| xyz.com | ||
| person5 |
QUESTION 37
A variable's scope can be either _____ or ____. Choose 2 answers.
| local | ||
| undeclared | ||
| universal | ||
| global |
QUESTION 38
A return statement returns a value to the statement that called the function.
True
False
QUESTION 39
To post a page to itself you have the action attribute the same as the page name.
True
False
QUESTION 40
Would a parameter list like the following work?
function getStuff($soup = "tomato", $cheese) {
| yes | ||
| no |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
