What will be the output of the following PHP code ?<br/>echo $red; Error Nothing True 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 0;<br/>$j = 0;<br/>if ($i && ($j = $i + 10)) {<br/>echo "true";<br/>}<br/>echo $j; true10 10 true0 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>echo "Hello World" Nothing Hello world Hello world in italics Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 5;<br/>{<br/>echo "$x";<br/>} Nothing Error 0 5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$var1 = 3;<br/>print ++$var++; error 5 3 4 TRUE ANSWER : ? YOUR ANSWER : ?
PHP will automatically convert strings to numbers when it needs to. TRUE FALSE TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 1;<br/>$b = 1;<br/>$d = 1;<br/>print ++$a + ++$a+$a++;<br/>print $a++ + ++$b;<br/>print ++$d + $d++ + $a++; 368 error 869 742 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$color1 = "red";<br/>$color2 = "green";<br/>echo "$color1" . "$color2"; red green red green redgreen TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 5;<br/>$y = 10;<br/>function fun() {<br/>$GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y'];<br/>}<br/>fun();<br/>echo $y; 5 Error 15 10 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 5;<br/>while (--$i > 0) {<br/>$i++;<br/>print $i;<br/>print "hello";<br/>} 4hello4hello4hello4hello4hello…..infinite 5hello5hello5hello5hello5hello…..infinite error no output TRUE ANSWER : ? YOUR ANSWER : ?