What will be the output of the following PHP code ?<br/>$cars = array("Volvo", "BMW", "Toyota");<br/>print $cars[2]; Toyota BMW Error Volvo 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 06 16 05 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = "test";<br/>$y = "this";<br/>$z = "also";<br/>$x .= $y .= $z ;<br/>echo $x;<br/>echo $y; testthis testthisthisalso error at line 4 testthisalsothisalso TRUE ANSWER : ? YOUR ANSWER : ?
PHP can automatically convert integers to floating point numbers and floating point numbers to integers. TRUE FALSE TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$var1 = 1 + ++5;<br/>echo $var1; no output 6 error 7 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 10;<br/>$b = 10;<br/>if ($a = 5)<br/>$b--;<br/>print $a;<br/>print $b--; 58 59 108 109 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$color1 = "red";<br/>$color2 = "1";<br/>echo "$color1" + "$color2"; red 1 red1 1 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 1;<br/>if ($i++ && ($i == 1))<br/>printf("Yesn$i");<br/>else<br/>printf("Non$i"); No 2 Yes 2 No 1 Yes 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 5;<br/>$y = 10;<br/>$z = "$x + $y";<br/>echo "$z"; 15 $x + $y $z 10 + 5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$one = "one";<br/>$two = "two";<br/>print($one$two); one onetwo error nothing TRUE ANSWER : ? YOUR ANSWER : ?