Question
QUESTION 16 ____is the shortcut operator for concatenation. .= (dot equal) += (plus equal) QUESTION 17 t is the escape sequence for a tab. True
QUESTION 16
____is the shortcut operator for concatenation.
.= (dot equal) | ||
+= (plus equal) |
QUESTION 17
\t is the escape sequence for a tab.
True
False
QUESTION 18
Which of the following are true of strpos($str1, $item)? More than one answer is correct.
it finds the position of the first occurrence of $str1 in the $item string and returns the position of where where the $str1 is found. | ||
it finds the position of the first occurrence of the $item string in $str1 and returns the position of where where the $item is found. | ||
it finds the position of the first occurrence of $str1 in the $item string and returns the position of where where the $str1 is found. | ||
the default starting position is positions
|
QUESTION 19
A variable's scope can be either _____ or ____. Choose 2 answers.
universal | ||
Global | ||
local | ||
intrinsic |
QUESTION 20
"What does this code output?
$x = array("tic", "tac", "toe"); echo implode(", ", $x);
"tic, tac, toe" | ||
"tictactoe" | ||
"tic tac toe" | ||
nothing | ||
"tic,tac,toe" |
QUESTION 21
What does the variable $y hold?
$x = "person5@xyz.com"; $m = "zyx.org"; $y = substr_replace($x, $m, 8);
person5@zyx.com | ||
person5@xyz.comzyx.org | ||
person5zyx.org | ||
person5@zyx.org |
QUESTION 22
A return statement returns a value to the statement that called the function.
True
False
QUESTION 23
"If you use a local variable outside the function in which it is declared, ____."
you'll get an error | ||
it will always have the value NULL | ||
you'll get a warning | ||
it is the same as using a global variable |
QUESTION 24
The lines of code that make up a function itself are called the function definition.
True
False
QUESTION 25
What does the variable $y hold after this code runs?
$x = "person5@xyz.com"; $m = "org"; $y = substr_replace($x, $m, 12);
person5@xyz.org | ||
person5@org | ||
person5@xyz..org | ||
person5@xyorg |
QUESTION 26
The ____ function returns number of characters in a string.
length() | ||
strlen() | ||
len() | ||
None of the other answer are correct |
QUESTION 27
What does the variable $y hold?
$x = "Betelgeuse not Beetlejuice"; $y = substr_count($x, "et");
0 | ||
2 | ||
3 | ||
1 | ||
-1 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started