Basic PHP Which of the following php statement/statements will store 111 in variable num?1. int $num = 111;2. int mum = 111;3. $num = 111;4. 111 = $num; Only 3 Only 1 Both 1 and 2 All of the mentioned Only 3 Only 1 Both 1 and 2 All of the mentioned 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 function is being declared as a member of a class When the parameter is being declared as passed by reference Never When the function contains only one parameter When the parameter is Boolean When the function is being declared as a member of a class When the parameter is being declared as passed by reference Never When the function contains only one parameter When the parameter is Boolean ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following php code?$num = "1";$num1 = "2";print $num+$num1; Error 1+2 3 12 Error 1+2 3 12 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x=0; $x < count($user); $x++){if ($user[$x] == "Shrek")continue;printf ($user[$x]);} AshleyBaleBlank Shrek AshleyBale ShrekBlank AshleyBaleBlank Shrek AshleyBale ShrekBlank ANSWER DOWNLOAD EXAMIANS APP
Basic PHP All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file. FALSE TRUE FALSE TRUE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the conditional statements is/are supported by PHP?1. if statements2. if-else statements3. if-elseif statements4. switch statements 2, 3 and 4 Only 1 All of the mentioned. 1, 2 and 4 2, 3 and 4 Only 1 All of the mentioned. 1, 2 and 4 ANSWER DOWNLOAD EXAMIANS APP