Basic PHP Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? When the parameter is being declared as passed by reference When the function is being declared as a member of a class When the function contains only one parameter When the parameter is Boolean Never When the parameter is being declared as passed by reference When the function is being declared as a member of a class When the function contains only one parameter When the parameter is Boolean Never ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What does PHP stand for?1. Personal Home Page2. Hypertext Preprocessor3. Pretext Hypertext Processor4. Preprocessor Home Page Only 2 Both 1 and 2 Both 2 and 4 Both 1 and 3 Only 2 Both 1 and 2 Both 2 and 4 Both 1 and 3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the below statements is equivalent to $add += $add ? $add = $add + $add + 1 $add = $add +$add $add = $add $add = $add + 1 $add = $add + $add + 1 $add = $add +$add $add = $add $add = $add + 1 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which statement will output $x on the screen? echo “\$x”; echo “$x;”; echo “/$x”; echo “$$x”; echo “\$x”; echo “$x;”; echo “/$x”; echo “$$x”; ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What is the value of $a and $b after the function call?function doSomething( &$arg ) {$return = $arg;$arg += 1;return $return;}$a = 3;$b = doSomething( $a ); Both are 4 Both are 3 a is 4 and b is 3 a is 3 and b is 4 Both are 4 Both are 3 a is 4 and b is 3 a is 3 and b is 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP With the introduction of namespaces, the same function name can be used in multiple places. TRUE FALSE TRUE FALSE ANSWER DOWNLOAD EXAMIANS APP