What will be the output of the following PHP code ?<br/>function constant()<br/>{<br/>define("GREETING", "Welcome to Narnia",true);<br/>echo greeting;<br/>} Welcome to Narnia greeting GREETING ERROR TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>define("GREETING","Hello you! How are you today?");<br/>echo constant("GREETING"); GREETING GREETING, Hello you! How are you today? Hello you! How are you today? “GREETING”,”Hello you! How are you today?” 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/>function b()<br/>{<br/>echo " I am here to spoil this code";<br/>}<br/>b();<br/>TV("Sherlock"); I am here to spoil this code None of the mentioned My favourite TV show isI am here to spoil this code Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function b() {<br/>echo "b is executed";<br/>}<br/>function a()<br/>{<br/>b();<br/>echo "a is executed";<br/>b();<br/>}<br/>a(); b is executeda is executed b is executeda is executedb is executed b is executedb is executedb is executed a is executed TRUE ANSWER : ? YOUR ANSWER : ?
Returning values from functions may include ..... None of above Both A & B Objects Arrays TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$title = "O'malley wins the heavyweight championship!";<br/>echo ucwords($title); o’malley wins the heavyweight championship! O’Malley Wins The Heavyweight Championship! O’Malley wins the heavyweight championship! O’malley Wins The Heavyweight Championship! TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is the right way of defining a function in PHP? functionName(parameters) { function body } data type functionName(parameters) { function body } function { function body } function fumctionName(parameters) { function body } TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions can be used to compress a string? compress() zip() gzcompress() zip_compress() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo(atan(0.50)); 1 0.46364760900081 0.23568451142521 0.11845976421345 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function string()<br/>{<br/>echo strstr("Hello world!", 111);<br/>}<br/>string(); o world! 111 Hello world! No Output TRUE ANSWER : ? YOUR ANSWER : ?