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; 2 3 1 0 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"; infinite loop hihello error hello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$b = 1;<br/>switch($b) {<br/>case 1.0:<br/>print "hi";<br/>break;<br/>case 1:<br/>print "hello";<br/>break;<br/>default:<br/>print "hi1";<br/>} hihello hello hi hihellohi1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = "2";<br/>switch ($a) {<br/>case 1:<br/>print "hi";<br/>case 2:<br/>print "hello";<br/>break;<br/>default:<br/>print "hi1";<br/>} hihi1 hi1 hello hihellohi1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = "1";<br/>switch($a) {<br/>case 1:<br/>break;<br/>print "hi";<br/>case 2:<br/>print "hello";<br/>break;<br/>default:<br/>print "hi1";<br/>} no output hihellohi1 hi1 hihi1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for(++$i; ++$i; ++$i) {<br/>print $i;<br/>if ($i == 4)<br/>break;<br/>} 24 1234 134 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x;<br/>for ($x = -3; $x < -5; ++$x) {<br/>print ++$x;<br/>} -3-4-5 no output -3-4 infinite loop TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$x;<br/>if ($x)<br/>print "hi";<br/>else<br/>print "how are u"; no output how are u hi error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($x =1; $x < 10;++$x) {<br/>print "*t";<br/>} ********* ********** infinite loop *********** TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 0;<br/>while(?++$i || --$i) {<br/>print $i;<br/>} 01234567891011121314...infinitely 1234567891011121314...infinitely 1 0 TRUE ANSWER : ? YOUR ANSWER : ?