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/>} hihellohihellohihello hi hihihi hellohellohello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 1;<br/>if ($x--)<br/>print "hi"<br/>$x--;<br/>else<br/>print "hello" error hello no output hi TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 1;<br/>if ($x == 2)<br/>print "hi";<br/>else if($x = 2)<br/>print $x;<br/>else<br/>print "how are u"; error hi how are u 2 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0; 0; $i++) {<br/>print"i";<br/>} infinite loop no output error 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = "";<br/>while ($i) {<br/>print "hi";<br/>}<br/>while($i < 8)<br/>$i++;print "hello"; Hi is printed 10 times, hello 7 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed once, hello 7 times and then hi 2 times Hi is printed once, hello 7 times TRUE ANSWER : ? YOUR ANSWER : ?
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"; true no output false error 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 < 3) {<br/>$i++;<br/>}<br/>print $i; 1 3 0 2 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/>} 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 0 1 2 3 4 5 infinite loop TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$user = array("Ashley", "Bale", "Shrek", "Blank");<br/>for ($x=0; $x < count($user) - 1; $x++) {<br/>if ($user[$x++] == "Shrek")<br/>continue;<br/>printf ($user[$x]);<br/>} BaleBlank AshleyBaleBlank Bale AshleyShrek TRUE ANSWER : ? YOUR ANSWER : ?