QUESTION 13 2 points Save Answer What is the value of $c after executing the fol
ID: 3593325 • Letter: Q
Question
QUESTION 13 2 points Save Answer What is the value of $c after executing the following statements? O 100 O 50 O 150 QUESTION 14 2 points Save Answer What will be the output of the following piece of code? 1. ?php 2. function calc(Sprice, Stax) 4. $total = Sprice + Stax; 5. echo Stotal; 7, $pricetag = 15; 8. Staxtag = 3; 9. calc($pricetag, $taxtagl; 10.? O 15 O 18 total QUESTION 15 2 points Save Answer What will be the output of the following piece of code in PHP? y0 f (Sanull) echo 'true else f echo 'false O Syntax error haps:itb its astate.eduwebapps/assessmentitakeaunch.jsp?course assessment_d-_186596_18course d-_60065 18content id_3484458 1&st..; 57 1015/2017 Take Test PHP & SOL Quz (ExtraCredit)-cOM_S 105.. o true false nullExplanation / Answer
question 13: Answer : 100.
Explanation:It is a condition.It returns the a value if a is greater than b.else it returns b value.In this condition a value is greater then b value.so it prints a value i.e 100.
-------------------------------------------------------------------------------------------------------------------------------------------------------
question 14: Answer : 18.
Explanation: calc is a function which is accepting 2 parameters as a input and add the values.In this case we are sending pricetag and taxtag values as a input.Which is 15 and 3.It adds the 15 and 3 finally gives 18 as the output.
---------------------------------------------------------------------------------------------------------------------------------------------------------
question 15: Answer : Syntax error.
Explanation: It throws a Syntactical error saying expecting braces.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.