Question 2 What do you use to separate multiple arguments that are passed to a f
ID: 3724943 • 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
Q2)
Correct Option : comma ,
Explanation : Multiple arguments passed to a function
are separated by comma(,)
Example : funct(arg1,arg2,arg3,.........argn)
Q3)
Correct Option : //
Line comments can be added in PHP by adding//
at the front of the comment line.
Q4)
Correct Option :$myNewVariable
Explantion :
Valid variable name : $myNewVariable
Q5)
Correct Option : $myNum = 1;
Correct syntax to declare variable , $myNum = 1 and assign a value
Q6)
Correct Option : ;
PHP requires instructions to be terminated with a ;
Q7)
Correct Option :TRUE,FALSE
Explanation : The two boolean values are
TRUE,FALSE
Q8)
Correct Option : $aArray[0]
Explanation :
First element of the element is denoted by $aArray[0]
Q9)
Correct Option : 13
Explantion :
3*2+7 =13
Multiplication first takes place , 3*2=6 and then add 7, 6+7=13
Q10)
Correct Option : the right operand is TRUE and the left operand is TRUE
Explanation :
The logical And (&&) operator returns TRUE if
the right operand is TRUE and the left operand is TRUE
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.