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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!