Q.

What is the value displayed when the following is executed? Assume that the code was executed using the following URL:
testscript.php?c=25
<?php
function process($c, $d = 25)
{
global $e;
$retval = $c + $d - $_GET['c'] - $e;
return $retval;
}
$e = 10;
echo process(5);
?>

A. 25
B. -5
C. 10
D. 5
Answer» B. -5
2k
0
Do you find this helpful?
12

View all MCQs in

Linux and PHP

Discussion

No comments yet