Q. What will be the output of the following PHP code ?
Code:<?php
$num1 = 25;
$num2 = 27;
if ($num1 > $num2 && 1||1)
print "Jitendra" ;
else
print "Majumdar";
?>
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
$num1 = 25;
$num2 = 27;
if ($num1 > $num2 && 1||1)
print "Jitendra" ;
else
print "Majumdar";
?>
<?php
$n1 = 17;
$n2 = 19;
if ($n1 > $n2 + $n2 != 3)
print "Jitendra" ;
else
print "Majumdar";
?>
<?php
$str = "s";
if ($str)
print "Executed....";
else
print "Not Executed...";
?>
<?php
$num = "";
if ($num)
print "Second";
else
print "First";
?>
<?php
$num = 5;
if (5)
print "First";
if
else
print "Second";
?>
<?php
if (print "Program ")
print "Executed..." ;
else
print "Not Executed...";
?>
<?php
$p = 50;
$q = 60;
if ($p > $q && 1||1)
print "Executed...." ;
else
print "Not Executed....";
?>
<?php
if (-200)
print "Majumdar" ;
else
print "Jitendra";
?>
<?php
if (0.25)
print "Jitendra" ;
else
print "Majumdar";
?>
<?php
if (0.0)
print "First" ;
else
print "Second";
?>