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

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

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

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

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

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

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

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

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

30.
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.