What will be the output of the following PHP code?<br/>echo(atan(0.50)); 1 0.23568451142521 0.46364760900081 0.11845976421345 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function time($string)<br/>{<br/>echo strtr("Towe Pa55", "ow5", $string);<br/>}<br/>time("ims"); Towe Pass Towe Pa55 Time Pa55 Time Pass TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function mine($num)<br/>{<br/>$num = 2 + $num;<br/>echo $num;<br/>}<br/>mine(3); 5 None of the mentioned $num 3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am b';<br/>}<br/>echo 'I am a';<br/>}<br/>b();<br/>a(); I am bI am a Error I am a Error I am b TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function start($string)<br/>{<br/>if ($string < 45)<br/>return 20;<br/>else<br/>return 40;<br/>}<br/>$t = start(90);<br/>if ($t < 20)<br/>{<br/>echo "Have a good day!";<br/>}<br/>else<br/>{<br/>echo "Have a good night!";} ERROR Have a good night! None of the mentioned Have a good day! TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am b';<br/>}<br/>echo 'I am a';<br/>}<br/>a();<br/>a(); Error I am a Error I am b I am bI am a TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$op2 = "blabla"; function foo($op1) {<br/>echo $op1;<br/>echo $op2;<br/>}<br/>foo("hello"); Error helloblablablabla helloblabla hello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$str = "Hello world. It's a beautiful day.";<br/>print_r (explode(" ",$str)); Array ( [1] => Hello [2] => world. [3] => It’s [4] => a [5] => beautiful [6] => day. ) Array ( [0] => Hello [1] => world. [2] => It’s [3] => a [4] => beautiful [5] => day. ) Hello world. It’s a beautiful day Array ( [0] => Hello [0] => world. [0] => It’s [0] => a [0] => beautiful [0] => day. ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo stripos("I love php, I love php too!","PHP"); 10 8 7 3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function A1($x) { switch($x) {<br/>case 1:<br/>//this statement is the same as <br/>if($x == 1)<br/>echo 'Case 1 was executed.';<br/>break;<br/>case 2:<br/>//this statement is the same as<br/>if($x == 2)<br/>echo 'Case 2 was executed.';<br/>break;<br/>case 3:<br/>//this statement is the same as<br/>if($x == 3)<br/>echo 'Case 3 was executed.';<br/>break;<br/>case 4:<br/>//this statement is the same as<br/>if($x == 4)<br/>echo 'Case 4 was executed.';<br/>break;<br/>default:<br/>//this statement is the same as if $x does not equal the other conditions<br/>echo 'Default was executed.';<br/>break;<br/>}<br/>}<br/>A1(9); Case 1 was executed Case 2 was executed Default was executed Case 4 was executed TRUE ANSWER : ? YOUR ANSWER : ?