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/>} hi1 hihellohi1 hi hihi1 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"; no output error how are u hi TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for (1; $i == 1; $i = 2)<br/>print "In for loop ";<br/>print "After loopn"; After for loop Infinite loop In for loop In for loopAfter for loop 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 hi hello 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 > $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/>for ($i = 0; $i < 5; $i++) {<br/>for(; $i < 5; $i++)<br/>print"i";<br/>} no output iiiiiiiiiiiiiiiiiiiiiiiii iiiii 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/>} hihellohihellohihello hellohellohello hi hihihi TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i == 2; ++$i == $i; ++$i)<br/>print "In for loop ";<br/>print "After loop"; In for loopIn for loopIn for loopIn for loop...infinitely In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop...infinitely After for loop After for loopAfter for loopAfter for loop...infinitely TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 1;<br/>if (print $a)<br/>print "True";<br/>else<br/>print "False"; no output error false true TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>if (0.0)<br/>print "hi";<br/>else<br/>print "how are u"; how are u hi no output error TRUE ANSWER : ? YOUR ANSWER : ?