Question: Study the code below: function calculateResult ( $mark ) { if ( $mark < 4 0 ) return 'Fail'; else if ( $mark > =

Study the code below:
function calculateResult($mark){
if($mark <40)
return 'Fail';
else if ($mark >=40 && $mark <=49)
return 'Supplementary Exam';
else if ($mark >=50 && $mark <=74)
return 'Pass';
else if ($mark >=75)
return 'Pass with distinction';
}
$result = calculateResult(59);
What is stored in $result after the code is executed?

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!