121.
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;
?>

122.
What will be the output of the following PHP code ?
<?php
$var1 = 3;
print $var = ++$var;
?>

123.
What will be the output of the following PHP code ?
<?php
$var1 = 3;
print ++$var++;
?>

124.
What will be the output of the following PHP code ?
<?php
$i = 0; $j = 1; $k = 2;
print !(($i + $k) < ($j - $k));
?>

125.
What will be the output of the following PHP code ?
<?php
$i = 0;$j = 1;$k = 2;
print !(( +  + $i + $j) > ($j - $k));
?>

126.
What will be the output of the following PHP code ?
<?php
$i = 0;$j = 1;$k = 2;
print (( +  + $i + $j) >! ($j - $k));
?>

127.
What will be the output of the following PHP code ?
<?php
$a = 0x6db7;
print $a<<6;
?>

128.
What will be the output of the following PHP code ?
<?php
$a  =  'a' ;
print $a * 2;
?>

129.
What will be the output of the following PHP code ?
<?php
$a  =  '4' ;
print  +  + $a;
?>

130.
What will be the output of the following PHP code ?
<?php
$a  =  '12345';
print "qwe{$a}rty";
?>

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.