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/><br/>a(); I am b I am a Error I am bI am a Error 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(); I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code None of the mentioned Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function addFunction($num1, $num2)<br/>{<br/>$sum = $num1 + $num2;<br/>return $sum;<br/>}<br/>$return_value = addFunction(10, 20);<br/>echo "Returned value from the function : " .$return_value Returned value from the function : $return_value Error Returned value from the function : 30 Returned value from the function : TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions can be used to compress a string? zip_compress() compress() zip() gzcompress() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function uppercase($string) {<br/>echo ucwords($string);<br/>}<br/>$wow = "uppercase";<br/>$wow("Time to live king size"); Uppercase TIME TO LIVE KING SIZE Time to live king size Time To Live King Size TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following PHP functions can be used to build a function that accepts any number of arguments? func_get_argc() get_argv() get_argc() func_get_argv() 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); None of the mentioned $num 5 3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function one() {<br/>echo " this works";<br/>function two() {<br/>echo "this too works";<br/>}<br/>}<br/>one();<br/>two(); this works this too works error this worksthis too works this works TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo lcfirst("welcome to India"); Welcome to India welcome to India welcome to india Welcome to india 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(); I am a Error Error I am bI am a I am bb TRUE ANSWER : ? YOUR ANSWER : ?