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); 41 51 -4 -5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 4;<br/>$y = 3;<br/>function fun($x = 3, $y = 4) {<br/>$z = $x+$y/$y+$x;<br/>echo "$z";<br/>}<br/>echo $x;<br/>echo $y;<br/>echo $z;<br/>fun($x, $y); 943 439 349 43 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$var1 = 1 + ++5;<br/>echo $var1; 6 7 error no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$color1 = "red";<br/>$color2 = "1";<br/>echo "$color1" + "$color2"; 0 1 red 1 red1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$y = 2;<br/>if (--$y <> ($y != $y++)) {<br/>echo $y;<br/>} 2 0 no output 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = '4';<br/>print + + $a; no output error 0 5 TRUE ANSWER : ? YOUR ANSWER : ?
PHP can automatically convert integers to floating point numbers and floating point numbers to integers. FALSE TRUE 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; 0 true0 20 true20 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$on_e = 1;<br/>$tw_o = 2;<br/>$thre_e = 3;<br/>$fou_r = 4;<br/>echo $on_e / $tw_o + $thre_e / $fou_r; 0.05 Error 1.25 0.75 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$color = red;<br/>echo "$color"; red red $color Error TRUE ANSWER : ? YOUR ANSWER : ?