Q:

What will be the output of the following PHP code ?

belongs to collection: FUNCTIONS IN PHP MCQ

0
<?php
function CalAll($x,$y)
{
    echo ($x + $y);
    echo "<br>";
    echo ($x - $y);
    echo "<br>";
    echo ($x * $y);
    echo "<br>";
    echo ($x / $y); 
    echo "<br>";
    echo ($x % $y);
}
$x = 10; 
$y = 6;
CalcAll(); 
?>

  1. 6666666666667
  2. 16
    4
    60
    1.6666666666667
    4
  3. 1.666666
  4. 1.6666666666667

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).16
4
60
1.6666666666667
4

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
<< What will be the output of the following PHP code ...