What will be the output of the following PHP code ?<br/>for (1; $i == 1; $i = 2)<br/>print "In for loop ";<br/>print "After loopn"; In for loopAfter for loop In for loop After for loop Infinite loop TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 1;<br/>if ($x = $x& 0)<br/>print $x;<br/>else<br/>print "how are u"; 1 0 how are u error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 0;<br/>if ($x == 1)<br/>if ($x >= 0)<br/>print "true";<br/>else<br/>print "false"; error no output false true TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 0;<br/>while($i = 10) {<br/>print "hi";<br/>}<br/>print "hello"; error hello infinite loop hihello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 1;<br/>if ($x = $x& 0)<br/>print $x;<br/>else<br/>break; 0 1 error no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>switch($b) {<br/>case 2:<br/>print "hello";<br/>break;<br/>case b:<br/>print "hi";<br/>break;<br/>} error hello hi no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0; $i < 5; $i++) {<br/>for ($j = $i;$j > $i; $i--)<br/>print $i;<br/>} 0 1 2 3 4 5 infinite loop no output 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 0;<br/>do {<br/>$i++;<br/>}<br/>while ($i < 3);<br/>print $i; 0 1 3 2 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>if (print "hi" - 1)<br/>print "hello" error hihello hi no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($count = 0; $count < 3;$count++); {<br/>print "hi";<br/>continue;<br/>print "hello";<br/>} hellohellohello hihellohihellohihello hihihi hi TRUE ANSWER : ? YOUR ANSWER : ?