PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;return $total; }$result = calc(42, 0);echo $result; 42 84 0 Error 42 84 0 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions It is always necessary to use parentheses with the print function. False True False True ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function TV($string){echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}a("Sherlock");b(); None of the mentioned I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code Error None of the mentioned I am here to spoil this code my favourite TV show is SherlockI am here ro spoil this code Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?$x = 75;$y = 25;function addition(){$GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];}addition();echo $z; 100 25 error 75 100 25 error 75 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function _func(){echo "Hello World";}_func(); Hello World None of the mentioned ERROR No Output Hello World None of the mentioned ERROR No Output ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? data type functionName(parameters) { function body } functionName(parameters) { function body } function { function body } function fumctionName(parameters) { function body } data type functionName(parameters) { function body } functionName(parameters) { function body } function { function body } function fumctionName(parameters) { function body } ANSWER DOWNLOAD EXAMIANS APP