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); 0 1 0.5 -0.5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function calc($price, $tax="") {<br/>$total = $price + ($price * $tax);<br/>echo "$total";<br/>}<br/>calc(42); 42 0 Error 84 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 : ?
What will be the output of the following PHP code?<br/>function sum($num1, $num2) {<br/>$total = $num1 + $num2;<br/>echo "chr($total)";<br/>}<br/>$var1 = "sum";<br/>$var1(5, 44); Error Sum 49 1 TRUE ANSWER : ? YOUR ANSWER : ?
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/>} ERROR Welcome to Narnia greeting GREETING TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following PHP functions can be used to build a function that accepts any number of arguments? get_argc() func_get_argv() func_get_argc() get_argv() TRUE ANSWER : ? YOUR ANSWER : ?
phpinfo() will display about?<br/>1. OS version information<br/>2. PHP installation<br/>3. Variables<br/>4. HTTP headers All listed here Option 4 Option 1 Option 2 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 : ?
What will be the output of the following PHP code?<br/>echo hex2bin("48656c6c6f20576f726c6421"); This is PHP! MCQ questons welcome to india Hello World! TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is the right way of defining a function in PHP? function fumctionName(parameters) { function body } function { function body } data type functionName(parameters) { function body } functionName(parameters) { function body } TRUE ANSWER : ? YOUR ANSWER : ?