71.
What will be the output of the following PHP code ?
<?php
$a = 10;
$b = 4;
$c = fun(10,4);
function fun($a,$b)
{
    $b = 3;
    return $a - $b + $b - $a; 
}
echo $a;
echo $b;
echo $c;
?>

72.
What will be the output of the following PHP code ?
<?php
$a = "$winner";
$b = "/$looser";
echo $a,$b;
?>

73.
What will be the output of the following PHP code ?
<?php
$a = "$winner";
$b = "$looser";
echo $a, $b;
?>

74.
What will be the output of the following PHP code ?
<?php
$a = "$winner";
$b = "$looser";
echo $a, $b;
?>

75.
What will be the output of the following PHP code ?
<?php
$x = 5;
$y = 10;
function fun()
{
    $GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y'];
} 
fun();
echo $y;
?>

76.
What will be the output of the following PHP code ?
<?php
$x = 5;
$y = 10;
function fun()
{
    $y = $GLOBALS['x'] + $GLOBALS['y'];
} 
fun();
echo $y;
?>

77.
What will be the output of the following PHP code ?
<?php
function fun()
{
    $x = 0;
    echo $x;
    $x++;
}
fun();
fun();
fun();
?>

78.
What will be the output of the following PHP code ?
<?php
function fun()
{
    static $x = 0;
    echo $x;
    $x++;
}
fun();
fun();
fun();
?>

79.
What will be the output of the following PHP code ?
<?php
static $x = 0;
function fun()
{
    echo $x;
    $x++;
}
fun();
fun();
fun();
?>

80.
What will be the output of the following PHP code ?
<?php
$x=0;
function fun()
{
    echo $GLOBALS['x'];
    $GLOBALS['x']++;
}
fun();
fun();
fun();
?>

Read More Section(Operators and Expressions in php)

Each Section contains maximum 100 MCQs question on Operators and Expressions in php. To get more questions visit other sections.