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 : ?
What will be the output of the following PHP code?<br/>$op2 = "blabla"; function foo($op1) {<br/>echo $op1;<br/>echo $op2;<br/>}<br/>foo("hello"); helloblabla hello helloblablablabla Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function addFunction($num1, $num2) {<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 : Returned value from the function : 30 TRUE ANSWER : ? YOUR ANSWER : ?
What will happen in this function call?<br/>function calc($price, $tax) {<br/>$total = $price + $tax;<br/>}<br/>$pricetag = 15;<br/>$taxtag = 3;<br/>calc($pricetag, $taxtag); Call By Value Type Hinting Default Argument Value Call By Reference TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo ord ("hi"); 103 104 209 106 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 bb I am a Error Error I am bI am a TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions can be used to compress a string? compress() zip() zip_compress() gzcompress() TRUE ANSWER : ? YOUR ANSWER : ?
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/>a(); Error I am bI am a I am a Error I am b TRUE ANSWER : ? YOUR ANSWER : ?
The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "c" returns "f" returns "d" returns "cd" 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 : ?