What will be the output of the following PHP code ?<br/>function email()<br/>{<br/>$email = ’contact@examians.com’;<br/>$new = strstr($email, ‘@');<br/>echo $new;<br/>}<br/>email(); contact @examians.com examians.com contact@examians.com TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function movie($int)<br/>{<br/>$movies = array("Fight Club", "Kill Bill", "Pulp Fiction");<br/>echo "You Do Not Talk About ". $movie[$integer];<br/>}<br/>movie(0); You Do Not Talk About Pulp Fiction You Do Not Talk About Fight Club I None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following PHP functions can be used for generating unique id’s? md5() uniqueid() id() mdid() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo ord ("hi"); 104 209 103 106 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function sum($num1, $num2) {<br/>$total = $num1 + $num2;<br/>echo "cos($total)";<br/>}<br/>sum(5,-5); 1 0 0.5 -0.5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function TV($string)<br/>{<br/>echo "my favourite TV show is ".$string;<br/>function b() <br/>{<br/>echo " I am here to spoil this code";<br/>}<br/>}<br/>a("Sherlock");<br/>b(); my favourite TV show is SherlockI am here ro spoil this code None of the mentioned I am here to spoil this code Error TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following PHP functions can be used to find files? glob() get_file() file() fold() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am bb';<br/>}<br/>echo 'I am a';<br/>}<br/>b();<br/>a(); Error I am a Error I am bI am a I am bb 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 4 was executed Default was executed Case 2 was executed Case 1 was executed TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function mine($m)<br/>{if ($m < 0)<br/>echo "less than 0";<br/>if ($ >= 0)<br/>echo "Not True";<br/>}<br/>mine(0); No Output None of the Mentioned Not True Less Than 0 TRUE ANSWER : ? YOUR ANSWER : ?