111.
What will be the output of the following PHP code ?
<?php
 $a = 5; $b = -7; $c =0; 
 $d = ++$a && ++$b || ++$c;
 print $d; print $a;
?>

112.
What will be the output of the following PHP code ?
<?php
$b = 1; $c = 4; $a = 5; 
$d = $b + $c == $a;
print $d;
?>

113.
What will be the output of the following PHP code ?
<?php
echo 5 * 9 / 3 + 9;
?>

114.
What will be the output of the following PHP code ?
<?php
$var1 = 1 + ++5;
echo $var1; 
?>

115.
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = ($var1 + 5)++; 
echo $var1; 
?>

116.
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = $var1++ + 5; 
echo $var1; 
?>

117.
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = ++$var1 + 5; 
echo $var1; 
?>

118.
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = $var1 + 5; 
echo $var1++; 
?>

119.
What will be the output of the following PHP code ?
<?php
$var1 = 1;
echo $var1 = ++$var1 % 2 + ++$var1; 
?>

120.
What will be the output of the following PHP code ?
<?php
$var1 = 1;
echo $var1 = ++$var1 % 2 + ++$var1; 
?>

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.