Basic PHP You can test the type of any variable with the ..... function. showtype() settype() gettype() whattype() showtype() settype() gettype() whattype() 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 3 a is 3 and b is 4 Both are 4 a is 4 and b is 3 Both are 3 a is 3 and b is 4 Both are 4 a is 4 and b is 3 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 will be the output of the following PHP code?$score = 1234;$scoreboard = (array) $score;echo $scoreboard[0]; 1 Error 2 1234 1 Error 2 1234 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following code?$foo = 'Bob';$bar = &$foo;$bar = "My name is $bar";echo $bar;echo $foo; Error My name is BobBob My name is Bob Bob My name is BobMy name is Bob Error My name is BobBob My name is Bob Bob My name is BobMy name is Bob ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? When the parameter is Boolean Never When the function contains only one parameter When the function is being declared as a member of a class When the parameter is being declared as passed by reference When the parameter is Boolean Never When the function contains only one parameter When the function is being declared as a member of a class When the parameter is being declared as passed by reference ANSWER DOWNLOAD EXAMIANS APP