Basic PHP All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file. TRUE FALSE TRUE FALSE 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 Only 1 1, 2 and 4 2, 3 and 4 All of the mentioned. Only 1 1, 2 and 4 2, 3 and 4 All of the mentioned. ANSWER DOWNLOAD EXAMIANS APP
Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 1 Error 5 12 1 Error 5 12 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$team = "arsenal";switch ($team) {case "manu":echo "I love man u";case "arsenal":echo "I love arsenal";case "manc":echo "I love manc"; } Error I love arsenalI love mancI love manu I love arsenal I love arsenalI love manc Error I love arsenalI love mancI love manu I love arsenal I love arsenalI love manc ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? 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 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 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; a Error r $var a Error r $var ANSWER DOWNLOAD EXAMIANS APP