Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 2 What do you use to separate multiple arguments that are passed to a f

ID: 3724941 • Letter: Q

Question

Question 2


What do you use to separate multiple arguments that are passed to a function?

comma ,


period .


forward slash /


back slash


Question 3


Line comments can be added in PHP by adding ________ at the front of the comment line.

//


||


\


..


Question 4


Which of the below options is a valid variable name?

$myNewVariable


$1LoveVariables


allTheseVaraibles


1LastTry


Question 5


Which of the following has the correct syntax to declare variable and assign a value?

$myNum = 1;


$myNum = 1


myNum = 1;


$myNum == 1;


Question 6


PHP requires instructions to be terminated with a ____________ .

;


:


#


//


Question 7


Which of the follow is a Boolean value? (Select 2)

TRUE


FALSE


YES


OR


Question 8


Which of the following refers to the first element in an indexed array named $aArray[]?

$aArray[0]


$aArray[1]


$aArray[First]


$aArray[]


Question 9


What is the value of the expression 3 * 2 + 7?

13


27


23


11


Question 10


The logical And (&&) operator returns TRUE if ...

the right operand is TRUE and the left operand is TRUE


the right operand is TRUE


the left operand is TRUE


the right operan is FALSE and the left operand is TRUE

Explanation / Answer

2. A comma is used to separate the multiple arguments that are passed through a function

3.// Is used as a single line comment in PHP where as /*. ....*/ Is used for multiple line comments

4.$myNewVariable is valid since the syntax is $var_name; (no numbers allowed)

5.the correct syntax is $var = value;

So the correct answer is $myNum=1;

6.PHP instructions can be terminated either by ; or ?>

7.True and false are Boolean values. True is represented as 1 and false with empty string.

8.first element in indexed array will be $aArray[0]

9.The result is 13 .it follows the bosmas rule and first 3*2 is computed and result is added to 7 and final output is 13.

10.the right operand is True and left operand is True. The logical And is true when both left and right are either True or false

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote