What will be the output of the following PHP code ?<br/>if (-100)<br/>print "hi";<br/>else<br/>print "how are u"; hi no output error how are u 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/>} 1 1234567891011121314...infinitely 01234567891011121314...infinitely 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 10;<br/>$b = 11;<br/>if ($a < ++$a || $b < ++$b)<br/>print "hello";<br/>else<br/>print "hi"; no output hi hello error 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/>} hi1 hello hihi1 hihellohi1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0;$i = -1;$i = 1) {<br/>print $i;<br/>if ($i != 1)<br/>break;<br/>} -1 0 1 infinite loop TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = "hello";<br/>if (strlen($a))<br/>print strlen($a);<br/>else<br/>print "hi"; error hi hellolength 5 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"; hihello hello infinite loop error 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/>} hihellohihellohihello hellohellohello hihihi hi 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 0 error 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 once, hello 7 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed 10 times, hello 7 times Hi is printed once, hello 7 times and then hi 2 times TRUE ANSWER : ? YOUR ANSWER : ?