Q. What will be the output of the following PHP code ?
Code:<?php
$p = 150;
if ($p > 25)
printf("Jitendra");
else if ($p > 35)
printf("Jitu");
else if($p > 45)
printf("Jeetu");
?>
Dear candidates you will find MCQ questions of PHP here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
<?php
$p = 150;
if ($p > 25)
printf("Jitendra");
else if ($p > 35)
printf("Jitu");
else if($p > 45)
printf("Jeetu");
?>
<?php
$t = 11;
if ($t = $t&0)
print $t;
else
break;
?>
<?php
$p = 20;
if ($p = $p&0)
print $p ;
else
print "Executed...";
?>
<?php
$num = 5;
if ($num = $num&0)
print $num ;
else
print "Else statement executed...";
?>
<?php
$num = 5;
if ($num == 6)
print "Jeetu" ;
else if($num = 6)
print $num;
else
print "Majumdar";
?>
<?php
$p = 25;
$q = 26;
if ($p < ++$p || $q < ++$q)
print "if statement executed...";
else
print "else statement executed...";
?>
<?php
$num = 1;
if ($num--)
print "First"
$num--;
else
print "Second"
?>
<?php
if (print "Ninth" - 9)
print "Tenth"
?>
<?php
if (!print "First")
if (print "Second")
print "Third";
?>
<?php
$p = 25;
$q = 50;
$r = 15;
if ($p / $q / $r)
print "Jitendra";
else
print "Majumdar";
?>