What will be the output of the following PHP code ?<br/>$x = 4;<br/>$y = 3;<br/>$z = 1;<br/>echo "$x = $x + $y + $z"; 8 = 4 + 3 +1 4 = 4 + 3 + 1 8 Error TRUE ANSWER : ? YOUR ANSWER : ?
In PHP the integer 45 is stored exactly as 45. The floating point number 46.3 could be stored as. 46.2999999 46 46.3 none of above TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$var1 = 1 + ++5;<br/>echo $var1; 7 no output error 6 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 1;<br/>$y = 2;<br/>if (++$x == $y++) {<br/>echo "true ", $y, $x;<br/>} true 23 true 22 true 33 no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 10;<br/>$y = 4;<br/>$z = 3;<br/>echo $x % $y % $z; 0 2 Error 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>define("__LINE__", "PHP is a scripting language");<br/>echo __LINE__; ERROR __LINE__ PHP is a scripting language 2 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.75 0.05 1.25 Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>echo $x-- != ++$x; no output error 0 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>class myObject { }<br/>define('myObject::CONSTANT', 'test');<br/>echo myObject::CONSTANT; test myObject::CONSTANT error no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 1;<br/>$b = 3;<br/>$d = $a++ + ++$b;<br/>echo $d; 4 5 3 error TRUE ANSWER : ? YOUR ANSWER : ?