What will be the output of the following PHP code ?<br/>$i = "";<br/>while($i) {<br/>print "hi";<br/>}<br/>print "hello"; infinite loop hello hihello error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 10;<br/>if (1)<br/>print "all";<br/>else<br/>print "some"<br/>else<br/>print "none"; none error all some TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($x = 1; $x < 10; $x++)<br/>for ($y = 1; $y < 5; $y++)<br/>print "Hello"; Hello….45 times Hello….36 times Hello….40 times Hello….50 times TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 0;<br/>while ($i++) {<br/>print $i;<br/>}<br/>print $i; infinite loop 01 1 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($x = -1; $x < 10;--$x) {<br/>print $x;<br/>} 12345678910 1234567891011 infinite loop 123456789101112 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 10;<br/>$y = 20;<br/>if ($x > $y && 1||1)<br/>print "hi";<br/>else<br/>print "how are u"; hi error how are u 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/>} hi error no output hello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0; $i < 5; $i++) {<br/>for(; $i < 5; $i++)<br/>print"i";<br/>} infinite loop no output iiiiiiiiiiiiiiiiiiiiiiiii iiiii TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0; -5 ; $i++) {<br/>print"i";<br/>if ($i == 3)<br/>break;<br/>} 0 1 2 3 4 0 1 2 3 4 5 error 0 1 2 3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$b = 1;<br/>switch(print $b) {<br/>case 2:<br/>print "hello";<br/>break;<br/>case 1:<br/>print "hi";<br/>break;<br/>default:<br/>print "hi1";<br/>} 1hi1 error 1hi 1hello TRUE ANSWER : ? YOUR ANSWER : ?