QUESTION 28 Function names are case sensitive. True False QUESTION 29 \"The prim
ID: 3594377 • Letter: Q
Question
QUESTION 28
Function names are case sensitive.
True
False
QUESTION 29
"The primary use of the include and require statements is to reuse content on multiple web pages by allowing you to insert the content of an external file, called an include file, in your PHP scripts."
True
False
QUESTION 30
In the following function header, what are $soup and $cheese called?
function getStuff($soup = ""tomato"", $cheese = ""Velveta"") {...
global parameters
default parameters
arguments
default arguments
QUESTION 31
What does the variable y hold?
$x = "person5@xyz.com";
$y = strpos($x, "@");
7
FALSE
8
6
QUESTION 32
Will this work as a function header?
function getStuff($soup = "tomato", $cheese) { ...
no
yes
under certain circumstances
QUESTION 33
What does this code output?
$x = explode("=", "fe=fi=fo=fum");
echo $x[1];
fi
+f0+
+fi
nothing
fo+
QUESTION 34
Which of the following is NOT true of using printf()?
a floating point number is subtituted for %f
a string is subtituted for %s
a decimal integer is subtituted for %d
a hexadecimal number is subtituted for %h
QUESTION 35
"What is the value of $y when this code runs?
$x = "Betelgeuse not Beetlejuice";
$z = "orange";
$y = str_replace("Beetle", $z, $x);
Betelgeuse not Orangejuice
Betelgeuse not BeetleBeetle
Betelgeuse not Orange
Betelgeuse not Orange juice
QUESTION 36
What is the difference between passing an argument by reference and passing it by value?
"passing by value sends a copy, passing by reference sends an address to the function."
"passing by value passes a global variable, passing by reference sends a local variable."
"passing by value sends an address, passing by reference sends a copy to the function."
there is no difference
QUESTION 37
"What does the variable $y hold?
$x = "Betelgeuse not Beetlejuice";
$y = strpbrk($x, "ji");
Betelgeuse not Beetle
juice
0
-1
ice
QUESTION 38
A function must have at least one parameter.
True
False
QUESTION 39
"What does this code output?
$x = array("one", "two", "three");
echo implode("@", $x);"
@one@two@three@
one@two@three
one two three
one@,two@,three
QUESTION 40
The include directive allows inserting an external file into a php page.
True
False
global parameters
default parameters
arguments
default arguments
Explanation / Answer
28 .False : Function Names in PHP are not case Sensitive.
29. True
30. arguments
31. 7
32. yes
33. fi
34. a hexadecimal number is subtituted for %h
35. Betelgeuse not orangejuice
36. passing by value sends a copy, passing by reference sends an address to the function.
37. juice
38. False
39. one@two@three
40. True
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.