61.
What will be the output of the following PHP code ?
<?php
$x;
echo "$x";
?>

62.
What will be the output of the following PHP code ?
<?php
$x = 5;
{
    $x = 10;
    echo "$x";
}
echo "$x";
?>

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

65.
What will be the output of the following PHP code ?
<?php
$x = 5;
function fun()
{
    $x = 10;
    echo "$x";
}
fun();
echo "$x";
?>

66.
What will be the output of the following PHP code ?
<?php
$x = 5;
function fun()
{
    $x = 10;
    echo "$x";
}
fun();
echo "$x";
?>

67.
What will be the output of the following PHP code ?
<?php
$x = 4;
$y = 3;
function fun($x = 3, $y = 4)
{
    $z = $x+$y/$y+$x;
    echo "$z";
} 
echo $x;
echo $y;
echo $z; 
fun($x, $y);
?>

68.
What will be the output of the following PHP code ?
<?php
$x =4;
$y = 3;
function fun($x, $y)
{
    $z = $x + $y / $y + $x;
    echo "$z";
}
echo $x;
echo $y;
echo $z; 
fun(3, 4);
?>

69.
What will be the output of the following PHP code ?
<?php
function fun($x,$y)
{
    $x = 4;
    $y = 3;
    $z = $x + $y / $y + $x;
    echo "$z";
}
fun(3, 4); 
?>

70.
What will be the output of the following PHP code ?
<?php
$x = 3, 4, 5, 6;
echo "$x";
?>

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.