What will be the output of the following PHP code ?<br/>$a = 1;<br/>if ($a--)<br/>print "True";<br/>if ($a++)<br/>print "False"; error false true 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 > 0; $i--)<br/>print $i;<br/>} 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 infinite loop no output 0 1 2 3 4 5 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/>} no output -3-4 -3-4-5 infinite loop 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/>break;<br/>print "hello";<br/>} hi hellohellohello hihihi hihellohihellohihello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 10;<br/>if (0)<br/>print "all";<br/>if<br/>else<br/>print "some" some error all no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = "1";<br/>switch ($a) {<br/>case 1:<br/>print "hi";<br/>case 2:<br/>print "hello";<br/>default:<br/>print "hi1";<br/>} hi hi1 hihellohi1 hihi1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0; 0; $i++) {<br/>print"i";<br/>} error no output 0 infinite loop TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 0;<br/>if ($x++)<br/>print "hi";<br/>else<br/>print "how are u"; how are u no output error hi 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"; hello infinite loop hihello error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>if (print "0")<br/>print "hi";<br/>else<br/>print "how are u"; 0hi hi how are u 0how are u TRUE ANSWER : ? YOUR ANSWER : ?