What will be the output of the following PHP code ?<br/>$auth = 1;<br/>$status = 1;<br/>if ($result = (($auth == 1) && ($status != 0))) {<br/>print "result is $result";<br/>} error no output result is true result is 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 5;<br/>$b = -7;<br/>$c =0;<br/>$d = ++$a && ++$b || ++$c;<br/>print $d;<br/>print $a; 15 16 05 06 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>echo "Hello World" Error Hello world in italics Hello world Nothing TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 0;<br/>function fun() {<br/>echo $GLOBALS['x'];<br/>$x++;<br/>}<br/>fun();<br/>fun();<br/>fun(); 012 Nothing Error 000 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x;<br/>echo "$x"; 1 0 Error Nothing TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 30;<br/>$y = 20;<br/>$z = 10;<br/>echo $x + $y - $z / ($z - $y); 51 41 -4 -5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 10;<br/>$j = 0;<br/>if ($i || ($j = $i + 10)) {<br/>echo "true";<br/>}<br/>echo $j; true20 20 0 true0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$color = "red";<br/>$color = "green";<br/>echo "$color"; green error red green red TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$color1 = "red";<br/>$color2 = "red";<br/>echo "$color1" + "$color2"; redgreen red green 1 0 TRUE ANSWER : ? YOUR ANSWER : ?